url
stringlengths 55
59
| repository_url
stringclasses 1
value | labels_url
stringlengths 69
73
| comments_url
stringlengths 64
68
| events_url
stringlengths 62
66
| html_url
stringlengths 44
49
| id
int64 338k
1.06B
| node_id
stringlengths 18
32
| number
int64 1
44.6k
| title
stringlengths 1
590
| user
dict | labels
listlengths 0
9
| state
stringclasses 2
values | locked
bool 2
classes | assignee
dict | assignees
listlengths 0
5
| milestone
dict | comments
int64 0
477
| created_at
timestamp[us, tz=UTC] | updated_at
timestamp[us, tz=UTC] | closed_at
timestamp[us, tz=UTC] | author_association
stringclasses 3
values | active_lock_reason
stringclasses 4
values | body
stringlengths 0
251k
⌀ | reactions
dict | timeline_url
stringlengths 64
68
| performed_via_github_app
float64 | draft
float64 0
1
⌀ | pull_request
dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://api.github.com/repos/pandas-dev/pandas/issues/34017
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34017/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34017/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34017/events
|
https://github.com/pandas-dev/pandas/issues/34017
| 612,988,864
|
MDU6SXNzdWU2MTI5ODg4NjQ=
| 34,017
|
BUG:Dtypes changed from Int to Float when merging for different colunm names with Left_on Right_on outter join
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/14131577?v=4",
"events_url": "https://api.github.com/users/luzhideng/events{/privacy}",
"followers_url": "https://api.github.com/users/luzhideng/followers",
"following_url": "https://api.github.com/users/luzhideng/following{/other_user}",
"gists_url": "https://api.github.com/users/luzhideng/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/luzhideng",
"id": 14131577,
"login": "luzhideng",
"node_id": "MDQ6VXNlcjE0MTMxNTc3",
"organizations_url": "https://api.github.com/users/luzhideng/orgs",
"received_events_url": "https://api.github.com/users/luzhideng/received_events",
"repos_url": "https://api.github.com/users/luzhideng/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/luzhideng/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/luzhideng/subscriptions",
"type": "User",
"url": "https://api.github.com/users/luzhideng"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-05-06T01:14:15Z
| 2020-09-04T13:11:53Z
| 2020-09-04T13:11:53Z
|
NONE
| null |
- [ ] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**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
#Different label names 'A' and 'a'
testa = pd.DataFrame([{"A":1,"b":2}])
testb = pd.DataFrame([{"a":2,"c":2}])
result = pd.merge(testa, testb, left_on='A', right_on='a', how="outer")
result.dtypes
Out[1]:
A float64
b float64
a float64
c float64
dtype: object
#Same lable name with on[''] methond looks fine
testa = pd.DataFrame([{"a":1,"b":2}])
testb = pd.DataFrame([{"a":2,"c":2}])
result1 = pd.merge(testa, testb, on=["a"], how="outer")
result1.dtypes
Out[2]:
a int64
b float64
c float64
dtype: object
```
#### Problem description
I was merging some df with the zipcode, so I found this might be a problem. Maybe I am wrong about this, and probably pandas designed this way for some reasons? I don't know. If anyone knows the reasons why it had built this way, please share.
I also came across with this post: https://github.com/pandas-dev/pandas/issues/9958
#### Expected Output
I expecte there's no data type changes after merging.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 61 Stepping 4, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en
LOCALE : None.None
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.2.0.post20200210
Cython : 0.29.15
pytest : 5.3.5
hypothesis : 5.5.4
sphinx : 2.4.0
blosc : None
feather : None
xlsxwriter : 1.2.7
lxml.etree : 4.5.0
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.12.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : 1.3.2
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.1.3
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.3.5
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.13
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.7
numba : 0.48.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34017/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34017/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34018
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34018/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34018/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34018/events
|
https://github.com/pandas-dev/pandas/issues/34018
| 613,102,164
|
MDU6SXNzdWU2MTMxMDIxNjQ=
| 34,018
|
PERF: Reindexing ffill DatetimeIndexes with different timezones
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7894671?v=4",
"events_url": "https://api.github.com/users/azjps/events{/privacy}",
"followers_url": "https://api.github.com/users/azjps/followers",
"following_url": "https://api.github.com/users/azjps/following{/other_user}",
"gists_url": "https://api.github.com/users/azjps/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/azjps",
"id": 7894671,
"login": "azjps",
"node_id": "MDQ6VXNlcjc4OTQ2NzE=",
"organizations_url": "https://api.github.com/users/azjps/orgs",
"received_events_url": "https://api.github.com/users/azjps/received_events",
"repos_url": "https://api.github.com/users/azjps/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/azjps/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/azjps/subscriptions",
"type": "User",
"url": "https://api.github.com/users/azjps"
}
|
[
{
"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": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
},
{
"color": "f2f074",
"default": false,
"description": "Warnings that appear or should be added to pandas",
"id": 1628184320,
"name": "Warnings",
"node_id": "MDU6TGFiZWwxNjI4MTg0MzIw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Warnings"
}
] |
open
| false
| null |
[] | null | 1
| 2020-05-06T07:16:09Z
| 2021-08-07T05:47:33Z
| null |
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**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
idx = pd.date_range("2020/01/01", freq="s", periods=500000, tz="America/New_York")
idx_naive = pd.date_range("2020/01/01", freq="s", periods=500000, tz=None)
idx_same_tz = pd.date_range("2020/01/01", freq="s", periods=400000, tz="America/New_York")
idx_diff_tz = pd.date_range("2020/01/01", freq="s", periods=400000, tz="Asia/Tokyo")
print(idx.dtype, idx_naive.dtype, idx_same_tz.dtype, idx_diff_tz.dtype)
# fast:
In [11]: %%time
...: idx.get_indexer(idx_same_tz)
...:
...:
CPU times: user 15.6 ms, sys: 0 ns, total: 15.6 ms
Wall time: 20.3 ms
Out[11]: array([ 0, 1, 2, ..., 399997, 399998, 399999])
# ~400x slower:
In [12]: %%time
...: idx_naive.get_indexer(idx_diff_tz)
...:
...:
CPU times: user 5.38 s, sys: 188 ms, total: 5.56 s
Wall time: 5.57 s
Out[12]: array([-1, -1, -1, ..., -1, -1, -1])
In [13]: %%time
...: idx.get_indexer(idx_diff_tz)
...:
...:
CPU times: user 7.94 s, sys: 188 ms, total: 8.12 s
Wall time: 8.12 s
Out[13]: array([ -1, -1, -1, ..., 349597, 349598, 349599])
```
#### Problem description
Re-indexing two `DatetimeIndex` with different time-zones, e.g. `pd.Series(index=idx, dtype="float64").reindex(idx_diff_tz, method="ffill")`, is significantly slower than when the two indexes have the same timezone. This is due to a cast of both inputs to `"object":
```python
In [22]: %load_ext line_profiler
In [23]: %lprun -f pd.core.indexing.Index.get_indexer idx.get_indexer(idx_diff_tz)
Total time: 10.3548 s
File: $CONDA_PREFIX/lib/python3.8/site-packages/pandas/core/indexes/base.py
Function: get_indexer at line 2706
Line # Hits Time Per Hit % Time Line Contents
==============================================================
2706 @Appender(_index_shared_docs["get_indexer"] % _index_doc_kwargs)
2707 def get_indexer(self, target, method=None, limit=None, tolerance=None):
# .. snipped for brevity
2725 2 54.0 27.0 0.0 if not is_dtype_equal(self.dtype, target.dtype):
2726 1 4924773.0 4924773.0 47.6 this = self.astype(object)
2727 1 3741150.0 3741150.0 36.1 target = target.astype(object)
```
Relatively minor: its reasonable to expect users to ensure their data is in the same timezone, and its easy to workaround -- `idx.tz_convert(idx_diff_tz.tz)` would suffice. Still, it could be a bit of a gotcha if a user is using `.reindex()` to convert data (e.g. from across different API boundaries) to the same timezone, so thought it was worth filing an issue.
Potential fix could be:
* checking if `this` and `target` are both `datetime64[??]` in the above snippet and casting `this = this.astype(target.dtype)`
* doing something similar in `Index._possibly_promote()`
#### Expected Output
Similar performance between reindexing with same and different timezones
#### Output of ``pd.show_versions()``
Confirmed performance discrepancy from pandas 0.17 through 1.0.3:
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.2.final.0
python-bits : 64
OS : Linux
OS-release : 4.4.0-18362-Microsoft
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.3
numpy : 1.18.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3.post20200330
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.13.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34018/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34018/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34019
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34019/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34019/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34019/events
|
https://github.com/pandas-dev/pandas/issues/34019
| 613,148,616
|
MDU6SXNzdWU2MTMxNDg2MTY=
| 34,019
|
BUG: Multiindex.nunique raises NotImplementedError
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/282477?v=4",
"events_url": "https://api.github.com/users/mizuy/events{/privacy}",
"followers_url": "https://api.github.com/users/mizuy/followers",
"following_url": "https://api.github.com/users/mizuy/following{/other_user}",
"gists_url": "https://api.github.com/users/mizuy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mizuy",
"id": 282477,
"login": "mizuy",
"node_id": "MDQ6VXNlcjI4MjQ3Nw==",
"organizations_url": "https://api.github.com/users/mizuy/orgs",
"received_events_url": "https://api.github.com/users/mizuy/received_events",
"repos_url": "https://api.github.com/users/mizuy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mizuy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mizuy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mizuy"
}
|
[
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
open
| false
| null |
[] | null | 3
| 2020-05-06T08:42:04Z
| 2021-08-07T05:48: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.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
pd.DataFrame([[1,2],[1,2]]).set_index([0,1]).index.nunique()
```
```python
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
<ipython-input-80-09716b89b157> in <module>
----> 1 pd.DataFrame([[1,2],[1,2]]).set_index([0,1]).index.nunique()
/opt/conda/lib/python3.7/site-packages/pandas/core/base.py in nunique(self, dropna)
1284 uniqs = self.unique()
1285 n = len(uniqs)
-> 1286 if dropna and isna(uniqs).any():
1287 n -= 1
1288 return n
/opt/conda/lib/python3.7/site-packages/pandas/core/dtypes/missing.py in isna(obj)
124 Name: 1, dtype: bool
125 """
--> 126 return _isna(obj)
127
128
/opt/conda/lib/python3.7/site-packages/pandas/core/dtypes/missing.py in _isna_new(obj)
136 # hack (for now) because MI registers as ndarray
137 elif isinstance(obj, ABCMultiIndex):
--> 138 raise NotImplementedError("isna is not defined for MultiIndex")
139 elif isinstance(obj, type):
140 return False
NotImplementedError: isna is not defined for MultiIndex
```
exactly same error raised by pandas 0.25.3
#### Problem description
The method exists, but always throws NotImplementedError. I can use len(df.index.unique()) as a substitute. In the previous version of pandas, documentation have Multiindex.nunique entry (https://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.MultiIndex.unique.html), but it has disappeared now. So I think it might be possible that this is not a bug, but an intended exception.
#### Expected Output
should be 1
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Linux
OS-release : 4.19.76-linuxkit
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.3
numpy : 1.18.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1
setuptools : 46.1.3.post20200325
Cython : 0.29.17
pytest : 5.4.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.2.8
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.14.0
pandas_datareader: None
bs4 : 4.9.0
bottleneck : 1.3.2
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.2.1
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : 0.17.0
pytables : None
pytest : 5.4.1
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.16
tables : 3.6.1
tabulate : None
xarray : 0.15.1
xlrd : 1.2.0
xlwt : None
xlsxwriter : 1.2.8
numba : 0.48.0
</details>
|
{
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34019/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34019/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34020
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34020/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34020/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34020/events
|
https://github.com/pandas-dev/pandas/issues/34020
| 613,237,433
|
MDU6SXNzdWU2MTMyMzc0MzM=
| 34,020
|
REGR: Series.update raises ValueError with tz-aware types
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-05-06T11:10:28Z
| 2020-06-15T11:44:42Z
| 2020-06-15T11:44:41Z
|
MEMBER
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import pandas as pd
print(pd.__version__)
dti = pd.date_range("1/1/2000", periods=3, tz="Europe/London")
a = pd.Series([dti[0], None, dti[2]])
b = pd.Series([None, dti[1], None])
a.update(b)
print(a)
```
#### Problem description
on master
```
1.1.0.dev0+1468.g3cebe3024
Traceback (most recent call last):
File "C:/Users/simon/test.py", line 10, in <module>
a.update(b)
File "c:\users\simon\pandas\pandas\core\series.py", line 2855, in update
self._mgr = self._mgr.putmask(mask=mask, new=other)
File "c:\users\simon\pandas\pandas\core\internals\managers.py", line 544, in putmask
return self.apply(
File "c:\users\simon\pandas\pandas\core\internals\managers.py", line 397, in apply
applied = getattr(b, f)(**kwargs)
File "c:\users\simon\pandas\pandas\core\internals\blocks.py", line 1604, in putmask
new_values[mask] = new
File "c:\users\simon\pandas\pandas\core\arrays\datetimelike.py", line 609, in __setitem__
self._data[key] = value
ValueError: NumPy boolean array indexing assignment cannot assign 3 input values to the 1 output values where the mask is true
```
regression in #27428
d717ad8157d2e0713cde89e10743cf4362294027 is the first bad commit
commit d717ad8157d2e0713cde89e10743cf4362294027
Author: jbrockmendel <jbrockmendel@gmail.com>
Date: Tue Jul 23 16:55:40 2019 -0700
CLN/REF: stop allowing iNaT in DatetimeBlock (#27428)
cc @jbrockmendel
#### Expected Output
on 0.25.3
```
0.25.3
0 2000-01-01 00:00:00+00:00
1 2000-01-02 00:00:00+00:00
2 2000-01-03 00:00:00+00:00
dtype: datetime64[ns, Europe/London]
```
#### Output of ``pd.show_versions()``
<details>
[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/34020/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34020/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34021
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34021/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34021/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34021/events
|
https://github.com/pandas-dev/pandas/pull/34021
| 613,239,575
|
MDExOlB1bGxSZXF1ZXN0NDE0MDMxMDIw
| 34,021
|
TST: query with timezone aware index & column
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6196315?v=4",
"events_url": "https://api.github.com/users/vipulrai91/events{/privacy}",
"followers_url": "https://api.github.com/users/vipulrai91/followers",
"following_url": "https://api.github.com/users/vipulrai91/following{/other_user}",
"gists_url": "https://api.github.com/users/vipulrai91/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vipulrai91",
"id": 6196315,
"login": "vipulrai91",
"node_id": "MDQ6VXNlcjYxOTYzMTU=",
"organizations_url": "https://api.github.com/users/vipulrai91/orgs",
"received_events_url": "https://api.github.com/users/vipulrai91/received_events",
"repos_url": "https://api.github.com/users/vipulrai91/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vipulrai91/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vipulrai91/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vipulrai91"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 5
| 2020-05-06T11:14:28Z
| 2020-05-20T05:47:18Z
| 2020-05-20T05:40:37Z
|
CONTRIBUTOR
| null |
- [X] closes #29463
- [X] tests added / passed
- [X] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34021/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34021/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34021.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34021",
"merged_at": "2020-05-20T05:40:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34021.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34021"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34022
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34022/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34022/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34022/events
|
https://github.com/pandas-dev/pandas/pull/34022
| 613,266,683
|
MDExOlB1bGxSZXF1ZXN0NDE0MDUyOTcy
| 34,022
|
Backport PR #33513 on branch 1.0.x (BUG: Fix Categorical.min / max bug)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[] |
closed
| false
| null |
[] |
{
"closed_at": "2020-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 0
| 2020-05-06T12:03:08Z
| 2020-05-06T12:44:33Z
| 2020-05-06T12:44:27Z
|
MEMBER
| null |
xref #33513
regression in #27929 (i.e. 1.0.0) https://github.com/pandas-dev/pandas/issues/33450#issuecomment-624625326
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34022/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34022/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34022.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34022",
"merged_at": "2020-05-06T12:44:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34022.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34022"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34023
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34023/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34023/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34023/events
|
https://github.com/pandas-dev/pandas/pull/34023
| 613,325,052
|
MDExOlB1bGxSZXF1ZXN0NDE0MTAwNTcx
| 34,023
|
Backport PR #33089 on branch 1.0.x (BUG: Don't cast nullable Boolean to float in groupby)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[] |
closed
| false
| null |
[] |
{
"closed_at": "2020-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 0
| 2020-05-06T13:34:58Z
| 2020-05-07T10:10:26Z
| 2020-05-07T10:10:20Z
|
MEMBER
| null |
xref #33089
regression in 1.0.0, xref https://github.com/pandas-dev/pandas/issues/32194#issuecomment-604664466
# NOTE: same code fix, different location
cc @dsaxton
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34023/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34023/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34023.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34023",
"merged_at": "2020-05-07T10:10:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34023.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34023"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34024
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34024/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34024/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34024/events
|
https://github.com/pandas-dev/pandas/pull/34024
| 613,358,927
|
MDExOlB1bGxSZXF1ZXN0NDE0MTI4MDUz
| 34,024
|
CLN: remove _typ checks in Timestamp methods
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-05-06T14:20:48Z
| 2020-05-06T17:23:44Z
| 2020-05-06T16:48:49Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34024/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34024/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34024.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34024",
"merged_at": "2020-05-06T16:48:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34024.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34024"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34025
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34025/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34025/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34025/events
|
https://github.com/pandas-dev/pandas/pull/34025
| 613,367,089
|
MDExOlB1bGxSZXF1ZXN0NDE0MTM0NzIw
| 34,025
|
Backport PR #32905 on branch 1.0.x (Fix to _get_nearest_indexer for p…
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[] |
closed
| false
| null |
[] |
{
"closed_at": "2020-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 0
| 2020-05-06T14:31:30Z
| 2020-05-06T15:20:53Z
| 2020-05-06T15:20:48Z
|
MEMBER
| null |
…ydata/xarray#3751)
xref #32905
regression in 1.0.2 (backport of #31511)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34025/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34025/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34025.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34025",
"merged_at": "2020-05-06T15:20:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34025.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34025"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34026
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34026/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34026/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34026/events
|
https://github.com/pandas-dev/pandas/issues/34026
| 613,367,495
|
MDU6SXNzdWU2MTMzNjc0OTU=
| 34,026
|
DOC: Series.str.rstrip() and Series.str.lstrip() have incorrect description at the top
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/15113894?v=4",
"events_url": "https://api.github.com/users/Dr-Irv/events{/privacy}",
"followers_url": "https://api.github.com/users/Dr-Irv/followers",
"following_url": "https://api.github.com/users/Dr-Irv/following{/other_user}",
"gists_url": "https://api.github.com/users/Dr-Irv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Dr-Irv",
"id": 15113894,
"login": "Dr-Irv",
"node_id": "MDQ6VXNlcjE1MTEzODk0",
"organizations_url": "https://api.github.com/users/Dr-Irv/orgs",
"received_events_url": "https://api.github.com/users/Dr-Irv/received_events",
"repos_url": "https://api.github.com/users/Dr-Irv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Dr-Irv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dr-Irv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Dr-Irv"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-05-06T14:32:01Z
| 2020-05-16T19:13:46Z
| 2020-05-16T19:13:46Z
|
CONTRIBUTOR
| null |
#### Location of the documentation
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.str.rstrip.html
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.str.lstrip.html
#### Documentation problem
At the top of the documentation for the `rstrip()` and `lstrip()` methods, it says "Remove leading and trailing characters."
#### Suggested fix for documentation
It should say "Remove trailing characters" for `rstrip()` and "Remove leading characters" for `lstrip()`.
This is due to the way that the shared docs are set up between `str.lstrip()`, `str.rstrip()` and `str.strip()`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34026/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34026/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34027
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34027/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34027/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34027/events
|
https://github.com/pandas-dev/pandas/pull/34027
| 613,374,802
|
MDExOlB1bGxSZXF1ZXN0NDE0MTQwOTE2
| 34,027
|
Backport PR #33693 on branch 1.0.x (BUG: Fix memory issues in rolling…
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[] |
closed
| false
| null |
[] |
{
"closed_at": "2020-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 0
| 2020-05-06T14:41:33Z
| 2020-05-06T16:08:51Z
| 2020-05-06T16:08:28Z
|
MEMBER
| null |
….min/max)
xref https://github.com/pandas-dev/pandas/pull/33693#issuecomment-619536995
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34027/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34027/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34027.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34027",
"merged_at": "2020-05-06T16:08:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34027.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34027"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34028
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34028/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34028/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34028/events
|
https://github.com/pandas-dev/pandas/issues/34028
| 613,454,596
|
MDU6SXNzdWU2MTM0NTQ1OTY=
| 34,028
|
What is the best way to normalize_json before read_json for the file with gigabytes size?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1708680?v=4",
"events_url": "https://api.github.com/users/anki-code/events{/privacy}",
"followers_url": "https://api.github.com/users/anki-code/followers",
"following_url": "https://api.github.com/users/anki-code/following{/other_user}",
"gists_url": "https://api.github.com/users/anki-code/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/anki-code",
"id": 1708680,
"login": "anki-code",
"node_id": "MDQ6VXNlcjE3MDg2ODA=",
"organizations_url": "https://api.github.com/users/anki-code/orgs",
"received_events_url": "https://api.github.com/users/anki-code/received_events",
"repos_url": "https://api.github.com/users/anki-code/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/anki-code/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/anki-code/subscriptions",
"type": "User",
"url": "https://api.github.com/users/anki-code"
}
|
[
{
"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": "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"
}
] |
open
| false
| null |
[] | null | 1
| 2020-05-06T16:33:59Z
| 2020-05-08T21:27:34Z
| null |
NONE
| null |
Hello! Thank you for pandas! It's great!
Is there an elegant way to do `normalize_json` before `read_json` in stream/chunks (to avoid loading a big gygabyte file to the memory and then normalizing and then read_json)?
Thanks!
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34028/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34028/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34029
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34029/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34029/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34029/events
|
https://github.com/pandas-dev/pandas/issues/34029
| 613,460,890
|
MDU6SXNzdWU2MTM0NjA4OTA=
| 34,029
|
BUG: unpicking panda data frame requires "latin1" encoding
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2091655?v=4",
"events_url": "https://api.github.com/users/DmitryLitvintsev/events{/privacy}",
"followers_url": "https://api.github.com/users/DmitryLitvintsev/followers",
"following_url": "https://api.github.com/users/DmitryLitvintsev/following{/other_user}",
"gists_url": "https://api.github.com/users/DmitryLitvintsev/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DmitryLitvintsev",
"id": 2091655,
"login": "DmitryLitvintsev",
"node_id": "MDQ6VXNlcjIwOTE2NTU=",
"organizations_url": "https://api.github.com/users/DmitryLitvintsev/orgs",
"received_events_url": "https://api.github.com/users/DmitryLitvintsev/received_events",
"repos_url": "https://api.github.com/users/DmitryLitvintsev/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DmitryLitvintsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DmitryLitvintsev/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DmitryLitvintsev"
}
|
[
{
"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": "6c1cdb",
"default": false,
"description": "read_pickle, to_pickle",
"id": 1625435109,
"name": "IO Pickle",
"node_id": "MDU6TGFiZWwxNjI1NDM1MTA5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Pickle"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-05-06T16:44:21Z
| 2021-08-07T05:51:16Z
| 2021-08-07T05:51:16Z
|
NONE
| null |
- [Y ] I have checked that this issue has not already been reported.
- [ N] I have confirmed this bug exists on the latest version of pandas.
- [ N] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**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
#!/usr/bin/env python3
import pandas as pd
import pickle
df = pd.read_csv("Factory_Entries_AWS.csv")
with open("Factory_Entries_AWS_p3.pkl","wb") as f:
pickle.dump(df, f)
with open("Factory_Entries_AWS_p3.pkl","rb") as f:
df1 = pickle.load(f)
pd.testing.assert_frame_equal(df.sort_index(axis=1), df1.sort_index(axis=1), check_names=True)
with open("Factory_Entries_AWS_p2.pkl","rb") as f:
df2 = pickle.load(f, encoding='bytes')
pd.testing.assert_frame_equal(df.sort_index(axis=1), df2.sort_index(axis=1),check_names=True)
```
#### Problem description
The above code fails when unpickling data frame from pickle file created with python2 with the following error:
```
# python3 p3.py
Traceback (most recent call last):
File "p3.py", line 18, in <module>
df2 = pickle.load(f, encoding='bytes')
File "/usr/local/lib/python3.6/site-packages/pandas-1.0.1-py3.6-linux-x86_64.egg/pandas/core/indexes/base.py", line 174, in _new_Index
return cls.__new__(cls, **d)
TypeError: __new__() keywords must be strings
```
[this should explain **why** the current behavior is a problem and why the expected output is a better solution]
replacing `'bytes'` with `'latin1'` solves the problem. The prescribed method of unpicking python2 objects in python3 is to use `'bytes'` encoding. Why does it fail here?
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag]
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.8.final.0
python-bits : 64
OS : Linux
OS-release : 3.10.0-1127.el7.x86_64
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 9.0.3
setuptools : 46.1.3
Cython : None
pytest : 5.3.5
hypothesis : None
sphinx : 3.0.3
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.8.5 (dt dec pq3 ext lo64)
jinja2 : 2.11.2
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.3.5
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : 0.8.3
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34029/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34029/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34030
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34030/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34030/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34030/events
|
https://github.com/pandas-dev/pandas/pull/34030
| 613,470,100
|
MDExOlB1bGxSZXF1ZXN0NDE0MjE3ODU1
| 34,030
|
TST: Add Series.update ExtensionArray tests
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 4
| 2020-05-06T16:58:23Z
| 2020-05-10T17:39:22Z
| 2020-05-10T17:09:38Z
|
MEMBER
| null |
cc @simonjayhawkins
xref https://github.com/pandas-dev/pandas/issues/25744 https://github.com/pandas-dev/pandas/issues/34020
I think the dtype issue for DataFrame.update with categorical columns mentioned in the first issue is still unaddressed, so likely don't want to only close and lose that (perhaps break into its own issue)?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34030/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34030/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34030.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34030",
"merged_at": "2020-05-10T17:09:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34030.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34030"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34031
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34031/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34031/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34031/events
|
https://github.com/pandas-dev/pandas/pull/34031
| 613,472,867
|
MDExOlB1bGxSZXF1ZXN0NDE0MjIwMDgx
| 34,031
|
CLN: Use to_numpy directly in cov / corr
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-05-06T17:02:40Z
| 2020-05-23T15:12:15Z
| 2020-05-23T07:45:50Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34031/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34031/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34031.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34031",
"merged_at": "2020-05-23T07:45:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34031.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34031"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34032
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34032/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34032/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34032/events
|
https://github.com/pandas-dev/pandas/pull/34032
| 613,487,975
|
MDExOlB1bGxSZXF1ZXN0NDE0MjMyMzAx
| 34,032
|
PERF: use is_tick_offset to check for Tick
|
{
"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": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-05-06T17:27:42Z
| 2020-05-06T21:36:47Z
| 2020-05-06T21:27:56Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34032/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34032/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34032.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34032",
"merged_at": "2020-05-06T21:27:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34032.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34032"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34033
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34033/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34033/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34033/events
|
https://github.com/pandas-dev/pandas/pull/34033
| 613,520,757
|
MDExOlB1bGxSZXF1ZXN0NDE0MjU4ODcy
| 34,033
|
CLN: address TODOs and FIXMEs
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-05-06T18:24:44Z
| 2020-05-06T21:31:09Z
| 2020-05-06T21:20:56Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34033/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34033/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34033.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34033",
"merged_at": "2020-05-06T21:20:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34033.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34033"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34034
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34034/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34034/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34034/events
|
https://github.com/pandas-dev/pandas/issues/34034
| 613,555,158
|
MDU6SXNzdWU2MTM1NTUxNTg=
| 34,034
|
setting values in a dataframe with duplicated keys
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39349171?v=4",
"events_url": "https://api.github.com/users/c-foschi/events{/privacy}",
"followers_url": "https://api.github.com/users/c-foschi/followers",
"following_url": "https://api.github.com/users/c-foschi/following{/other_user}",
"gists_url": "https://api.github.com/users/c-foschi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/c-foschi",
"id": 39349171,
"login": "c-foschi",
"node_id": "MDQ6VXNlcjM5MzQ5MTcx",
"organizations_url": "https://api.github.com/users/c-foschi/orgs",
"received_events_url": "https://api.github.com/users/c-foschi/received_events",
"repos_url": "https://api.github.com/users/c-foschi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/c-foschi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/c-foschi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/c-foschi"
}
|
[
{
"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": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4",
"events_url": "https://api.github.com/users/CloseChoice/events{/privacy}",
"followers_url": "https://api.github.com/users/CloseChoice/followers",
"following_url": "https://api.github.com/users/CloseChoice/following{/other_user}",
"gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CloseChoice",
"id": 31857876,
"login": "CloseChoice",
"node_id": "MDQ6VXNlcjMxODU3ODc2",
"organizations_url": "https://api.github.com/users/CloseChoice/orgs",
"received_events_url": "https://api.github.com/users/CloseChoice/received_events",
"repos_url": "https://api.github.com/users/CloseChoice/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CloseChoice"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4",
"events_url": "https://api.github.com/users/CloseChoice/events{/privacy}",
"followers_url": "https://api.github.com/users/CloseChoice/followers",
"following_url": "https://api.github.com/users/CloseChoice/following{/other_user}",
"gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CloseChoice",
"id": 31857876,
"login": "CloseChoice",
"node_id": "MDQ6VXNlcjMxODU3ODc2",
"organizations_url": "https://api.github.com/users/CloseChoice/orgs",
"received_events_url": "https://api.github.com/users/CloseChoice/received_events",
"repos_url": "https://api.github.com/users/CloseChoice/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CloseChoice"
}
] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 13
| 2020-05-06T19:23:19Z
| 2020-05-11T00:33:39Z
| 2020-05-11T00:33:39Z
|
NONE
| null |
I have a dataframe with duplicated keys, and I need to assign values to some column of that dataframe, for some different keys. Dataframe indexes support duplicated keys, so I assume that this kind of work should be easy, if not I don't see why dataframes should be allowed to have duplicated keys. Anyway, setting the values like this:
df.loc[key, 'column']= vector
gives me the following error:
ValueError: Must have equal len keys and value when setting with an iterable
even if the number of times `key` appears in the index of `df` is equal to the length of `vector`. I think this should be fixed.
Thank you,
c. foschi
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34034/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34034/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34035
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34035/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34035/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34035/events
|
https://github.com/pandas-dev/pandas/issues/34035
| 613,605,811
|
MDU6SXNzdWU2MTM2MDU4MTE=
| 34,035
|
BUG: wrong join with nan in multiindex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/32389835?v=4",
"events_url": "https://api.github.com/users/gertjac/events{/privacy}",
"followers_url": "https://api.github.com/users/gertjac/followers",
"following_url": "https://api.github.com/users/gertjac/following{/other_user}",
"gists_url": "https://api.github.com/users/gertjac/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gertjac",
"id": 32389835,
"login": "gertjac",
"node_id": "MDQ6VXNlcjMyMzg5ODM1",
"organizations_url": "https://api.github.com/users/gertjac/orgs",
"received_events_url": "https://api.github.com/users/gertjac/received_events",
"repos_url": "https://api.github.com/users/gertjac/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gertjac/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gertjac/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gertjac"
}
|
[
{
"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
| 2020-05-06T20:52:37Z
| 2020-09-04T13:12:22Z
| 2020-09-04T13:12:22Z
|
NONE
| null |
- [ ] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**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
df1 = pd.DataFrame([['1.','3.','4.'],
['1.',pd.NA,'5.']],
columns=['i1', 'i2', 'v1']).set_index(['i1', 'i2'])
df2 = pd.DataFrame([['1.',pd.NA,'6.']],
columns=['i1', 'i2', 'v2']).set_index(['i1', 'i2'])
df1.join(df2, how='outer').loc[('1.', '3.')]['v2']
```
#### Problem description
the result is '6.'
so, the value of v2 in df2 appears as the value of v2 for index ('1.', '3.') after joining
this is unexpected for me, because the index is different from that in df2 ('1.',pd.NA)
this problem is also there with np.nan instead of pd.NA
and also in version 0.25.3 (when values are strings, but not when values are floats!)
#### Expected Output
NaN
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.3.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.3
numpy : 1.16.4
pytz : 2019.1
dateutil : 2.8.0
pip : 19.1.1
setuptools : 41.0.1
Cython : 0.29.12
pytest : 5.0.1
hypothesis : None
sphinx : 2.1.2
blosc : None
feather : None
xlsxwriter : 1.1.8
lxml.etree : 4.3.4
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10.1
IPython : 7.6.1
pandas_datareader: None
bs4 : 4.7.1
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.3.4
matplotlib : 3.1.0
numexpr : 2.6.9
odfpy : None
openpyxl : 2.6.2
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.0.1
pyxlsb : None
s3fs : None
scipy : 1.2.1
sqlalchemy : 1.3.5
tables : 3.5.2
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.1.8
numba : 0.44.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/34035/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34035/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34036
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34036/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34036/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34036/events
|
https://github.com/pandas-dev/pandas/pull/34036
| 613,619,966
|
MDExOlB1bGxSZXF1ZXN0NDE0MzM5NzI0
| 34,036
|
CI: Pin Cython on Numpy Dev
|
{
"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": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-05-06T21:19:23Z
| 2020-05-06T22:04:33Z
| 2020-05-06T22:04:29Z
|
CONTRIBUTOR
| null |
- [x] ref https://github.com/pandas-dev/pandas/issues/34014
Until we fix the above issue with cython 3.0a4
cc @jreback
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34036/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34036/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34036.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34036",
"merged_at": "2020-05-06T22:04:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34036.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34036"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34037
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34037/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34037/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34037/events
|
https://github.com/pandas-dev/pandas/issues/34037
| 613,640,448
|
MDU6SXNzdWU2MTM2NDA0NDg=
| 34,037
|
BUG: "min_period" and "min_periods" problem in df.groupby().rolling
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/38305983?v=4",
"events_url": "https://api.github.com/users/VincentWang25/events{/privacy}",
"followers_url": "https://api.github.com/users/VincentWang25/followers",
"following_url": "https://api.github.com/users/VincentWang25/following{/other_user}",
"gists_url": "https://api.github.com/users/VincentWang25/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/VincentWang25",
"id": 38305983,
"login": "VincentWang25",
"node_id": "MDQ6VXNlcjM4MzA1OTgz",
"organizations_url": "https://api.github.com/users/VincentWang25/orgs",
"received_events_url": "https://api.github.com/users/VincentWang25/received_events",
"repos_url": "https://api.github.com/users/VincentWang25/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/VincentWang25/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/VincentWang25/subscriptions",
"type": "User",
"url": "https://api.github.com/users/VincentWang25"
}
|
[
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/44500643?v=4",
"events_url": "https://api.github.com/users/horaceklai/events{/privacy}",
"followers_url": "https://api.github.com/users/horaceklai/followers",
"following_url": "https://api.github.com/users/horaceklai/following{/other_user}",
"gists_url": "https://api.github.com/users/horaceklai/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/horaceklai",
"id": 44500643,
"login": "horaceklai",
"node_id": "MDQ6VXNlcjQ0NTAwNjQz",
"organizations_url": "https://api.github.com/users/horaceklai/orgs",
"received_events_url": "https://api.github.com/users/horaceklai/received_events",
"repos_url": "https://api.github.com/users/horaceklai/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/horaceklai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/horaceklai/subscriptions",
"type": "User",
"url": "https://api.github.com/users/horaceklai"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/44500643?v=4",
"events_url": "https://api.github.com/users/horaceklai/events{/privacy}",
"followers_url": "https://api.github.com/users/horaceklai/followers",
"following_url": "https://api.github.com/users/horaceklai/following{/other_user}",
"gists_url": "https://api.github.com/users/horaceklai/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/horaceklai",
"id": 44500643,
"login": "horaceklai",
"node_id": "MDQ6VXNlcjQ0NTAwNjQz",
"organizations_url": "https://api.github.com/users/horaceklai/orgs",
"received_events_url": "https://api.github.com/users/horaceklai/received_events",
"repos_url": "https://api.github.com/users/horaceklai/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/horaceklai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/horaceklai/subscriptions",
"type": "User",
"url": "https://api.github.com/users/horaceklai"
}
] |
{
"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
| 2020-05-06T22:01:08Z
| 2021-08-17T00:20:32Z
| 2021-08-17T00:20:32Z
|
NONE
| null |
- [y] I have checked that this issue has not already been reported.
- [y] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
# Your code here
import pandas as pd
name_l = ["Alice"] * 5 + ["Bob"] * 5
val_l = [np.nan,np.nan,1,2,3]+[np.nan,1,2,3,4]
test_df = pd.DataFrame([name_l,val_l]).T
test_df.columns = ["name","val"]
# correct one
test_df.groupby("name")["val"].rolling(window=2,min_periods=1).sum()
# wrong one with "min_period” parameter
test_df.groupby("name")["val"].rolling(window=2,min_period=1).sum()
```
#### Problem description
The one with min_period does not work the same as min_periods and should not be allowed.
[this should explain **why** the current behaviour is a problem and why the expected output is a better solution]
#### Expected Output
The one with min_period as parameter should produce an error.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.5.final.0
python-bits : 64
OS : Linux
OS-release : 5.3.0-7629-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.3
numpy : 1.16.4
pytz : 2019.2
dateutil : 2.7.3
pip : 20.1
setuptools : 46.1.3
Cython : None
pytest : 5.4.1
hypothesis : None
sphinx : 2.2.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.4.2
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10
IPython : 7.11.1
pandas_datareader: None
bs4 : 4.8.2
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.4.2
matplotlib : 3.1.1
numexpr : None
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.4.1
pyxlsb : None
s3fs : None
scipy : 1.3.1
sqlalchemy : 1.3.12
tables : None
tabulate : None
xarray : 0.15.1
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
numba : 0.46.0
</details>
|
{
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34037/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34037/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34038
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34038/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34038/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34038/events
|
https://github.com/pandas-dev/pandas/issues/34038
| 613,649,729
|
MDU6SXNzdWU2MTM2NDk3Mjk=
| 34,038
|
BUG: Pandas Cython pd.sort_values() function, ignore_index DOESN'T WORK
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/60808981?v=4",
"events_url": "https://api.github.com/users/edin0/events{/privacy}",
"followers_url": "https://api.github.com/users/edin0/followers",
"following_url": "https://api.github.com/users/edin0/following{/other_user}",
"gists_url": "https://api.github.com/users/edin0/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/edin0",
"id": 60808981,
"login": "edin0",
"node_id": "MDQ6VXNlcjYwODA4OTgx",
"organizations_url": "https://api.github.com/users/edin0/orgs",
"received_events_url": "https://api.github.com/users/edin0/received_events",
"repos_url": "https://api.github.com/users/edin0/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/edin0/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/edin0/subscriptions",
"type": "User",
"url": "https://api.github.com/users/edin0"
}
|
[
{
"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 | 7
| 2020-05-06T22:22:27Z
| 2020-05-14T18:40:00Z
| 2020-05-14T18:40:00Z
|
NONE
| null |
- [ ] I have checked that this issue has not already been reported.
yes
- [ ] I have confirmed this bug exists on the latest version of pandas.
yes
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
idk
<img width="646" alt="Capture d’écran 2020-05-07 à 00 12 24" src="https://user-images.githubusercontent.com/60808981/81234096-635e3080-8ff8-11ea-9f53-3c9709a66f34.png">
---
**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
```
#### Problem description
The code works on python3, but not on Cython. It works when I delete "ignore_index=True" from my code, but then the output is obviously wrong :(
(sorry for censoring, I don't want to leak anything)
[this should explain **why** the current behaviour is a problem and why the expected output is a better solution]
#### Expected Output
ignore_index should work on Cython
#### Output of ``pd.show_versions()``
1.0.3
<details>
[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/34038/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34038/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34039
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34039/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34039/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34039/events
|
https://github.com/pandas-dev/pandas/pull/34039
| 613,662,085
|
MDExOlB1bGxSZXF1ZXN0NDE0MzczNzU0
| 34,039
|
CLN: spelling fixes in docstrings
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8585672?v=4",
"events_url": "https://api.github.com/users/akosfurton/events{/privacy}",
"followers_url": "https://api.github.com/users/akosfurton/followers",
"following_url": "https://api.github.com/users/akosfurton/following{/other_user}",
"gists_url": "https://api.github.com/users/akosfurton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/akosfurton",
"id": 8585672,
"login": "akosfurton",
"node_id": "MDQ6VXNlcjg1ODU2NzI=",
"organizations_url": "https://api.github.com/users/akosfurton/orgs",
"received_events_url": "https://api.github.com/users/akosfurton/received_events",
"repos_url": "https://api.github.com/users/akosfurton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/akosfurton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akosfurton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/akosfurton"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-05-06T22:55:07Z
| 2020-05-08T17:36:22Z
| 2020-05-08T17:35:40Z
|
CONTRIBUTOR
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34039/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34039/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34039.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34039",
"merged_at": "2020-05-08T17:35:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34039.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34039"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34040
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34040/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34040/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34040/events
|
https://github.com/pandas-dev/pandas/pull/34040
| 613,696,095
|
MDExOlB1bGxSZXF1ZXN0NDE0NDAwOTcy
| 34,040
|
PERF: use isinstance(obj, Foo) instead of ABCFoo
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-05-07T00:38:35Z
| 2020-05-09T19:31:07Z
| 2020-05-09T19:21:20Z
|
MEMBER
| null |
per discussion in #27353, isinstance checks with the ABCFoo are about 4x as expensive as the Foo checks. Individually they are still very small, but they add up.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34040/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34040/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34040.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34040",
"merged_at": "2020-05-09T19:21:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34040.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34040"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34041
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34041/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34041/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34041/events
|
https://github.com/pandas-dev/pandas/pull/34041
| 613,696,902
|
MDExOlB1bGxSZXF1ZXN0NDE0NDAxNTk2
| 34,041
|
CLN: remove normalize_date, but really this time
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-05-07T00:41:29Z
| 2020-05-07T03:01:41Z
| 2020-05-07T02:52:40Z
|
MEMBER
| null |
#34016 removed all the references to it, but I forgot the actual function
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34041/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34041/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34041.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34041",
"merged_at": "2020-05-07T02:52:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34041.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34041"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34042
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34042/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34042/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34042/events
|
https://github.com/pandas-dev/pandas/pull/34042
| 613,716,158
|
MDExOlB1bGxSZXF1ZXN0NDE0NDE2MTEz
| 34,042
|
REF: use unpack_zerodim_and_defer on EA methods
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 8
| 2020-05-07T01:46:43Z
| 2021-11-20T23:22:41Z
| 2020-08-07T19:35:20Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34042/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34042/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34042.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34042",
"merged_at": "2020-08-07T19:35:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34042.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34042"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34043
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34043/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34043/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34043/events
|
https://github.com/pandas-dev/pandas/pull/34043
| 613,723,747
|
MDExOlB1bGxSZXF1ZXN0NDE0NDIxOTIz
| 34,043
|
PERF: cdef UTC
|
{
"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": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-05-07T02:13:31Z
| 2020-05-07T16:17:25Z
| 2020-05-07T16:07:40Z
|
MEMBER
| null |
This won't make a big difference, but it will avoid needing to go to python-space for these lookups.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34043/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34043/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34043.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34043",
"merged_at": "2020-05-07T16:07:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34043.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34043"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34044
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34044/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34044/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34044/events
|
https://github.com/pandas-dev/pandas/issues/34044
| 613,896,959
|
MDU6SXNzdWU2MTM4OTY5NTk=
| 34,044
|
BUG: maximum recursion depth in eval when using bool object
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/143389?v=4",
"events_url": "https://api.github.com/users/wiso/events{/privacy}",
"followers_url": "https://api.github.com/users/wiso/followers",
"following_url": "https://api.github.com/users/wiso/following{/other_user}",
"gists_url": "https://api.github.com/users/wiso/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wiso",
"id": 143389,
"login": "wiso",
"node_id": "MDQ6VXNlcjE0MzM4OQ==",
"organizations_url": "https://api.github.com/users/wiso/orgs",
"received_events_url": "https://api.github.com/users/wiso/received_events",
"repos_url": "https://api.github.com/users/wiso/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wiso/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wiso/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wiso"
}
|
[
{
"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": "f3afff",
"default": false,
"description": "pd.eval, query",
"id": 1631985267,
"name": "expressions",
"node_id": "MDU6TGFiZWwxNjMxOTg1MjY3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/expressions"
}
] |
open
| false
| null |
[] | null | 3
| 2020-05-07T09:09:04Z
| 2020-06-17T07:26:21Z
| null |
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import pandas as pd
df = pd.DataFrame({"col1": [True] * 50, "col2": [2] * 50})
df["col1"] = df["col1"].astype("object")
df.eval("col1 & (col2!=2)")
```
#### Problem description
```
RecursionError: maximum recursion depth exceeded while calling a Python object
```
"col1" in the example is casted to object bool since in my real example I have nan.
Maybe similar to #27639
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.15-200.fc31.x86_64
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : it_IT.UTF-8
LOCALE : it_IT.UTF-8
pandas : 1.0.3
numpy : 1.18.1
pytz : 2019.2
dateutil : 2.7.5
pip : 20.1
setuptools : 41.6.0
Cython : 0.29.15
pytest : 4.0.0
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.4.0
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10
IPython : 7.3.0
pandas_datareader: 0.8.0
bs4 : 4.7.1
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.4.0
matplotlib : 3.1.3
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 4.0.0
pyxlsb : None
s3fs : 0.4.2
scipy : 1.2.1
sqlalchemy : None
tables : 3.5.2
tabulate : 0.8.5
xarray : 0.12.1
xlrd : 1.2.0
xlwt : 1.1.2
xlsxwriter : None
numba : 0.48.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34044/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34044/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34045
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34045/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34045/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34045/events
|
https://github.com/pandas-dev/pandas/issues/34045
| 613,952,453
|
MDU6SXNzdWU2MTM5NTI0NTM=
| 34,045
|
BUG: eval not working with fillna
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/23424198?v=4",
"events_url": "https://api.github.com/users/meakbiyik/events{/privacy}",
"followers_url": "https://api.github.com/users/meakbiyik/followers",
"following_url": "https://api.github.com/users/meakbiyik/following{/other_user}",
"gists_url": "https://api.github.com/users/meakbiyik/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meakbiyik",
"id": 23424198,
"login": "meakbiyik",
"node_id": "MDQ6VXNlcjIzNDI0MTk4",
"organizations_url": "https://api.github.com/users/meakbiyik/orgs",
"received_events_url": "https://api.github.com/users/meakbiyik/received_events",
"repos_url": "https://api.github.com/users/meakbiyik/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meakbiyik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meakbiyik/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meakbiyik"
}
|
[
{
"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": "f3afff",
"default": false,
"description": "pd.eval, query",
"id": 1631985267,
"name": "expressions",
"node_id": "MDU6TGFiZWwxNjMxOTg1MjY3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/expressions"
}
] |
open
| false
| null |
[] | null | 4
| 2020-05-07T10:37:59Z
| 2020-05-17T18:54:13Z
| null |
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
```python
import pandas as pd
d = pd.DataFrame([1, 2], columns=['a'])
d.eval('((a-1)/(a-1)).fillna(0)')
```
#### Problem description
With eval, fillna function raises an obscure error
```python
>>> d.eval('(a-1)/(a-1)')
0 NaN
1 1.0
Name: a, dtype: float64
>>> d.eval('((a-1)/(a-1)).fillna(0)')
Traceback (most recent call last):
File "C:\Users\ErenAkbiyik\.conda\envs\work\lib\site-packages\pandas\core\frame.py", line 3346, in eval
return _eval(expr, inplace=inplace, **kwargs)
File "C:\Users\ErenAkbiyik\.conda\envs\work\lib\site-packages\pandas\core\computation\eval.py", line 332, in eval
parsed_expr = Expr(expr, engine=engine, parser=parser, env=env)
File "C:\Users\ErenAkbiyik\.conda\envs\work\lib\site-packages\pandas\core\computation\expr.py", line 764, in __init__
self.terms = self.parse()
File "C:\Users\ErenAkbiyik\.conda\envs\work\lib\site-packages\pandas\core\computation\expr.py", line 781, in parse
return self._visitor.visit(self.expr)
File "C:\Users\ErenAkbiyik\.conda\envs\work\lib\site-packages\pandas\core\computation\expr.py", line 375, in visit
return visitor(node, **kwargs)
File "C:\Users\ErenAkbiyik\.conda\envs\work\lib\site-packages\pandas\core\computation\expr.py", line 381, in visit_Module
return self.visit(expr, **kwargs)
File "C:\Users\ErenAkbiyik\.conda\envs\work\lib\site-packages\pandas\core\computation\expr.py", line 375, in visit
return visitor(node, **kwargs)
File "C:\Users\ErenAkbiyik\.conda\envs\work\lib\site-packages\pandas\core\computation\expr.py", line 384, in visit_Expr
return self.visit(node.value, **kwargs)
File "C:\Users\ErenAkbiyik\.conda\envs\work\lib\site-packages\pandas\core\computation\expr.py", line 375, in visit
return visitor(node, **kwargs)
File "C:\Users\ErenAkbiyik\.conda\envs\work\lib\site-packages\pandas\core\computation\expr.py", line 622, in visit_Call
res = self.visit_Attribute(node.func)
File "C:\Users\ErenAkbiyik\.conda\envs\work\lib\site-packages\pandas\core\computation\expr.py", line 607, in visit_Attribute
resolved = self.visit(value).value
AttributeError: 'Div' object has no attribute 'value'
```
#### Expected Output
```python
>>> d.eval('(a-1)/(a-1)')
0 0.0
1 1.0
Name: a, dtype: float64
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.5.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 12, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.3
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3.post20200330
Cython : None
pytest : None
hypothesis : None
sphinx : 2.4.4
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.3
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : 0.8.3
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34045/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34045/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34046
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34046/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34046/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34046/events
|
https://github.com/pandas-dev/pandas/issues/34046
| 613,954,329
|
MDU6SXNzdWU2MTM5NTQzMjk=
| 34,046
|
ENH: piped alias for .merge(left_index=True,right_index=True,how='outer')
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39657310?v=4",
"events_url": "https://api.github.com/users/MiguelArriaga/events{/privacy}",
"followers_url": "https://api.github.com/users/MiguelArriaga/followers",
"following_url": "https://api.github.com/users/MiguelArriaga/following{/other_user}",
"gists_url": "https://api.github.com/users/MiguelArriaga/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MiguelArriaga",
"id": 39657310,
"login": "MiguelArriaga",
"node_id": "MDQ6VXNlcjM5NjU3MzEw",
"organizations_url": "https://api.github.com/users/MiguelArriaga/orgs",
"received_events_url": "https://api.github.com/users/MiguelArriaga/received_events",
"repos_url": "https://api.github.com/users/MiguelArriaga/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MiguelArriaga/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MiguelArriaga/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MiguelArriaga"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-05-07T10:41:10Z
| 2020-09-04T13:13:38Z
| 2020-09-04T13:13:37Z
|
NONE
| null |
#### Is your feature request related to a problem?
The way to merge two dataframes by index and default 'outer' is to use concat(axis=1), but this does not work if I want to follow a piped workflow. I would like to do the equivalent of df.merge(left_index=True,right_index=True,how='outer') but in a less verbose way.
#### Describe the solution you'd like
```python
def merge_byindex(self,df2,how='outer',**kwargs):
"""Merge input DataFrame by index.
It is equivalent to doing pd.DataFrame.merge(left_index=True,right_index=True,how='outer',**kwargs).
"""
return self.merge(df2,left_index=True,right_index=True,how='outer',**kwargs)
```
#### API breaking implications
no breaking implications
#### Describe alternatives you've considered
The natural alternative is to just keep doing .merge(left_index=True,right_index=True,how='outer')
#### Additional context
The reasons for having this as a separate function are the following:
1. The level of verbosity required to do this simple operation seems unreasonable.
2. Seems that maybe this particular operation could be more efficient than a general merge.
3. It would greatly simplify the documentation for this particular operation
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34046/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34046/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34047
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34047/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34047/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34047/events
|
https://github.com/pandas-dev/pandas/issues/34047
| 614,069,454
|
MDU6SXNzdWU2MTQwNjk0NTQ=
| 34,047
|
BUG: cummin, max, sum not valid when used with agg + NaN not skipped.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13206058?v=4",
"events_url": "https://api.github.com/users/yohplala/events{/privacy}",
"followers_url": "https://api.github.com/users/yohplala/followers",
"following_url": "https://api.github.com/users/yohplala/following{/other_user}",
"gists_url": "https://api.github.com/users/yohplala/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yohplala",
"id": 13206058,
"login": "yohplala",
"node_id": "MDQ6VXNlcjEzMjA2MDU4",
"organizations_url": "https://api.github.com/users/yohplala/orgs",
"received_events_url": "https://api.github.com/users/yohplala/received_events",
"repos_url": "https://api.github.com/users/yohplala/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yohplala/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yohplala/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yohplala"
}
|
[
{
"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": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] |
open
| false
| null |
[] |
{
"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
| 2020-05-07T13:44:07Z
| 2021-07-28T01:56:44Z
| 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, a copy-pastable example
```python
import pandas as pd
import numpy as np
from random import seed, randint
# Data
kp = pd.period_range(start='2020-01-01 00:00', end='2020-01-01 00:25', freq='5T')
sp = pd.period_range(start='2020-01-01 00:00', end='2020-01-01 00:25', freq='1h')
seed(1)
values = [randint(0,10) for p in kp]
dft = pd.DataFrame({'Values' : values}, index=kp)
dft.loc[kp[-2]] = np.nan
# Trouble 1: `cummin`, `cummax`, `cumsum` not available through `agg`?
resampler = dft.resample(sp.freqstr)
progress = resampler.agg('cummin')
```
Get (same with `cummax` and `cumsum`):
AttributeError: 'cummin' is not a valid function for 'PeriodIndexResampler' object.
```
# Trouble 2: `cummin`, `cummax`, `cumsum` appear to work when used in a dict,
# but not skipna parameter. Whatever `skipna` (`True` or `False`) result is the same.
resampler = dft.resample(sp.freqstr)
progress = resampler.agg({('Values','cummin')},skipna=False)
```
#### Output obtained
progress
Values
Values
2020-01-01 00:00 2.0
2020-01-01 00:05 2.0
2020-01-01 00:10 1.0
2020-01-01 00:15 1.0
2020-01-01 00:20 NaN
2020-01-01 00:25 1.0
#### Problem description
It appears `cumsum`, `cummin`, `cumsum` cannot be used directly with `agg`. The documentation appears to state differently:
"Function to use for aggregating the data. If a function, must either work when passed a DataFrame or when passed to DataFrame.apply."
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.core.resample.Resampler.aggregate.html
#### Expected Output
For trouble 1 :
`progress` (with `cummin`)
Values
2020-01-01 00:00 2.0
2020-01-01 00:05 2.0
2020-01-01 00:10 1.0
2020-01-01 00:15 1.0
2020-01-01 00:20 NaN
2020-01-01 00:25 1.0
For trouble 2:
`progress` (with `cummin` & `skipna=False`)
Values
2020-01-01 00:00 2.0
2020-01-01 00:05 2.0
2020-01-01 00:10 1.0
2020-01-01 00:15 1.0
2020-01-01 00:20 NaN
2020-01-01 00:25 NaN
As a side question, is it possible to have an additional parameter `fill_value=0` to have then following output?
`progress` (with `cummin` & `fill_value=0`)
Values
2020-01-01 00:00 2.0
2020-01-01 00:05 2.0
2020-01-01 00:10 1.0
2020-01-01 00:15 1.0
2020-01-01 00:20 1.0
2020-01-01 00:25 1.0
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Linux
OS-release : 5.3.0-51-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : fr_FR.UTF-8
LOCALE : fr_FR.UTF-8
pandas : 1.0.3
numpy : 1.16.3
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3.post20200330
Cython : None
pytest : None
hypothesis : None
sphinx : 2.4.4
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : 0.3.3
gcsfs : None
lxml.etree : None
matplotlib : 3.0.3
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 0.16.0
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : 3.6.1
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : 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/34047/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34047/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34048
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34048/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34048/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34048/events
|
https://github.com/pandas-dev/pandas/pull/34048
| 614,078,121
|
MDExOlB1bGxSZXF1ZXN0NDE0NzAzMzQ3
| 34,048
|
Bug in DataFrame.replace casts columns to ``object`` dtype if items in ``to_replace`` not in values
|
{
"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": "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": "01a886",
"default": false,
"description": "replace method",
"id": 1652721180,
"name": "replace",
"node_id": "MDU6TGFiZWwxNjUyNzIxMTgw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/replace"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 2
| 2020-05-07T13:55:54Z
| 2020-05-26T09:29:43Z
| 2020-05-09T20:07:43Z
|
MEMBER
| null |
- [ ] closes #32988
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34048/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34048/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34048.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34048",
"merged_at": "2020-05-09T20:07:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34048.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34048"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34049
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34049/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34049/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34049/events
|
https://github.com/pandas-dev/pandas/pull/34049
| 614,113,031
|
MDExOlB1bGxSZXF1ZXN0NDE0NzMxODc4
| 34,049
|
Bug in Series.groupby would raise ValueError when grouping by PeriodIndex level
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 2
| 2020-05-07T14:42:41Z
| 2020-05-26T09:27:53Z
| 2020-05-19T08:43:05Z
|
MEMBER
| null |
- [ ] closes #34010
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34049/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34049/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34049.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34049",
"merged_at": "2020-05-19T08:43:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34049.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34049"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34050
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34050/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34050/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34050/events
|
https://github.com/pandas-dev/pandas/pull/34050
| 614,193,278
|
MDExOlB1bGxSZXF1ZXN0NDE0Nzk3Mjgy
| 34,050
|
CI: check_freq=False
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 5
| 2020-05-07T16:36:37Z
| 2020-08-05T14:25:51Z
| 2020-05-09T19:54:21Z
|
MEMBER
| null |
Aimed at a test that has been periodically failing in the CI for a week or so.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34050/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34050/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34050.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34050",
"merged_at": "2020-05-09T19:54:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34050.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34050"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34051
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34051/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34051/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34051/events
|
https://github.com/pandas-dev/pandas/issues/34051
| 614,216,777
|
MDU6SXNzdWU2MTQyMTY3Nzc=
| 34,051
|
BUG: DataFrameGroupBy.sum ignores min_count for boolean data type
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"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": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-05-07T17:16:15Z
| 2020-05-11T18:53:16Z
| 2020-05-11T18:53:16Z
|
MEMBER
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
Behavior is from master:
```python
import pandas as pd
df = pd.DataFrame({"a": [1, 2], "b": pd.array([True, True])})
df.groupby("a").sum(min_count=2)
```
gives
```python
b
a
1 True
2 True
```
but expected output is
```python
b
a
1 <NA>
2 <NA>
```
It looks to me like there's an attempt to compute a Cythonized result which fails, after which point the min_count argument is forgotten.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34051/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34051/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34052
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34052/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34052/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34052/events
|
https://github.com/pandas-dev/pandas/pull/34052
| 614,256,415
|
MDExOlB1bGxSZXF1ZXN0NDE0ODQ4NzQ2
| 34,052
|
PERF: Use Indexers to implement groupby rolling
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 10
| 2020-05-07T18:26:48Z
| 2020-08-04T16:40:50Z
| 2020-05-25T17:26:20Z
|
MEMBER
| null |
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Currently, `grouby.rolling` is implemented essentially as `groupby.apply(lambda x: x.rolling())` which can be potentially slow.
This PR implements `groupby.rolling` by calculating bounds with a `GroupbyRollingIndxer` and using the rolling aggregations in cython to compute the results.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34052/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34052/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34052.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34052",
"merged_at": "2020-05-25T17:26:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34052.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34052"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34053
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34053/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34053/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34053/events
|
https://github.com/pandas-dev/pandas/pull/34053
| 614,266,450
|
MDExOlB1bGxSZXF1ZXN0NDE0ODU2OTcw
| 34,053
|
more informative error message with np.min or np.max on unordered Categorical
|
{
"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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 1
| 2020-05-07T18:44:23Z
| 2020-05-26T09:27:21Z
| 2020-05-19T08:41:32Z
|
MEMBER
| null |
- [ ] closes #33115
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34053/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34053/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34053.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34053",
"merged_at": "2020-05-19T08:41:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34053.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34053"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34054
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34054/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34054/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34054/events
|
https://github.com/pandas-dev/pandas/pull/34054
| 614,317,802
|
MDExOlB1bGxSZXF1ZXN0NDE0ODk4Mzg3
| 34,054
|
REF: implement ABCTimestamp, ABCTimedelta, ABCTick
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-05-07T20:17:41Z
| 2020-05-07T22:46:42Z
| 2020-05-07T21:44:46Z
|
MEMBER
| null |
Motivation: to make more progress on getting DateOffset into cython, we need to be able to import Timestamp into liboffsets. ATM that would induce circular dependencies.
This allows us to merge c_timestamp back into timestamps.pyx; the initial motivation for that was to be able to cimport _Timestamp into libconversion.
In a follow-up we can use this pattern to make a faster `is_interval` check (that doesnt have to go through python-space)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34054/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34054/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34054.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34054",
"merged_at": "2020-05-07T21:44:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34054.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34054"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34055
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34055/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34055/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34055/events
|
https://github.com/pandas-dev/pandas/pull/34055
| 614,328,017
|
MDExOlB1bGxSZXF1ZXN0NDE0OTA2NzY5
| 34,055
|
Standardize datetimelike casting behavior where/setitem/searchsorted/comparison
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-05-07T20:36:58Z
| 2020-05-08T17:16:06Z
| 2020-05-07T21:44:59Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Addresses #30699 for eq/ne, but not for inequalities.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34055/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34055/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34055.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34055",
"merged_at": "2020-05-07T21:44:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34055.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34055"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34056
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34056/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34056/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34056/events
|
https://github.com/pandas-dev/pandas/pull/34056
| 614,337,539
|
MDExOlB1bGxSZXF1ZXN0NDE0OTE0MzA0
| 34,056
|
BUG: Make nullable booleans numeric
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"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": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-05-07T20:54:09Z
| 2020-05-11T18:59:57Z
| 2020-05-11T18:53:16Z
|
MEMBER
| null |
- [x] closes #34051
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Also a decent speedup since this is now going through Cython space:
```python
df = pd.DataFrame({"a": [1] * 50_000 + [2] * 50_000, "b": pd.array([True] * 100_000)})
# master
%timeit df.groupby("a").sum()
# 5.15 ms ± 18 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
# branch
%timeit df.groupby("a").sum()
# 1.94 ms ± 10.8 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34056/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34056/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34056.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34056",
"merged_at": "2020-05-11T18:53:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34056.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34056"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34057
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34057/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34057/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34057/events
|
https://github.com/pandas-dev/pandas/issues/34057
| 614,354,179
|
MDU6SXNzdWU2MTQzNTQxNzk=
| 34,057
|
DOC: Missing examples of from_records.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3943761?v=4",
"events_url": "https://api.github.com/users/bdice/events{/privacy}",
"followers_url": "https://api.github.com/users/bdice/followers",
"following_url": "https://api.github.com/users/bdice/following{/other_user}",
"gists_url": "https://api.github.com/users/bdice/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bdice",
"id": 3943761,
"login": "bdice",
"node_id": "MDQ6VXNlcjM5NDM3NjE=",
"organizations_url": "https://api.github.com/users/bdice/orgs",
"received_events_url": "https://api.github.com/users/bdice/received_events",
"repos_url": "https://api.github.com/users/bdice/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bdice/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bdice/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bdice"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3943761?v=4",
"events_url": "https://api.github.com/users/bdice/events{/privacy}",
"followers_url": "https://api.github.com/users/bdice/followers",
"following_url": "https://api.github.com/users/bdice/following{/other_user}",
"gists_url": "https://api.github.com/users/bdice/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bdice",
"id": 3943761,
"login": "bdice",
"node_id": "MDQ6VXNlcjM5NDM3NjE=",
"organizations_url": "https://api.github.com/users/bdice/orgs",
"received_events_url": "https://api.github.com/users/bdice/received_events",
"repos_url": "https://api.github.com/users/bdice/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bdice/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bdice/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bdice"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/3943761?v=4",
"events_url": "https://api.github.com/users/bdice/events{/privacy}",
"followers_url": "https://api.github.com/users/bdice/followers",
"following_url": "https://api.github.com/users/bdice/following{/other_user}",
"gists_url": "https://api.github.com/users/bdice/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bdice",
"id": 3943761,
"login": "bdice",
"node_id": "MDQ6VXNlcjM5NDM3NjE=",
"organizations_url": "https://api.github.com/users/bdice/orgs",
"received_events_url": "https://api.github.com/users/bdice/received_events",
"repos_url": "https://api.github.com/users/bdice/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bdice/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bdice/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bdice"
}
] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-05-07T21:25:53Z
| 2020-05-12T11:08:25Z
| 2020-05-12T11:08:25Z
|
CONTRIBUTOR
| null |
#### Location of the documentation
`pandas.DataFrame.from_records`: https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.from_records.html
#### Documentation problem
Examples are provided for constructors like `DataFrame.from_dict` but no examples are present for `DataFrame.from_records`, which makes it slightly harder to tell whether it's appropriate for a desired use case.
#### Suggested fix for documentation
Add examples.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34057/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34057/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34058
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34058/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34058/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34058/events
|
https://github.com/pandas-dev/pandas/pull/34058
| 614,366,854
|
MDExOlB1bGxSZXF1ZXN0NDE0OTM4MjE3
| 34,058
|
DOC: Examples for DataFrame.from_records
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3943761?v=4",
"events_url": "https://api.github.com/users/bdice/events{/privacy}",
"followers_url": "https://api.github.com/users/bdice/followers",
"following_url": "https://api.github.com/users/bdice/following{/other_user}",
"gists_url": "https://api.github.com/users/bdice/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bdice",
"id": 3943761,
"login": "bdice",
"node_id": "MDQ6VXNlcjM5NDM3NjE=",
"organizations_url": "https://api.github.com/users/bdice/orgs",
"received_events_url": "https://api.github.com/users/bdice/received_events",
"repos_url": "https://api.github.com/users/bdice/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bdice/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bdice/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bdice"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 5
| 2020-05-07T21:49:59Z
| 2020-05-12T16:40:38Z
| 2020-05-12T11:08:25Z
|
CONTRIBUTOR
| null |
This PR adds examples to the documentation for `pandas.DataFrame.from_records`. It also rewords a couple sentences to clarify that the input data can be a sequence of dicts or sequence of tuples (but not a sequence of DataFrames).
- [x] closes #34057
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34058/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34058/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34058.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34058",
"merged_at": "2020-05-12T11:08:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34058.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34058"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34059
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34059/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34059/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34059/events
|
https://github.com/pandas-dev/pandas/pull/34059
| 614,368,385
|
MDExOlB1bGxSZXF1ZXN0NDE0OTM5NDY1
| 34,059
|
DOC:GH34026
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9169730?v=4",
"events_url": "https://api.github.com/users/moaraccounts/events{/privacy}",
"followers_url": "https://api.github.com/users/moaraccounts/followers",
"following_url": "https://api.github.com/users/moaraccounts/following{/other_user}",
"gists_url": "https://api.github.com/users/moaraccounts/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/moaraccounts",
"id": 9169730,
"login": "moaraccounts",
"node_id": "MDQ6VXNlcjkxNjk3MzA=",
"organizations_url": "https://api.github.com/users/moaraccounts/orgs",
"received_events_url": "https://api.github.com/users/moaraccounts/received_events",
"repos_url": "https://api.github.com/users/moaraccounts/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/moaraccounts/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/moaraccounts/subscriptions",
"type": "User",
"url": "https://api.github.com/users/moaraccounts"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 11
| 2020-05-07T21:53:34Z
| 2020-05-19T20:54:34Z
| 2020-05-16T19:13:46Z
|
CONTRIBUTOR
| null |
- [x] closes #34026
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34059/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34059/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34059.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34059",
"merged_at": "2020-05-16T19:13:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34059.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34059"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34060
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34060/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34060/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34060/events
|
https://github.com/pandas-dev/pandas/issues/34060
| 614,401,513
|
MDU6SXNzdWU2MTQ0MDE1MTM=
| 34,060
|
BUG: df.to_excel returns an error
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/23180334?v=4",
"events_url": "https://api.github.com/users/mukerong/events{/privacy}",
"followers_url": "https://api.github.com/users/mukerong/followers",
"following_url": "https://api.github.com/users/mukerong/following{/other_user}",
"gists_url": "https://api.github.com/users/mukerong/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mukerong",
"id": 23180334,
"login": "mukerong",
"node_id": "MDQ6VXNlcjIzMTgwMzM0",
"organizations_url": "https://api.github.com/users/mukerong/orgs",
"received_events_url": "https://api.github.com/users/mukerong/received_events",
"repos_url": "https://api.github.com/users/mukerong/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mukerong/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mukerong/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mukerong"
}
|
[
{
"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 | 4
| 2020-05-07T23:17:07Z
| 2020-05-13T06:53:54Z
| 2020-05-11T18:41:18Z
|
NONE
| null |
Hello,
I run the sample script in pandas [to_excel documentation](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_excel.html). However, it throws an error.
#### Code Sample, a copy-pastable example
```python
# Your code here
df1 = pd.DataFrame([['a', 'b'], ['c', 'd']],
index=['row 1', 'row 2'],
columns=['col 1', 'col 2'])
df1.to_excel("output.xlsx")
```
#### Problem description
Here is the screenshot of the issue:

Openpyxl installed while installing pandas through pip.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34060/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34060/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34061
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34061/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34061/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34061/events
|
https://github.com/pandas-dev/pandas/issues/34061
| 614,462,236
|
MDU6SXNzdWU2MTQ0NjIyMzY=
| 34,061
|
BUG: using a list in "selector" for set_table_styles produces wrong rules
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3358268?v=4",
"events_url": "https://api.github.com/users/levitsky/events{/privacy}",
"followers_url": "https://api.github.com/users/levitsky/followers",
"following_url": "https://api.github.com/users/levitsky/following{/other_user}",
"gists_url": "https://api.github.com/users/levitsky/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/levitsky",
"id": 3358268,
"login": "levitsky",
"node_id": "MDQ6VXNlcjMzNTgyNjg=",
"organizations_url": "https://api.github.com/users/levitsky/orgs",
"received_events_url": "https://api.github.com/users/levitsky/received_events",
"repos_url": "https://api.github.com/users/levitsky/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/levitsky/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/levitsky/subscriptions",
"type": "User",
"url": "https://api.github.com/users/levitsky"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "006b75",
"default": false,
"description": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
},
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 2
| 2020-05-08T02:38:02Z
| 2021-02-27T19:44:58Z
| 2021-02-27T19:44:58Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Problem description
Example: I want to apply a style like this:
`df.style.set_table_styles([{'selector': 'th.col_heading,th.blank', 'props': [('display', 'none')]}])`
Note a list (`th.col_heading,th.blank`) as selector. This produces wrong CSS, because UUID of the table is only prepended once to this selector:
#T_table_UUID th.col_heading, th.blank {
display: none;
}
i.e. __all__ `th.blank` elements in all tables on the page are hidden. This is not exactly intuitive, although the workaround is simple: you need to write
`set_table_styles([{'selector': 'th.col_heading', 'props': [('display', 'none')]}, {'selector': 'th.blank', 'props': [('display', 'none')]}])`
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.2.final.0
python-bits : 64
OS : Linux
OS-release : 5.6.10-arch1-1
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.3
numpy : 1.18.4
pytz : 2020.1
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3
Cython : None
pytest : 5.4.1
hypothesis : None
sphinx : 3.0.3
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.0
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.14.0
pandas_datareader: None
bs4 : 4.9.0
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.2.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.4.1
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.16
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34061/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34061/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34062
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34062/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34062/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34062/events
|
https://github.com/pandas-dev/pandas/pull/34062
| 614,489,411
|
MDExOlB1bGxSZXF1ZXN0NDE1MDM0MzY0
| 34,062
|
REF: move apply_wraps up into liboffstes
|
{
"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": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-05-08T04:10:18Z
| 2020-05-10T15:36:24Z
| 2020-05-10T15:08:16Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34062/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34062/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34062.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34062",
"merged_at": "2020-05-10T15:08:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34062.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34062"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34063
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34063/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34063/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34063/events
|
https://github.com/pandas-dev/pandas/issues/34063
| 614,608,971
|
MDU6SXNzdWU2MTQ2MDg5NzE=
| 34,063
|
DOC: Dataframe.skew invalid function signature for "skipna"
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/464537?v=4",
"events_url": "https://api.github.com/users/bf/events{/privacy}",
"followers_url": "https://api.github.com/users/bf/followers",
"following_url": "https://api.github.com/users/bf/following{/other_user}",
"gists_url": "https://api.github.com/users/bf/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bf",
"id": 464537,
"login": "bf",
"node_id": "MDQ6VXNlcjQ2NDUzNw==",
"organizations_url": "https://api.github.com/users/bf/orgs",
"received_events_url": "https://api.github.com/users/bf/received_events",
"repos_url": "https://api.github.com/users/bf/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bf/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bf"
}
|
[
{
"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": "547c03",
"default": false,
"description": "sum, mean, min, max, etc.",
"id": 2365504383,
"name": "Reduction Operations",
"node_id": "MDU6TGFiZWwyMzY1NTA0Mzgz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reduction%20Operations"
}
] |
closed
| false
| null |
[] |
{
"closed_at": 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"
}
| 10
| 2020-05-08T08:57:17Z
| 2021-10-16T17:28:54Z
| 2021-10-16T17:28:54Z
|
NONE
| null |
#### Location of the documentation
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.skew.html
#### Documentation problem
In the function signature it says `skipna=None` even though the parameter documentation underneath says `skipna bool, default True`.
#### Suggested fix for documentation
The `skipna=None` in function signature should be changed to `skipna=True`.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34063/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34063/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34064
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34064/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34064/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34064/events
|
https://github.com/pandas-dev/pandas/issues/34064
| 614,652,040
|
MDU6SXNzdWU2MTQ2NTIwNDA=
| 34,064
|
BUG: Pandas named aggregation not working with resample agg
|
{
"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": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "207de5",
"default": false,
"description": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-05-08T10:21:05Z
| 2020-05-18T11:08:36Z
| 2020-05-18T11:08:35Z
|
MEMBER
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
df = pd.DataFrame(
{"group": ["a"], "col": [1.0]}, index=[pd.to_datetime("2019-11-04 10:32:09.737")]
)
df.groupby("group").resample("1D").agg(open=pd.NamedAgg("col", "first"))
```
#### Problem description
This returns
```python
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-34479fc13c88> in <module>
----> 1 df.groupby('group').resample('1D').agg(open=pd.NamedAgg("col", "first"))
TypeError: aggregate() missing 1 required positional argument: 'func'
```
#### Expected Output
I think this would be
```python
group open
group
a 2019-11-04 a 1.0
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 3ed7dff48bb4e8c7c0129283ff51eccea3a0f861
python : 3.8.2.final.0
python-bits : 64
OS : Linux
OS-release : 5.3.0-51-generic
Version : #44~18.04.2-Ubuntu SMP Thu Apr 23 14:27:18 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_GB.UTF-8
LOCALE : en_GB.UTF-8
pandas : 1.1.0.dev0+1502.g3ed7dff48
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3.post20200325
Cython : 0.29.16
pytest : 5.4.1
hypothesis : 5.8.0
sphinx : 3.0.0
blosc : None
feather : None
xlsxwriter : 1.2.8
lxml.etree : 4.5.0
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : 4.9.0
bottleneck : 1.3.2
fastparquet : 0.3.3
gcsfs : None
matplotlib : 3.2.1
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : 0.16.0
pytables : None
pyxlsb : None
s3fs : 0.4.2
scipy : 1.4.1
sqlalchemy : 1.3.16
tables : 3.6.1
tabulate : 0.8.7
xarray : 0.15.1
xlrd : 1.2.0
xlwt : 1.3.0
numba : 0.48.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34064/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34064/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34065
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34065/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34065/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34065/events
|
https://github.com/pandas-dev/pandas/pull/34065
| 614,664,314
|
MDExOlB1bGxSZXF1ZXN0NDE1MTcyMjM1
| 34,065
|
DOC: use the sphinx-panels extension for cards instead of raw html
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 8
| 2020-05-08T10:45:46Z
| 2021-04-09T06:54:00Z
| 2021-04-09T06:53:56Z
|
MEMBER
| null |
This is an alternative for https://github.com/pandas-dev/pandas/pull/32065, using the https://sphinx-panels.readthedocs.io/en/latest/ extension (which was created inspired on how we are using this in our docs, but then nicely packaged in a sphinx extension to avoid the use of raw 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/34065/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34065/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34065.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34065",
"merged_at": "2021-04-09T06:53:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34065.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34065"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34066
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34066/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34066/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34066/events
|
https://github.com/pandas-dev/pandas/issues/34066
| 614,681,409
|
MDU6SXNzdWU2MTQ2ODE0MDk=
| 34,066
|
BUG: ValueError in read_csv when dtype='string' and parse_dates is present
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/20129246?v=4",
"events_url": "https://api.github.com/users/meownoid/events{/privacy}",
"followers_url": "https://api.github.com/users/meownoid/followers",
"following_url": "https://api.github.com/users/meownoid/following{/other_user}",
"gists_url": "https://api.github.com/users/meownoid/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meownoid",
"id": 20129246,
"login": "meownoid",
"node_id": "MDQ6VXNlcjIwMTI5MjQ2",
"organizations_url": "https://api.github.com/users/meownoid/orgs",
"received_events_url": "https://api.github.com/users/meownoid/received_events",
"repos_url": "https://api.github.com/users/meownoid/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meownoid/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meownoid/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meownoid"
}
|
[
{
"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": "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": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
}
] |
open
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 4
| 2020-05-08T11:22:41Z
| 2021-03-24T18:02:35Z
| null |
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**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 datetime
df = pd.DataFrame({'a': [1], 'b': [datetime.datetime.now()]})
df.to_csv('test.csv', index=None)
pd.read_csv('test.csv', dtype='string', parse_dates=['b'])
```
#### Problem description
`ValueError: not all elements from date_cols are numpy arrays`
#### Expected Output
Data frame with all columns as strings except ones specified in parse_dates optional argument.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.1.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-22-generic
machine : x86_64
processor :
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : None.None
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3
Cython : 0.29.15
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.0
html5lib : None
pymysql : None
psycopg2 : 2.8.4 (dt dec pq3 ext lo64)
jinja2 : 2.11.2
IPython : 7.13.0
pandas_datareader: None
bs4 : 4.9.0
bottleneck : 1.3.2
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.1.3
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 0.16.0
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.13
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
numba : 0.48.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34066/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34066/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34067
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34067/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34067/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34067/events
|
https://github.com/pandas-dev/pandas/pull/34067
| 614,724,454
|
MDExOlB1bGxSZXF1ZXN0NDE1MjIwMTA4
| 34,067
|
BUG : Series.to_timestamp and Series.to_period raise user-facing AssertionError
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6196315?v=4",
"events_url": "https://api.github.com/users/vipulrai91/events{/privacy}",
"followers_url": "https://api.github.com/users/vipulrai91/followers",
"following_url": "https://api.github.com/users/vipulrai91/following{/other_user}",
"gists_url": "https://api.github.com/users/vipulrai91/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vipulrai91",
"id": 6196315,
"login": "vipulrai91",
"node_id": "MDQ6VXNlcjYxOTYzMTU=",
"organizations_url": "https://api.github.com/users/vipulrai91/orgs",
"received_events_url": "https://api.github.com/users/vipulrai91/received_events",
"repos_url": "https://api.github.com/users/vipulrai91/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vipulrai91/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vipulrai91/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vipulrai91"
}
|
[
{
"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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 8
| 2020-05-08T12:52:34Z
| 2020-05-20T14:05:42Z
| 2020-05-20T14:05:37Z
|
CONTRIBUTOR
| null |
- [X] closes #33327
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34067/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34067/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34067.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34067",
"merged_at": "2020-05-20T14:05:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34067.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34067"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34068
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34068/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34068/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34068/events
|
https://github.com/pandas-dev/pandas/issues/34068
| 614,735,908
|
MDU6SXNzdWU2MTQ3MzU5MDg=
| 34,068
|
BUG: str.contains() doesn't apply AND and OR properly
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/56826661?v=4",
"events_url": "https://api.github.com/users/Maxence-L/events{/privacy}",
"followers_url": "https://api.github.com/users/Maxence-L/followers",
"following_url": "https://api.github.com/users/Maxence-L/following{/other_user}",
"gists_url": "https://api.github.com/users/Maxence-L/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Maxence-L",
"id": 56826661,
"login": "Maxence-L",
"node_id": "MDQ6VXNlcjU2ODI2NjYx",
"organizations_url": "https://api.github.com/users/Maxence-L/orgs",
"received_events_url": "https://api.github.com/users/Maxence-L/received_events",
"repos_url": "https://api.github.com/users/Maxence-L/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Maxence-L/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Maxence-L/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Maxence-L"
}
|
[] |
closed
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 1
| 2020-05-08T13:14:52Z
| 2020-05-08T13:42:48Z
| 2020-05-08T13:42:37Z
|
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
test_df = pd.DataFrame({'col1' : ['ab','bc']})
print(test_df['col1'].str.contains('a' or 'b'))
print(test_df['col1'].str.contains('a' and 'b'))
```
#### Problem description
Using logical 'and' in str.contains without regex applies a logical 'or'.
Using logical 'or' in str.contains without regex applies a logical 'and'.
#### Expected Output
The code above returns :
0 True
1 False
Name: col1, dtype: bool
0 True
1 True
Name: col1, dtype: bool
But it should be :
0 True
1 True
Name: col1, dtype: bool
0 True
1 False
Name: col1, dtype: bool
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
pandas : 1.0.3
numpy : 1.18.2
pytz : 2019.3
dateutil : 2.8.1
pip : 10.0.1
setuptools : 39.1.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : 1.3.0
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34068/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34068/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34069
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34069/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34069/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34069/events
|
https://github.com/pandas-dev/pandas/pull/34069
| 614,774,968
|
MDExOlB1bGxSZXF1ZXN0NDE1MjYwODcz
| 34,069
|
ENH: Implement groupby.sample
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-05-08T14:23:50Z
| 2020-06-14T19:05:08Z
| 2020-06-14T15:22:16Z
|
MEMBER
| null |
- [x] closes #31775
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34069/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34069/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34069.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34069",
"merged_at": "2020-06-14T15:22:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34069.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34069"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34070
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34070/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34070/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34070/events
|
https://github.com/pandas-dev/pandas/pull/34070
| 614,790,624
|
MDExOlB1bGxSZXF1ZXN0NDE1MjczMjUw
| 34,070
|
DOC: clarify boxplot whiskers extension
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/14075922?v=4",
"events_url": "https://api.github.com/users/neutrinoceros/events{/privacy}",
"followers_url": "https://api.github.com/users/neutrinoceros/followers",
"following_url": "https://api.github.com/users/neutrinoceros/following{/other_user}",
"gists_url": "https://api.github.com/users/neutrinoceros/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/neutrinoceros",
"id": 14075922,
"login": "neutrinoceros",
"node_id": "MDQ6VXNlcjE0MDc1OTIy",
"organizations_url": "https://api.github.com/users/neutrinoceros/orgs",
"received_events_url": "https://api.github.com/users/neutrinoceros/received_events",
"repos_url": "https://api.github.com/users/neutrinoceros/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/neutrinoceros/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/neutrinoceros/subscriptions",
"type": "User",
"url": "https://api.github.com/users/neutrinoceros"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 6
| 2020-05-08T14:49:49Z
| 2020-05-21T18:17:42Z
| 2020-05-21T18:17:36Z
|
CONTRIBUTOR
| null |
As I'm getting started with box plots, I found confusing that the `DataFrame.boxplot` docstring didn't mention that whiskers extend _at most_ to 1.5 * IQR away from the box's edges.
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry -> is it required for such a minor change ?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34070/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34070/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34070.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34070",
"merged_at": "2020-05-21T18:17:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34070.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34070"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34071
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34071/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34071/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34071/events
|
https://github.com/pandas-dev/pandas/pull/34071
| 614,801,946
|
MDExOlB1bGxSZXF1ZXN0NDE1MjgyMzU0
| 34,071
|
add test for setitem from duplicate axis
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4",
"events_url": "https://api.github.com/users/CloseChoice/events{/privacy}",
"followers_url": "https://api.github.com/users/CloseChoice/followers",
"following_url": "https://api.github.com/users/CloseChoice/following{/other_user}",
"gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CloseChoice",
"id": 31857876,
"login": "CloseChoice",
"node_id": "MDQ6VXNlcjMxODU3ODc2",
"organizations_url": "https://api.github.com/users/CloseChoice/orgs",
"received_events_url": "https://api.github.com/users/CloseChoice/received_events",
"repos_url": "https://api.github.com/users/CloseChoice/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CloseChoice"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-05-08T15:08:06Z
| 2020-05-11T07:38:44Z
| 2020-05-11T00:33:39Z
|
MEMBER
| null |
- [x] closes #34034
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34071/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34071/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34071.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34071",
"merged_at": "2020-05-11T00:33:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34071.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34071"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34072
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34072/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34072/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34072/events
|
https://github.com/pandas-dev/pandas/pull/34072
| 614,851,140
|
MDExOlB1bGxSZXF1ZXN0NDE1MzIyMjI0
| 34,072
|
CLN: update imports, avoid hasattr checks
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-05-08T16:36:38Z
| 2020-05-09T19:29:58Z
| 2020-05-09T19:14:10Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34072/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34072/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34072.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34072",
"merged_at": "2020-05-09T19:14:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34072.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34072"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34073
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34073/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34073/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34073/events
|
https://github.com/pandas-dev/pandas/pull/34073
| 614,860,158
|
MDExOlB1bGxSZXF1ZXN0NDE1MzI5NTk2
| 34,073
|
TST/CLN: Break out groupby function tests
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-05-08T16:53:10Z
| 2020-05-09T21:51:36Z
| 2020-05-09T19:37:03Z
|
MEMBER
| null |
tests/groupby/test_function.py is still huge (1000+ lines) but this breaks out a few pieces (all copy / paste with no logic changes)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34073/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34073/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34073.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34073",
"merged_at": "2020-05-09T19:37:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34073.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34073"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34074
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34074/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34074/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34074/events
|
https://github.com/pandas-dev/pandas/issues/34074
| 614,866,774
|
MDU6SXNzdWU2MTQ4NjY3NzQ=
| 34,074
|
BUG: Multijoining indexes always returns indexers, ignores function parameters
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13030185?v=4",
"events_url": "https://api.github.com/users/CuylenE/events{/privacy}",
"followers_url": "https://api.github.com/users/CuylenE/followers",
"following_url": "https://api.github.com/users/CuylenE/following{/other_user}",
"gists_url": "https://api.github.com/users/CuylenE/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CuylenE",
"id": 13030185,
"login": "CuylenE",
"node_id": "MDQ6VXNlcjEzMDMwMTg1",
"organizations_url": "https://api.github.com/users/CuylenE/orgs",
"received_events_url": "https://api.github.com/users/CuylenE/received_events",
"repos_url": "https://api.github.com/users/CuylenE/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CuylenE/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CuylenE/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CuylenE"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-05-08T17:06:16Z
| 2020-05-11T18:57:16Z
| 2020-05-11T18:57:16Z
|
CONTRIBUTOR
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample
```python
>>>frame = pd.DataFrame([(1,2,3,4),(4,5,6,7)],columns=["i1", "i2", "i3","val"]).set_index(["i1","i2","i3"])
>>>frame2 = pd.DataFrame([(1,2,3),(4,5,6)],columns=["i1", "i2", "val"]).set_index(["i1","i2"])
>>>frame.index.join(frame2.index,return_indexers=False)
(MultiIndex([(1, 2, 3),
(4, 5, 6)],
names=['i1', 'i2', 'i3']), None, None)
```
#### Problem description
Parameter return_indexers is ignored in some cases of __join_multi
#### Expected Output
```python
>>>frame.index.join(frame2.index,return_indexers=False)
MultiIndex([(1, 2, 3),
(4, 5, 6)],
names=['i1', 'i2', 'i3'])
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34074/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34074/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34075
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34075/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34075/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34075/events
|
https://github.com/pandas-dev/pandas/pull/34075
| 614,876,102
|
MDExOlB1bGxSZXF1ZXN0NDE1MzQyMjEw
| 34,075
|
BUG: Fixed __join_multi always returning indexers (#34074)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13030185?v=4",
"events_url": "https://api.github.com/users/CuylenE/events{/privacy}",
"followers_url": "https://api.github.com/users/CuylenE/followers",
"following_url": "https://api.github.com/users/CuylenE/following{/other_user}",
"gists_url": "https://api.github.com/users/CuylenE/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CuylenE",
"id": 13030185,
"login": "CuylenE",
"node_id": "MDQ6VXNlcjEzMDMwMTg1",
"organizations_url": "https://api.github.com/users/CuylenE/orgs",
"received_events_url": "https://api.github.com/users/CuylenE/received_events",
"repos_url": "https://api.github.com/users/CuylenE/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CuylenE/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CuylenE/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CuylenE"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-05-08T17:25:19Z
| 2020-05-11T18:57:21Z
| 2020-05-11T18:57:17Z
|
CONTRIBUTOR
| null |
- [x] closes #34074
- [x] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34075/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34075/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34075.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34075",
"merged_at": "2020-05-11T18:57:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34075.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34075"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34076
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34076/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34076/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34076/events
|
https://github.com/pandas-dev/pandas/pull/34076
| 614,909,367
|
MDExOlB1bGxSZXF1ZXN0NDE1MzY5NDU0
| 34,076
|
REF: share code for scalar validation in datetimelike array methods
|
{
"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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-05-08T18:32:29Z
| 2020-05-12T16:16:38Z
| 2020-05-12T15:31:46Z
|
MEMBER
| null |
The user-facing effect here is in the exception messages we show to users, where we may want to be more verbose than this. Thoughts @gfyoung?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34076/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34076/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34076.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34076",
"merged_at": "2020-05-12T15:31:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34076.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34076"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34077
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34077/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34077/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34077/events
|
https://github.com/pandas-dev/pandas/issues/34077
| 614,918,823
|
MDU6SXNzdWU2MTQ5MTg4MjM=
| 34,077
|
BUG: DatetimeIndex.slice_locs() doesn't hande date objects not in index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7441788?v=4",
"events_url": "https://api.github.com/users/seth-p/events{/privacy}",
"followers_url": "https://api.github.com/users/seth-p/followers",
"following_url": "https://api.github.com/users/seth-p/following{/other_user}",
"gists_url": "https://api.github.com/users/seth-p/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/seth-p",
"id": 7441788,
"login": "seth-p",
"node_id": "MDQ6VXNlcjc0NDE3ODg=",
"organizations_url": "https://api.github.com/users/seth-p/orgs",
"received_events_url": "https://api.github.com/users/seth-p/received_events",
"repos_url": "https://api.github.com/users/seth-p/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/seth-p/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/seth-p/subscriptions",
"type": "User",
"url": "https://api.github.com/users/seth-p"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-05-08T18:51:54Z
| 2020-09-02T21:36:38Z
| 2020-09-02T21:36:38Z
|
CONTRIBUTOR
| null |
I would expect [7] below to return the same result as [5] (just as [6] returns the same result as [4]).
```
In [1]: import pandas as pd, datetime as dt
In [2]: pd.__version__
Out[2]: '1.0.3'
In [3]: a = pd.DatetimeIndex(['2010-01-01', '2010-01-03'])
In [4]: a.slice_locs(dt.datetime(2010, 1, 1), dt.datetime(2010, 1, 3))
Out[4]: (0, 2)
In [5]: a.slice_locs(dt.datetime(2010, 1, 1), dt.datetime(2010, 1, 2))
Out[5]: (0, 1)
In [6]: a.slice_locs(dt.date(2010, 1, 1), dt.date(2010, 1, 3))
Out[6]: (0, 2)
In [7]: a.slice_locs(dt.date(2010, 1, 1), dt.date(2010, 1, 2))
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
pandas/_libs/index.pyx in pandas._libs.index.DatetimeEngine.get_loc()
pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.Int64HashTable.get_item()
TypeError: an integer is required
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)
~/.conda/envs/build/lib/python3.7/site-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance)
2645 try:
-> 2646 return self._engine.get_loc(key)
2647 except KeyError:
pandas/_libs/index.pyx in pandas._libs.index.DatetimeEngine.get_loc()
pandas/_libs/index.pyx in pandas._libs.index.DatetimeEngine.get_loc()
pandas/_libs/index.pyx in pandas._libs.index.DatetimeEngine._date_check_type()
KeyError: datetime.date(2010, 1, 2)
During handling of the above exception, another exception occurred:
TypeError Traceback (most recent call last)
pandas/_libs/index.pyx in pandas._libs.index.DatetimeEngine.get_loc()
pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.Int64HashTable.get_item()
TypeError: an integer is required
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)
~/.conda/envs/build/lib/python3.7/site-packages/pandas/core/indexes/datetimes.py in get_loc(self, key, method, tolerance)
714 try:
--> 715 return Index.get_loc(self, key, method, tolerance)
716 except (KeyError, ValueError, TypeError):
~/.conda/envs/build/lib/python3.7/site-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance)
2647 except KeyError:
-> 2648 return self._engine.get_loc(self._maybe_cast_indexer(key))
2649 indexer = self.get_indexer([key], method=method, tolerance=tolerance)
pandas/_libs/index.pyx in pandas._libs.index.DatetimeEngine.get_loc()
pandas/_libs/index.pyx in pandas._libs.index.DatetimeEngine.get_loc()
pandas/_libs/index.pyx in pandas._libs.index.DatetimeEngine._date_check_type()
KeyError: datetime.date(2010, 1, 2)
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)
pandas/_libs/index.pyx in pandas._libs.index.DatetimeEngine.get_loc()
pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.Int64HashTable.get_item()
pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.Int64HashTable.get_item()
KeyError: 1262390400000000000
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)
~/.conda/envs/build/lib/python3.7/site-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance)
2645 try:
-> 2646 return self._engine.get_loc(key)
2647 except KeyError:
pandas/_libs/index.pyx in pandas._libs.index.DatetimeEngine.get_loc()
pandas/_libs/index.pyx in pandas._libs.index.DatetimeEngine.get_loc()
KeyError: Timestamp('2010-01-02 00:00:00')
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)
pandas/_libs/index.pyx in pandas._libs.index.DatetimeEngine.get_loc()
pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.Int64HashTable.get_item()
pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.Int64HashTable.get_item()
KeyError: 1262390400000000000
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)
~/.conda/envs/build/lib/python3.7/site-packages/pandas/core/indexes/datetimes.py in get_loc(self, key, method, tolerance)
727 stamp = stamp.tz_localize(self.tz)
--> 728 return Index.get_loc(self, stamp, method, tolerance)
729 except KeyError:
~/.conda/envs/build/lib/python3.7/site-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance)
2647 except KeyError:
-> 2648 return self._engine.get_loc(self._maybe_cast_indexer(key))
2649 indexer = self.get_indexer([key], method=method, tolerance=tolerance)
pandas/_libs/index.pyx in pandas._libs.index.DatetimeEngine.get_loc()
pandas/_libs/index.pyx in pandas._libs.index.DatetimeEngine.get_loc()
KeyError: Timestamp('2010-01-02 00:00:00')
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)
~/.conda/envs/build/lib/python3.7/site-packages/pandas/core/indexes/base.py in get_slice_bound(self, label, side, kind)
4840 try:
-> 4841 slc = self.get_loc(label)
4842 except KeyError as err:
~/.conda/envs/build/lib/python3.7/site-packages/pandas/core/indexes/datetimes.py in get_loc(self, key, method, tolerance)
729 except KeyError:
--> 730 raise KeyError(key)
731 except ValueError as e:
KeyError: datetime.date(2010, 1, 2)
During handling of the above exception, another exception occurred:
TypeError Traceback (most recent call last)
<ipython-input-7-f3a1babc1d65> in <module>
----> 1 a.slice_locs(dt.date(2010, 1, 1), dt.date(2010, 1, 2))
~/.conda/envs/build/lib/python3.7/site-packages/pandas/core/indexes/base.py in slice_locs(self, start, end, step, kind)
4929 end_slice = None
4930 if end is not None:
-> 4931 end_slice = self.get_slice_bound(end, "right", kind)
4932 if end_slice is None:
4933 end_slice = len(self)
~/.conda/envs/build/lib/python3.7/site-packages/pandas/core/indexes/base.py in get_slice_bound(self, label, side, kind)
4842 except KeyError as err:
4843 try:
-> 4844 return self._searchsorted_monotonic(label, side)
4845 except ValueError:
4846 # raise the original KeyError
~/.conda/envs/build/lib/python3.7/site-packages/pandas/core/indexes/base.py in _searchsorted_monotonic(self, label, side)
4793 def _searchsorted_monotonic(self, label, side="left"):
4794 if self.is_monotonic_increasing:
-> 4795 return self.searchsorted(label, side=side)
4796 elif self.is_monotonic_decreasing:
4797 # np.searchsorted expects ascending sort order, have to reverse
~/.conda/envs/build/lib/python3.7/site-packages/pandas/core/indexes/datetimes.py in searchsorted(self, value, side, sorter)
858 elif not isinstance(value, DatetimeArray):
859 raise TypeError(
--> 860 "searchsorted requires compatible dtype or scalar, "
861 f"not {type(value).__name__}"
862 )
TypeError: searchsorted requires compatible dtype or scalar, not date
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34077/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34077/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34078
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34078/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34078/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34078/events
|
https://github.com/pandas-dev/pandas/issues/34078
| 614,919,010
|
MDU6SXNzdWU2MTQ5MTkwMTA=
| 34,078
|
BUG: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/63085392?v=4",
"events_url": "https://api.github.com/users/DSKaarthick/events{/privacy}",
"followers_url": "https://api.github.com/users/DSKaarthick/followers",
"following_url": "https://api.github.com/users/DSKaarthick/following{/other_user}",
"gists_url": "https://api.github.com/users/DSKaarthick/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DSKaarthick",
"id": 63085392,
"login": "DSKaarthick",
"node_id": "MDQ6VXNlcjYzMDg1Mzky",
"organizations_url": "https://api.github.com/users/DSKaarthick/orgs",
"received_events_url": "https://api.github.com/users/DSKaarthick/received_events",
"repos_url": "https://api.github.com/users/DSKaarthick/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DSKaarthick/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DSKaarthick/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DSKaarthick"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-05-08T18:52:17Z
| 2020-08-21T17:05:37Z
| 2020-05-08T20:31:55Z
|
NONE
| null |
#### Code Sample, a copy-pastable example
```python
import pandas as pd
import nltk
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
import gensim
from gensim.models import FastText
from sklearn.feature_extraction.text import TfidfVectorizer
from difflib import SequenceMatcher
#Loading Query Text for Corpus Building
qt=pd.read_csv('C:/Demo/Query_Text.csv')
qt.shape
#Loading QueryText for comparing
convid =pd.read_csv('C:/Demo/ConvId_May4th.csv')
convid.shape
sentences = qt
convid = convid.sort_values(['User_PUID','EventInfo_Time'], ascending=[True,True])
convid = convid.reset_index()
convid['FastTextResult'] =float()
convid['Tfidf'] = float()
convid['TfidfWc'] = float()
model_ted = FastText(qt, window=1, min_count=1, sg=0)
for i in range(len(convid['Query_Text'])):
print('i',i)
if(i == len(convid)-1):
break
#print("The FastText Output")
ft=model_ted.wv.similarity(str(convid['Query_Text'][i]).lower(),str(convid['Query_Text'][i+1]).lower())
ft=round(ft,3)
#print(ft)
convid['FastTextResult'][i]=ft;
#print("vector output ")
vectorizer = TfidfVectorizer(decode_error='ignore',strip_accents='unicode',stop_words='english',min_df=1,analyzer='word',vocabulary=qt)
tfidf= vectorizer.fit_transform([str(convid['Query_Text'][i]).lower(),str(convid['Query_Text'][i+1]).lower()])
product=(tfidf *tfidf.T).A
pro = product[0,1]
pro = round(pro,3)
#print(pro)
convid['Tfidf'][i]=pro;
#print("widlchar")
wildchar_value = SequenceMatcher(str(convid['Query_Text'][i]).lower(),str(convid['Query_Text'][i+1]).lower()).ratio()
wildchar_value = round(wildchar_value,3)
convid['TfidfWc'][i]=wildchar_value;
#print(wildchar_value)
convid.to_csv('C:/Demo/ConvIdOutput_May4th.csv')
```
#### Problem description
when i am trying to execute the above python script , getting the following error:
C:\Anaconda3\lib\site-packages\ipykernel_launcher.py:11: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
#### Expected Output
The above code should
#### Output of ``pd.show_versions()``
[paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag]
</details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.3
numpy : 1.18.2
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3.post20200330
Cython : None
pytest : 5.4.1
hypothesis : None
sphinx : 2.4.4
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.0
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.2.1
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.4.1
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34078/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34078/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34079
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34079/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34079/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34079/events
|
https://github.com/pandas-dev/pandas/pull/34079
| 614,954,081
|
MDExOlB1bGxSZXF1ZXN0NDE1NDA2ODA5
| 34,079
|
CLN: de-duplicate ops code
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "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": "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": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-05-08T19:57:48Z
| 2020-05-09T20:12:10Z
| 2020-05-09T19:52:16Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34079/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34079/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34079.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34079",
"merged_at": "2020-05-09T19:52:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34079.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34079"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34080
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34080/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34080/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34080/events
|
https://github.com/pandas-dev/pandas/pull/34080
| 614,992,736
|
MDExOlB1bGxSZXF1ZXN0NDE1NDM4MzU3
| 34,080
|
Simplify Reducer.get_result
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-05-08T21:19:13Z
| 2020-06-05T23:05:32Z
| 2020-06-05T23:05:32Z
|
MEMBER
| null |
by using nditer this makes some progress towards #34014
Benchmarks for frame_apply looks as follows:
```sh
before after ratio
[3ed7dff4] [5e77e1ed]
<master> <reduce-simplify>
! 9.39±0.3ms failed n/a frame_methods.Apply.time_apply_ref_by_name
- 8.52±0.2ms 2.87±0.2ms 0.34 frame_methods.Apply.time_apply_lambda_mean
- 9.32±0.2ms 2.96±0.3ms 0.32 frame_methods.Apply.time_apply_np_mean
```
I'm not quite clear yet why the one benchmark is failing. Running it over a thousands loops in the REPL seems fine, but maybe CI will help detect something
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34080/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34080/timeline
| null | 1
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34080.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34080",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/34080.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34080"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34081
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34081/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34081/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34081/events
|
https://github.com/pandas-dev/pandas/pull/34081
| 615,000,470
|
MDExOlB1bGxSZXF1ZXN0NDE1NDQ0Njg1
| 34,081
|
REF: do length-checks in boilerplate decorator
|
{
"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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-05-08T21:37:36Z
| 2020-05-10T15:56:15Z
| 2020-05-10T15:07:41Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34081/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34081/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34081.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34081",
"merged_at": "2020-05-10T15:07:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34081.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34081"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34082
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34082/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34082/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34082/events
|
https://github.com/pandas-dev/pandas/pull/34082
| 615,004,006
|
MDExOlB1bGxSZXF1ZXN0NDE1NDQ3NTM5
| 34,082
|
CLN: Delete no-op check
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-05-08T21:46:34Z
| 2020-05-10T17:48:50Z
| 2020-05-10T17:14:22Z
|
MEMBER
| null |
Maybe the note is somehow useful, otherwise I think this can be cleaned?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34082/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34082/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34082.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34082",
"merged_at": "2020-05-10T17:14:22Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34082.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34082"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34083
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34083/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34083/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34083/events
|
https://github.com/pandas-dev/pandas/pull/34083
| 615,026,067
|
MDExOlB1bGxSZXF1ZXN0NDE1NDY1MzEx
| 34,083
|
CLN: .values -> ._values
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 19
| 2020-05-08T22:51:37Z
| 2020-05-19T21:32:32Z
| 2020-05-19T20:54:00Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34083/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34083/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34083.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34083",
"merged_at": "2020-05-19T20:54:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34083.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34083"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34084
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34084/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34084/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34084/events
|
https://github.com/pandas-dev/pandas/pull/34084
| 615,028,002
|
MDExOlB1bGxSZXF1ZXN0NDE1NDY2ODY3
| 34,084
|
CLN: avoid _typ checks in _libs
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-05-08T22:58:06Z
| 2020-05-09T19:30:30Z
| 2020-05-09T19:14:53Z
|
MEMBER
| null |
Sits on top of #34072
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34084/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34084/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34084.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34084",
"merged_at": "2020-05-09T19:14:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34084.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34084"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34085
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34085/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34085/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34085/events
|
https://github.com/pandas-dev/pandas/issues/34085
| 615,038,303
|
MDU6SXNzdWU2MTUwMzgzMDM=
| 34,085
|
BUG: read_csv skips leading space where it shouldn't
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18049056?v=4",
"events_url": "https://api.github.com/users/plammens/events{/privacy}",
"followers_url": "https://api.github.com/users/plammens/followers",
"following_url": "https://api.github.com/users/plammens/following{/other_user}",
"gists_url": "https://api.github.com/users/plammens/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/plammens",
"id": 18049056,
"login": "plammens",
"node_id": "MDQ6VXNlcjE4MDQ5MDU2",
"organizations_url": "https://api.github.com/users/plammens/orgs",
"received_events_url": "https://api.github.com/users/plammens/received_events",
"repos_url": "https://api.github.com/users/plammens/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/plammens/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/plammens/subscriptions",
"type": "User",
"url": "https://api.github.com/users/plammens"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "fbca04",
"default": false,
"description": "Windows OS",
"id": 57186974,
"name": "Windows",
"node_id": "MDU6TGFiZWw1NzE4Njk3NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows"
}
] |
open
| false
| null |
[] | null | 3
| 2020-05-08T23:35:30Z
| 2021-08-07T05:57:46Z
| 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
I wasn't able to isolate a (more) minimal example, so I'll just share what I was working on. `nltk` here is version `3.4.5`.
```python
import csv
import string
import nltk
import pandas as pd
UNFORMATTED = set(string.ascii_lowercase)
PUNCTUATION = set(" !\"&'(),-.:;?[]_`")
ALLOWED = UNFORMATTED | set(string.ascii_uppercase) | PUNCTUATION
EMPTY = '<NONE>'
CAPITALIZE = '<CAP>'
def generate_sequences(text: str, k: int):
"""
Yields tuples of subsequence of k characters, next character
(if within a special set)
"""
for i in range(len(text) - k):
seq = text[i:i + k]
next_char = text[i + k]
punct_char = (next_char if next_char in PUNCTUATION else
CAPITALIZE if next_char.isupper() else EMPTY)
yield seq, punct_char
gutenberg = nltk.corpus.gutenberg
gutenberg.ensure_loaded()
sample_file = gutenberg.fileids()[0]
sample = ' '.join(gutenberg.raw(sample_file).split())
with open('seq.txt', 'w') as file:
file.writelines(f"{seq}|{punct}\n" for seq, punct in generate_sequences(sample, k=10))
df = pd.read_csv('seq.txt', sep='|', quoting=csv.QUOTE_NONE,
names=['sequence', 'next_char'], skipinitialspace=False,
dtype=str, na_filter=False)
seq_length = len(df.at[0, 'sequence'])
lengths = df['sequence'].apply(len)
assert (lengths == seq_length).all()
```
#### Problem description
`AssertionError` is raised because there is one element in the `sequence` column that isn't of length 10, even though the text file was manually crafted to contain sequences of exactly 10 characters, followed by the separator `|`, followed by another value.
Upon inspection:
```python
>>> df.assign(length=lengths)[lengths != seq_length]
sequence next_char length
763047 it could <NONE> 9
```
but
```python
>>> with open('seq.txt') as file:
... lines = file.readlines()
...
>>> lines[763047]
' it could |<NONE>\n'
>>> len(lines[763047].split('|')[0])
10
```
This is unexpected behaviour because `skipinitialspace=False`, `quoting=csv.QUOTE_NONE`, `dtype=str` and `na_filter=False` were all passed to `pd.read_csv`, meaning that the values should be interpreted as raw as they come (i.e. including any leading space).
Moreover, this behaviour is inconsistent since there are plenty other examples in `seq.txt` of values with leading spaces that *do* get parsed correctly.
What's even weirder (and probably near to the crux of the problem) is that setting `EMPTY` to `'<EMPTY>'` or something else instead of `'<NONE>'` in the script above makes the problem disappear. Furthermore, any value of `EMPTY` with *exactly* four characters enclosed in angle brackets starting with `NA` produces the error. That is, `'<NAAA>'`, `'<NAZZ>'`, *do* produce the error, but `'<NA>'`, `'<NAAA'`, `'<NAA>'` do *not*.
Probably this has to do with NA parsing? Though I thought passing `na_filter=False` should have fixed that.
#### Expected Output
All elements of `df['sequence']` are strings of the same length (10 in this case), so no `AssertionError`.
#### Output of ``pd.show_versions()``
For installed environment:
<details>
```
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.7.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.3
numpy : 1.18.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3.post20200330
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.13.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.2.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
```
</details>
For test on `master`:
<details>
```text
INSTALLED VERSIONS
------------------
commit : 998a0deea39f11fa06071af77cc1afba65900330
python : 3.8.2.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_United Kingdom.1252
pandas : 1.0.3
numpy : 1.18.4
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1
setuptools : 46.1.3
Cython : 0.29.17
pytest : 5.4.2
hypothesis : 5.11.0
sphinx : 3.0.3
blosc : 1.9.1
feather : None
xlsxwriter : 1.2.8
lxml.etree : 4.5.0
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.14.0
pandas_datareader: None
bs4 : 4.9.0
bottleneck : 1.3.2
fastparquet : 0.3.3
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.2.1
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : 0.17.0
pytables : None
pytest : 5.4.2
pyxlsb : None
s3fs : 0.4.2
scipy : 1.4.1
sqlalchemy : 1.3.16
tables : 3.6.1
tabulate : None
xarray : 0.15.1
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.8
numba : 0.49.1
```
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34085/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34085/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34086
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34086/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34086/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34086/events
|
https://github.com/pandas-dev/pandas/issues/34086
| 615,053,867
|
MDU6SXNzdWU2MTUwNTM4Njc=
| 34,086
|
CI: Failures Botocore Error
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4",
"events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}",
"followers_url": "https://api.github.com/users/alimcmaster1/followers",
"following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}",
"gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alimcmaster1",
"id": 16733618,
"login": "alimcmaster1",
"node_id": "MDQ6VXNlcjE2NzMzNjE4",
"organizations_url": "https://api.github.com/users/alimcmaster1/orgs",
"received_events_url": "https://api.github.com/users/alimcmaster1/received_events",
"repos_url": "https://api.github.com/users/alimcmaster1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alimcmaster1"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "5319e7",
"default": false,
"description": "parquet, feather",
"id": 685114413,
"name": "IO Parquet",
"node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4",
"events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}",
"followers_url": "https://api.github.com/users/alimcmaster1/followers",
"following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}",
"gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alimcmaster1",
"id": 16733618,
"login": "alimcmaster1",
"node_id": "MDQ6VXNlcjE2NzMzNjE4",
"organizations_url": "https://api.github.com/users/alimcmaster1/orgs",
"received_events_url": "https://api.github.com/users/alimcmaster1/received_events",
"repos_url": "https://api.github.com/users/alimcmaster1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alimcmaster1"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4",
"events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}",
"followers_url": "https://api.github.com/users/alimcmaster1/followers",
"following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}",
"gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alimcmaster1",
"id": 16733618,
"login": "alimcmaster1",
"node_id": "MDQ6VXNlcjE2NzMzNjE4",
"organizations_url": "https://api.github.com/users/alimcmaster1/orgs",
"received_events_url": "https://api.github.com/users/alimcmaster1/received_events",
"repos_url": "https://api.github.com/users/alimcmaster1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alimcmaster1"
}
] |
{
"closed_at": "2020-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 5
| 2020-05-09T00:42:04Z
| 2020-05-26T09:31:52Z
| 2020-05-09T12:43:08Z
|
CONTRIBUTOR
| null |
Botocore release today changed some Errors
https://pypi.org/project/botocore/#history
```
______________________ TestS3.test_write_s3_parquet_fails ______________________
[gw1] linux -- Python 3.6.10 /home/travis/miniconda3/envs/pandas-dev/bin/python
self = <pandas.tests.io.parser.test_network.TestS3 object at 0x7f5e201c9080>
tips_df = total_bill tip sex smoker day time size
0 16.99 1.01 Female No Sun Dinner 2
1 ....75 Male No Sat Dinner 2
243 18.78 3.00 Female No Thur Dinner 2
[244 rows x 7 columns]
@td.skip_if_no("pyarrow")
def test_write_s3_parquet_fails(self, tips_df):
# GH 27679
with pytest.raises(
FileNotFoundError, match="The specified bucket does not exist"
):
> tips_df.to_parquet("s3://an_s3_bucket_data_doesnt_exit/not_real.parquet")
```
PR to follow shortly.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34086/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34086/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34087
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34087/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34087/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34087/events
|
https://github.com/pandas-dev/pandas/pull/34087
| 615,077,453
|
MDExOlB1bGxSZXF1ZXN0NDE1NTA0OTcw
| 34,087
|
CI: Fix botocore Error
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4",
"events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}",
"followers_url": "https://api.github.com/users/alimcmaster1/followers",
"following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}",
"gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alimcmaster1",
"id": 16733618,
"login": "alimcmaster1",
"node_id": "MDQ6VXNlcjE2NzMzNjE4",
"organizations_url": "https://api.github.com/users/alimcmaster1/orgs",
"received_events_url": "https://api.github.com/users/alimcmaster1/received_events",
"repos_url": "https://api.github.com/users/alimcmaster1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alimcmaster1"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "e4a5f1",
"default": false,
"description": "Local or Cloud (AWS, GCS, etc.) IO Issues",
"id": 49381477,
"name": "IO Network",
"node_id": "MDU6TGFiZWw0OTM4MTQ3Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Network"
},
{
"color": "5319e7",
"default": false,
"description": "parquet, feather",
"id": 685114413,
"name": "IO Parquet",
"node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 4
| 2020-05-09T03:06:07Z
| 2020-05-26T09:31:59Z
| 2020-05-09T12:43:08Z
|
CONTRIBUTOR
| null |
- [x] closes #34086
AWS Service Exceptions are not statically defined in boto3. Easiest to just catch a ClientError here.
Ref Docs:
https://boto3.amazonaws.com/v1/documentation/api/latest/guide/error-handling.html#parsing-error-responses-and-catching-exceptions-from-aws-services
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34087/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34087/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34087.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34087",
"merged_at": "2020-05-09T12:43:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34087.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34087"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34088
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34088/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34088/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34088/events
|
https://github.com/pandas-dev/pandas/pull/34088
| 615,080,333
|
MDExOlB1bGxSZXF1ZXN0NDE1NTA3MTUz
| 34,088
|
ENH: make Tick comparisons match Timedelta behavior
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 4
| 2020-05-09T03:25:25Z
| 2020-05-12T14:24:55Z
| 2020-05-12T13:14:39Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34088/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34088/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34088.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34088",
"merged_at": "2020-05-12T13:14:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34088.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34088"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34089
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34089/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34089/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34089/events
|
https://github.com/pandas-dev/pandas/issues/34089
| 615,108,511
|
MDU6SXNzdWU2MTUxMDg1MTE=
| 34,089
|
QST: Distinguishing row and column slices in DataFrame subclass
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10451445?v=4",
"events_url": "https://api.github.com/users/zhenruiliao/events{/privacy}",
"followers_url": "https://api.github.com/users/zhenruiliao/followers",
"following_url": "https://api.github.com/users/zhenruiliao/following{/other_user}",
"gists_url": "https://api.github.com/users/zhenruiliao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zhenruiliao",
"id": 10451445,
"login": "zhenruiliao",
"node_id": "MDQ6VXNlcjEwNDUxNDQ1",
"organizations_url": "https://api.github.com/users/zhenruiliao/orgs",
"received_events_url": "https://api.github.com/users/zhenruiliao/received_events",
"repos_url": "https://api.github.com/users/zhenruiliao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zhenruiliao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zhenruiliao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zhenruiliao"
}
|
[
{
"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": "abf98b",
"default": false,
"description": "Subclassing pandas objects",
"id": 2559562239,
"name": "Subclassing",
"node_id": "MDU6TGFiZWwyNTU5NTYyMjM5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Subclassing"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-05-09T06:46:53Z
| 2020-12-07T08:15:27Z
| 2020-09-01T22:43:44Z
|
NONE
| null |
- [X ] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions.
- [ X] I have asked my usage related question on [StackOverflow](https://stackoverflow.com/questions/61246252/distinguish-column-and-row-slice-in-pandas-subclass).
---
Hi pandas devs,
What is the best way to distinguish whether a row or column was sliced in a DataFrame subclass? I am designing a subclass where row slices should return my custom Series/DF subclass, but columns are just vanilla pd.Series. In addition, I want non-slice calls to `_constructor` (e.g., `apply`) to simply return vanilla DataFrames. Is there a straightforward way to do this?
Thanks for a great package!
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34089/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34089/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34090
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34090/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34090/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34090/events
|
https://github.com/pandas-dev/pandas/pull/34090
| 615,148,851
|
MDExOlB1bGxSZXF1ZXN0NDE1NTU3MDg0
| 34,090
|
Add regression test for nested meta path in json_normalize
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/160962?v=4",
"events_url": "https://api.github.com/users/LTe/events{/privacy}",
"followers_url": "https://api.github.com/users/LTe/followers",
"following_url": "https://api.github.com/users/LTe/following{/other_user}",
"gists_url": "https://api.github.com/users/LTe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/LTe",
"id": 160962,
"login": "LTe",
"node_id": "MDQ6VXNlcjE2MDk2Mg==",
"organizations_url": "https://api.github.com/users/LTe/orgs",
"received_events_url": "https://api.github.com/users/LTe/received_events",
"repos_url": "https://api.github.com/users/LTe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/LTe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LTe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/LTe"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"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": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-05-09T10:53:05Z
| 2020-05-09T19:50:51Z
| 2020-05-09T19:50:47Z
|
CONTRIBUTOR
| null |
We want to add regression test for #27220 and make sure that this kind of issues will not be present in the future.
Thanks to @yanglinlee [code](https://github.com/pandas-dev/pandas/pull/27667) I created test that works with current `master` branch.
- [x] closes #27220
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34090/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34090/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34090.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34090",
"merged_at": "2020-05-09T19:50:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34090.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34090"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34091
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34091/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34091/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34091/events
|
https://github.com/pandas-dev/pandas/pull/34091
| 615,154,637
|
MDExOlB1bGxSZXF1ZXN0NDE1NTYwODM0
| 34,091
|
DOC: use new numpy doc url
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-05-09T11:24:47Z
| 2020-05-11T08:45:52Z
| 2020-05-11T07:46:32Z
|
MEMBER
| null |
- [ ] xref #33953
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34091/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34091/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34091.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34091",
"merged_at": "2020-05-11T07:46:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34091.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34091"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34092
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34092/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34092/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34092/events
|
https://github.com/pandas-dev/pandas/pull/34092
| 615,155,646
|
MDExOlB1bGxSZXF1ZXN0NDE1NTYxNDg5
| 34,092
|
CLN, TYP: Factor out part of info
|
{
"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": "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"
},
{
"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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-05-09T11:30:37Z
| 2020-05-17T09:17:58Z
| 2020-05-11T21:44:28Z
|
MEMBER
| null |
Precursor to #31796, which still has a rather large diff. This should help make it easier to read.
On master, `cols` holds the DataFrame's columns. If we were to use this method on a Series, then it would hold an Index containing the Series' name (`Index([data.name])`). Is there a good name for a variable that could store either? At the moment I've called it `ids`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34092/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34092/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34092.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34092",
"merged_at": "2020-05-11T21:44:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34092.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34092"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34093
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34093/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34093/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34093/events
|
https://github.com/pandas-dev/pandas/issues/34093
| 615,212,159
|
MDU6SXNzdWU2MTUyMTIxNTk=
| 34,093
|
DISC: Deprecate use_inf_as_na
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-05-09T16:28:58Z
| 2020-09-26T15:36:45Z
| 2020-09-26T15:36:45Z
|
MEMBER
| null |
I think a case could be made for deprecating pd.options.mode.use_inf_as_na. Few thoughts:
* Doesn't seem necessary or particularly useful: it's easy to get the same behavior by checking for NA _or_ infinity.
* Source of bugs: e.g., https://github.com/pandas-dev/pandas/issues/33655, https://github.com/pandas-dev/pandas/issues/33594. If an array has a cached mask attribute there's no guarantee that it's correct:
```python
import numpy as np
import pandas as pd
arr = pd.Categorical([1.0, 2.0, np.inf])
pd.options.mode.use_inf_as_na = True
arr.isna().any() # False
```
* General maintenance cost: several null-checking functions either have to be duplicated or equipped with boolean arguments to switch their behavior (e.g., _isna and _isna_ndarraylike from /core/dtypes/missing.py, or isnaobj and isnaobj_old from /_libs/missing.pyx). These could all be cleaned up if NA had _one_ meaning.
Thoughts?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34093/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34093/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34094
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34094/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34094/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34094/events
|
https://github.com/pandas-dev/pandas/pull/34094
| 615,220,692
|
MDExOlB1bGxSZXF1ZXN0NDE1NjAzNjI0
| 34,094
|
CLN: Change old string formatting syntax into f-strings
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/34047134?v=4",
"events_url": "https://api.github.com/users/proost/events{/privacy}",
"followers_url": "https://api.github.com/users/proost/followers",
"following_url": "https://api.github.com/users/proost/following{/other_user}",
"gists_url": "https://api.github.com/users/proost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/proost",
"id": 34047134,
"login": "proost",
"node_id": "MDQ6VXNlcjM0MDQ3MTM0",
"organizations_url": "https://api.github.com/users/proost/orgs",
"received_events_url": "https://api.github.com/users/proost/received_events",
"repos_url": "https://api.github.com/users/proost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/proost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/proost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/proost"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-05-09T17:11:58Z
| 2020-05-10T10:00:58Z
| 2020-05-09T19:20:42Z
|
CONTRIBUTOR
| null |
- [x] xref #29547
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34094/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34094/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34094.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34094",
"merged_at": "2020-05-09T19:20:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34094.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34094"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34095
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34095/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34095/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34095/events
|
https://github.com/pandas-dev/pandas/issues/34095
| 615,253,970
|
MDU6SXNzdWU2MTUyNTM5NzA=
| 34,095
|
ENH: enable concat for nullable Int with other dtypes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 5
| 2020-05-09T20:27:49Z
| 2020-07-08T16:15:56Z
| 2020-07-08T16:15:56Z
|
MEMBER
| null |
Following-up on https://github.com/pandas-dev/pandas/pull/33607 which added the `ExtensionDtype._get_common_dtype` method to the EA interface to determine concat/append behaviour, we can now use this to refine the concat behaviour for nullable integer and boolean dtypes.
See comment here: https://github.com/pandas-dev/pandas/pull/33607#discussion_r410127707
For now, the PR only enabled concat of all IntegerDtype objects (any other combination will result in object dtype). But, we can expand this to the combination of IntegerDtype with numpy int dtype, Int with boolean, Int with float, etc
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34095/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34095/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34096
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34096/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34096/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34096/events
|
https://github.com/pandas-dev/pandas/pull/34096
| 615,272,441
|
MDExOlB1bGxSZXF1ZXN0NDE1NjM5MTE2
| 34,096
|
TST: Mark groupby.nunique test as slow
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-05-09T22:29:37Z
| 2020-05-10T15:05:30Z
| 2020-05-10T15:04:41Z
|
MEMBER
| null |
This test takes about 40 seconds to run for me while shrinking the size of the data brings the runtime down to 2 seconds, presumably without changing coverage (do we even need to parametrize over n and m here?).
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34096/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34096/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34096.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34096",
"merged_at": "2020-05-10T15:04:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34096.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34096"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34097
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34097/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34097/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34097/events
|
https://github.com/pandas-dev/pandas/issues/34097
| 615,294,590
|
MDU6SXNzdWU2MTUyOTQ1OTA=
| 34,097
|
BUG: Incorrect levels of MultiIndex when creating a new DataFrame by dropping a row
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33289453?v=4",
"events_url": "https://api.github.com/users/LastsForever/events{/privacy}",
"followers_url": "https://api.github.com/users/LastsForever/followers",
"following_url": "https://api.github.com/users/LastsForever/following{/other_user}",
"gists_url": "https://api.github.com/users/LastsForever/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/LastsForever",
"id": 33289453,
"login": "LastsForever",
"node_id": "MDQ6VXNlcjMzMjg5NDUz",
"organizations_url": "https://api.github.com/users/LastsForever/orgs",
"received_events_url": "https://api.github.com/users/LastsForever/received_events",
"repos_url": "https://api.github.com/users/LastsForever/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/LastsForever/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LastsForever/subscriptions",
"type": "User",
"url": "https://api.github.com/users/LastsForever"
}
|
[
{
"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": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4",
"events_url": "https://api.github.com/users/CloseChoice/events{/privacy}",
"followers_url": "https://api.github.com/users/CloseChoice/followers",
"following_url": "https://api.github.com/users/CloseChoice/following{/other_user}",
"gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CloseChoice",
"id": 31857876,
"login": "CloseChoice",
"node_id": "MDQ6VXNlcjMxODU3ODc2",
"organizations_url": "https://api.github.com/users/CloseChoice/orgs",
"received_events_url": "https://api.github.com/users/CloseChoice/received_events",
"repos_url": "https://api.github.com/users/CloseChoice/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CloseChoice"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4",
"events_url": "https://api.github.com/users/CloseChoice/events{/privacy}",
"followers_url": "https://api.github.com/users/CloseChoice/followers",
"following_url": "https://api.github.com/users/CloseChoice/following{/other_user}",
"gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CloseChoice",
"id": 31857876,
"login": "CloseChoice",
"node_id": "MDQ6VXNlcjMxODU3ODc2",
"organizations_url": "https://api.github.com/users/CloseChoice/orgs",
"received_events_url": "https://api.github.com/users/CloseChoice/received_events",
"repos_url": "https://api.github.com/users/CloseChoice/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CloseChoice"
}
] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 5
| 2020-05-10T01:32:20Z
| 2020-06-14T22:41:59Z
| 2020-06-14T22:41:59Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**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
<img width="1143" alt="image" src="https://user-images.githubusercontent.com/33289453/81488715-0c2db980-929f-11ea-9960-61d24d1ab44f.png">
```python
#%%
import pandas as pd
import numpy as np
#%%
df = pd.DataFrame(np.arange(16).reshape(4,4), index=pd.MultiIndex.from_arrays([list("AABB"), list("XYXY")]), columns=list("abcd"))
df
#%%
df.index, df.index.levels
#%%
df_new = df.drop(index="A")
df_new
#%%
df_new.index, df_new.index.levels
```
#### Problem description
[this should explain **why** the current behaviour is a problem and why the expected output is a better solution]
The levels of MultiIndex of DataFrame never change when creating a new DataFrame by dropping a row. When creating a new DataFrame, the levels should match the new MultiIndex.
#### Expected Output
df_new.index.levels
should be
FrozenList([['B'], ['X', 'Y']]))
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag]
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.7.final.0
python-bits : 64
OS : Darwin
OS-release : 19.4.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.UTF-8
pandas : 1.0.3
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3.post20200330
Cython : None
pytest : None
hypothesis : None
sphinx : 2.4.4
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.3
numexpr : None
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34097/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34097/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34098
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34098/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34098/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34098/events
|
https://github.com/pandas-dev/pandas/issues/34098
| 615,309,059
|
MDU6SXNzdWU2MTUzMDkwNTk=
| 34,098
|
BUG:pd.value_counts() When the values are equal, the order of equal values is invalid
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/47380395?v=4",
"events_url": "https://api.github.com/users/sun1638650145/events{/privacy}",
"followers_url": "https://api.github.com/users/sun1638650145/followers",
"following_url": "https://api.github.com/users/sun1638650145/following{/other_user}",
"gists_url": "https://api.github.com/users/sun1638650145/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sun1638650145",
"id": 47380395,
"login": "sun1638650145",
"node_id": "MDQ6VXNlcjQ3MzgwMzk1",
"organizations_url": "https://api.github.com/users/sun1638650145/orgs",
"received_events_url": "https://api.github.com/users/sun1638650145/received_events",
"repos_url": "https://api.github.com/users/sun1638650145/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sun1638650145/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sun1638650145/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sun1638650145"
}
|
[
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-05-10T03:41:53Z
| 2020-05-11T02:59:44Z
| 2020-05-11T02:59:44Z
|
NONE
| null |
```python
import pandas as pd
df = pd.DataFrame([('a', 1), ('b', 1), ('c', 3), ('a', 1), ('b', 1)])
print(pd.value_counts(df[0], sort=True))
# you can see two situations
# b 2
# a 2
# c 1
# Name: 0, dtype: int64
# a 2
# b 2
# c 1
# Name: 0, dtype: int64
```
#### Problem description
When the values are equal, the order of equal values is invalid, Sorting is only for values, no index is processed
#### Expected Output
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Darwin
OS-release : 19.4.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : None
LOCALE : zh_CN.UTF-8
pandas : 1.0.3
numpy : 1.18.4
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1
setuptools : 46.1.3
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.2.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
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/34098/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34098/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34099
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34099/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34099/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34099/events
|
https://github.com/pandas-dev/pandas/pull/34099
| 615,427,715
|
MDExOlB1bGxSZXF1ZXN0NDE1NzQ1OTUx
| 34,099
|
REF: implement general case DateOffset methods on BaseOffset
|
{
"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": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-05-10T16:31:45Z
| 2020-05-12T16:12:23Z
| 2020-05-12T15:29:28Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34099/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34099/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34099.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34099",
"merged_at": "2020-05-12T15:29:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34099.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34099"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34100
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34100/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34100/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34100/events
|
https://github.com/pandas-dev/pandas/pull/34100
| 615,430,654
|
MDExOlB1bGxSZXF1ZXN0NDE1NzQ4MDA2
| 34,100
|
DOC: timezone warning for dates beyond TODAY
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/28426758?v=4",
"events_url": "https://api.github.com/users/joooeey/events{/privacy}",
"followers_url": "https://api.github.com/users/joooeey/followers",
"following_url": "https://api.github.com/users/joooeey/following{/other_user}",
"gists_url": "https://api.github.com/users/joooeey/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joooeey",
"id": 28426758,
"login": "joooeey",
"node_id": "MDQ6VXNlcjI4NDI2NzU4",
"organizations_url": "https://api.github.com/users/joooeey/orgs",
"received_events_url": "https://api.github.com/users/joooeey/received_events",
"repos_url": "https://api.github.com/users/joooeey/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joooeey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joooeey/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joooeey"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 6
| 2020-05-10T16:47:28Z
| 2020-08-21T17:16:40Z
| 2020-08-21T17:16:30Z
|
CONTRIBUTOR
| null |
introducing a suggestion discussed in PR #33863 :
Added a warning in the user guide that timezone conversion on future dates is inherently unreliable.
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34100/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34100/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34100.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34100",
"merged_at": "2020-08-21T17:16:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34100.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34100"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34101
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34101/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34101/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34101/events
|
https://github.com/pandas-dev/pandas/issues/34101
| 615,443,692
|
MDU6SXNzdWU2MTU0NDM2OTI=
| 34,101
|
BUG: Inconsistency in week anchoring?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13206058?v=4",
"events_url": "https://api.github.com/users/yohplala/events{/privacy}",
"followers_url": "https://api.github.com/users/yohplala/followers",
"following_url": "https://api.github.com/users/yohplala/following{/other_user}",
"gists_url": "https://api.github.com/users/yohplala/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yohplala",
"id": 13206058,
"login": "yohplala",
"node_id": "MDQ6VXNlcjEzMjA2MDU4",
"organizations_url": "https://api.github.com/users/yohplala/orgs",
"received_events_url": "https://api.github.com/users/yohplala/received_events",
"repos_url": "https://api.github.com/users/yohplala/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yohplala/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yohplala/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yohplala"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
open
| false
| null |
[] | null | 0
| 2020-05-10T18:01:42Z
| 2020-06-05T20:34:58Z
| 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, a copy-pastable example
```python
ts = pd.Timestamp('2020-05-13 15:30:00')
freqstr = 'W-MON'
period_start1 = pd.tseries.frequencies.to_offset(freqstr).rollback(ts.normalize())
freqstr = 'W-SUN'
period_start2 = pd.Period(ts, freq=freqstr).start_time
period_start1 == period_start2
```
#### Problem description
Result is `True` where it should be `False`
I would like to raise what seem to me 2 "troubles".
#####Trouble 1
I don't understand why it is not possible to use the same `freqstr` between `to_offset` and `Period` to get the same result (which would be according my understanding `W-SUN` here)
#####Trouble 2
To get `period_start1` anchored to beginning of the week, which starts at midnight, I have to `normalize()` it, either the `Timestamp` or the `Timestamp` provided by the `rollback`.
On the other hand `rollback` documentation states: 'Rolled timestamp if not on offset'
For me the offset is at period beginning, i.e. midnight on Sunday.
#### Expected Output
I would expect the following code to give equivalent result (no `normalize` and same `freqstr`).
```python
ts = pd.Timestamp('2020-05-13 15:30:00')
freqstr = 'W-SUN'
period_start1 = pd.tseries.frequencies.to_offset(freqstr).rollback()
freqstr = 'W-SUN'
period_start2 = pd.Period(ts, freq=freqstr).start_time
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Linux
OS-release : 5.3.0-51-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : fr_FR.UTF-8
LOCALE : fr_FR.UTF-8
pandas : 1.0.3
numpy : 1.16.3
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3.post20200330
Cython : None
pytest : None
hypothesis : None
sphinx : 2.4.4
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : 0.3.3
gcsfs : None
lxml.etree : None
matplotlib : 3.0.3
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 0.16.0
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : 3.6.1
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : 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/34101/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34101/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34102
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34102/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34102/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34102/events
|
https://github.com/pandas-dev/pandas/issues/34102
| 615,443,700
|
MDU6SXNzdWU2MTU0NDM3MDA=
| 34,102
|
CLN: use staticmethods where applicable.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/28426758?v=4",
"events_url": "https://api.github.com/users/joooeey/events{/privacy}",
"followers_url": "https://api.github.com/users/joooeey/followers",
"following_url": "https://api.github.com/users/joooeey/following{/other_user}",
"gists_url": "https://api.github.com/users/joooeey/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joooeey",
"id": 28426758,
"login": "joooeey",
"node_id": "MDQ6VXNlcjI4NDI2NzU4",
"organizations_url": "https://api.github.com/users/joooeey/orgs",
"received_events_url": "https://api.github.com/users/joooeey/received_events",
"repos_url": "https://api.github.com/users/joooeey/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joooeey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joooeey/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joooeey"
}
|
[
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
},
{
"color": "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 | 18
| 2020-05-10T18:01:44Z
| 2021-03-21T15:43:54Z
| 2021-03-21T15:43:54Z
|
CONTRIBUTOR
| null |
# Issue
In my arbitrary sample of three `.py` files in the code base, Two files had multiple class methods in which the `cls` attribute was never used. It's entirely incomprehensible to me why these are specifically decorated as class methods since they don't access the class. It would improve code readability if they were static methods. Technically, most of them could also be module-level functions but refactoring that appears to be way more effort.
An example is `pandas/plotting/matplotlib/core.py`.
# Proposed fix
- To prevent anyone from making this mistake again, we should make sure our Linter rejects methods with unused arguments such as [PyLint does](http://pylint-messages.wikidot.com/messages:w0613).
- Write a script that converts all methods (including class methods) with an unused first argument (typically `self` and `cls`) to static methods. Run that script across the Pandas codebase.
- Fix any resulting test failures or other issues. Though very likely there will be none because a static method is virtually indistinguishable from a class method or instance method except if you check the type directly.
- Make the pull request.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34102/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34102/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34103
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34103/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34103/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34103/events
|
https://github.com/pandas-dev/pandas/pull/34103
| 615,447,587
|
MDExOlB1bGxSZXF1ZXN0NDE1NzYwNDMx
| 34,103
|
REF: put PeriodArray-specific method in PeriodArray
|
{
"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": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-05-10T18:22:33Z
| 2020-05-12T16:10:42Z
| 2020-05-12T15:41:53Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34103/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34103/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34103.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34103",
"merged_at": "2020-05-12T15:41:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34103.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34103"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34104
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34104/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34104/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34104/events
|
https://github.com/pandas-dev/pandas/issues/34104
| 615,453,329
|
MDU6SXNzdWU2MTU0NTMzMjk=
| 34,104
|
API/BUG: pd.NA == pd.NaT returns False
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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"
}
] |
open
| false
| null |
[] | null | 2
| 2020-05-10T18:55:05Z
| 2021-08-07T05:58:36Z
| null |
MEMBER
| null |
@jorisvandenbossche I expected this to return pd.NA. Is this intentional?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34104/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34104/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34105
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34105/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34105/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34105/events
|
https://github.com/pandas-dev/pandas/pull/34105
| 615,455,191
|
MDExOlB1bGxSZXF1ZXN0NDE1NzY1Nzgy
| 34,105
|
REF: make nat_strings cimport-able
|
{
"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"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-05-10T19:05:40Z
| 2020-05-11T21:34:25Z
| 2020-05-11T21:12:00Z
|
MEMBER
| null |
Shouldn't make a real impact, mostly makes the imports easier to read
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34105/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34105/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34105.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34105",
"merged_at": "2020-05-11T21:12:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34105.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34105"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34106
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34106/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34106/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34106/events
|
https://github.com/pandas-dev/pandas/pull/34106
| 615,464,139
|
MDExOlB1bGxSZXF1ZXN0NDE1NzcyMTk2
| 34,106
|
REF: make ccalendar objects cimportable
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-05-10T19:54:37Z
| 2020-05-11T19:39:44Z
| 2020-05-11T19:21:50Z
|
MEMBER
| null |
xref #34105
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34106/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34106/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34106.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34106",
"merged_at": "2020-05-11T19:21:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34106.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34106"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34107
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34107/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34107/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34107/events
|
https://github.com/pandas-dev/pandas/pull/34107
| 615,465,530
|
MDExOlB1bGxSZXF1ZXN0NDE1NzczMjE1
| 34,107
|
CLN: avoid ndim checks in _libs
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-05-10T20:02:32Z
| 2020-05-11T18:54:03Z
| 2020-05-11T18:50:52Z
|
MEMBER
| null |
These checks go through python-space
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34107/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34107/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34107.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34107",
"merged_at": "2020-05-11T18:50:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34107.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34107"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34108
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34108/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34108/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34108/events
|
https://github.com/pandas-dev/pandas/pull/34108
| 615,471,296
|
MDExOlB1bGxSZXF1ZXN0NDE1Nzc3MjY1
| 34,108
|
CLN: make sure we do no-copy ravel()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-05-10T20:36:40Z
| 2020-05-11T18:55:40Z
| 2020-05-11T18:54:33Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34108/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34108/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34108.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34108",
"merged_at": "2020-05-11T18:54:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34108.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34108"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34109
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34109/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34109/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34109/events
|
https://github.com/pandas-dev/pandas/issues/34109
| 615,477,064
|
MDU6SXNzdWU2MTU0NzcwNjQ=
| 34,109
|
ENH: to_dict(orient="index", into=T) returns T[K, dict], expecting T[K, T]
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1130635?v=4",
"events_url": "https://api.github.com/users/TomGoBravo/events{/privacy}",
"followers_url": "https://api.github.com/users/TomGoBravo/followers",
"following_url": "https://api.github.com/users/TomGoBravo/following{/other_user}",
"gists_url": "https://api.github.com/users/TomGoBravo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomGoBravo",
"id": 1130635,
"login": "TomGoBravo",
"node_id": "MDQ6VXNlcjExMzA2MzU=",
"organizations_url": "https://api.github.com/users/TomGoBravo/orgs",
"received_events_url": "https://api.github.com/users/TomGoBravo/received_events",
"repos_url": "https://api.github.com/users/TomGoBravo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomGoBravo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomGoBravo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomGoBravo"
}
|
[
{
"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 | 8
| 2020-05-10T21:10:15Z
| 2021-06-10T12:51:18Z
| null |
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
Live at https://repl.it/@TomGoBravo/RoughUncommonDatabase
```python
import pandas as pd
import numpy as np
from collections import OrderedDict
df = pd.DataFrame(
np.random.randint(10, size=(3, 2)),
columns=list('AB'),
)
print(df.to_dict(orient='index', into=OrderedDict))
# Today this outputs something like:
# OrderedDict([(0, {'A': 7, 'B': 9}),
# (1, {'A': 8, 'B': 9}),
# (2, {'A': 9, 'B': 0})])
# but I'm expecting the values to be OrderedDict too instead
# of {}
```
#### Problem description
I expected the `into` parameter to be used for all dicts returned by to_dict but the implementation for orient="index" has `dict` hard-coded. A work around is fairly simple but thought I'd report the issue.
#### Expected Output
I'm expecting the values of the indexed mapping to also be of type `into`, not `dict`. The fix is replacing `dict` at https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L1503 with `into_c`. I tried changing this line of code and re-ran the `test_fast.sh`. It didn't seem to break any tests, I get `78277 passed, 8446 skipped, 1000 xfailed, 31 warnings in 967.05s (0:16:07)` vs `78277 passed, 8446 skipped, 1000 xfailed, 31 warnings in 1546.42s (0:25:46)` running master with no change.
|
{
"+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/34109/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34109/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34110
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34110/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34110/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34110/events
|
https://github.com/pandas-dev/pandas/pull/34110
| 615,480,047
|
MDExOlB1bGxSZXF1ZXN0NDE1NzgzNjI1
| 34,110
|
CLN: Don't use astype_nansafe after to_numpy
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 7
| 2020-05-10T21:27:06Z
| 2020-06-01T13:22:42Z
| 2020-06-01T01:48:28Z
|
MEMBER
| null |
I'm not 100% sure about the change in the tests, but it seems to align with numpy:
```python
[ins] In [1]: np.array([1, 2]).astype(str)
Out[1]: array(['1', '2'], dtype='<U21')
[ins] In [2]: pd.array([1, 2]).astype(str)
Out[2]: array(['1', '2'], dtype='<U21')
```
```python
[ins] In [1]: np.array([True, False]).astype(str)
Out[1]: array(['True', 'False'], dtype='<U5')
[ins] In [2]: pd.array([True, False]).astype(str)
Out[2]: array(['True', 'False'], dtype='<U5')
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34110/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34110/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34110.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34110",
"merged_at": "2020-06-01T01:48:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34110.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34110"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34111
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34111/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34111/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34111/events
|
https://github.com/pandas-dev/pandas/pull/34111
| 615,490,778
|
MDExOlB1bGxSZXF1ZXN0NDE1NzkxMjk2
| 34,111
|
PERF: use is_foo_dtype fastpaths
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[] |
closed
| false
| null |
[] | null | 2
| 2020-05-10T22:31:03Z
| 2020-05-11T18:02:44Z
| 2020-05-11T17:19:01Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34111/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34111/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34111.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34111",
"merged_at": "2020-05-11T17:19:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34111.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34111"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34112
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34112/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34112/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34112/events
|
https://github.com/pandas-dev/pandas/issues/34112
| 615,506,760
|
MDU6SXNzdWU2MTU1MDY3NjA=
| 34,112
|
BUG: unstack() sorts automatically, default is preferably unsorted?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/36704214?v=4",
"events_url": "https://api.github.com/users/MatthiVH/events{/privacy}",
"followers_url": "https://api.github.com/users/MatthiVH/followers",
"following_url": "https://api.github.com/users/MatthiVH/following{/other_user}",
"gists_url": "https://api.github.com/users/MatthiVH/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MatthiVH",
"id": 36704214,
"login": "MatthiVH",
"node_id": "MDQ6VXNlcjM2NzA0MjE0",
"organizations_url": "https://api.github.com/users/MatthiVH/orgs",
"received_events_url": "https://api.github.com/users/MatthiVH/received_events",
"repos_url": "https://api.github.com/users/MatthiVH/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MatthiVH/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MatthiVH/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MatthiVH"
}
|
[
{
"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": "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 | 2
| 2020-05-11T00:07:32Z
| 2020-07-19T18:27:16Z
| 2020-05-11T12:59:41Z
|
NONE
| null |
The unstack() function is automatically sorting my labels in my boxplot-code. Isn't it nice to have a sort = False option (probably the default?)
My labels are perfectly ordered, it's just after unstacking they get messed-up.
my post on stack-overflow: https://stackoverflow.com/questions/61720090/issues-with-boxplot-figure-x-label-are-alphabetically-and-extra-nan-label-is-cr
another example: https://stackoverflow.com/questions/32163063/pandas-plotting-incorrectly-sorts-the-binned-values-on-the-graph
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34112/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34112/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34113
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34113/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34113/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34113/events
|
https://github.com/pandas-dev/pandas/pull/34113
| 615,781,218
|
MDExOlB1bGxSZXF1ZXN0NDE2MDE5MTgw
| 34,113
|
REGR: exceptions not caught in _call_map_locations
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[] |
closed
| false
| null |
[] |
{
"closed_at": "2020-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 0
| 2020-05-11T10:38:47Z
| 2020-05-15T09:33:18Z
| 2020-05-15T09:33:13Z
|
MEMBER
| null |
- [ ] xref #32409
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
# NOTE: issue 'fixed' on master. This PR against 1.0.x branch
cc @jbrockmendel Could there still be issue on master with the exceptions not being caught?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34113/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34113/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34113.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34113",
"merged_at": "2020-05-15T09:33:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34113.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34113"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34114
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34114/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34114/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34114/events
|
https://github.com/pandas-dev/pandas/issues/34114
| 615,918,777
|
MDU6SXNzdWU2MTU5MTg3Nzc=
| 34,114
|
MacPython linux build failing
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"color": "e11d21",
"default": false,
"description": "Blocking issue or pull request for an upcoming release",
"id": 77550281,
"name": "Blocker",
"node_id": "MDU6TGFiZWw3NzU1MDI4MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Blocker"
},
{
"color": "0e8a16",
"default": false,
"description": "32-bit systems",
"id": 563047854,
"name": "32bit",
"node_id": "MDU6TGFiZWw1NjMwNDc4NTQ=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/32bit"
}
] |
closed
| false
| null |
[] | null | 21
| 2020-05-11T14:14:48Z
| 2020-05-29T19:05:40Z
| 2020-05-29T19:05:40Z
|
CONTRIBUTOR
| null |
There are build failures with the manylinux1 32-bit docker image.
```
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DNPY_NO_DEPRECATED_API=0 -Ipandas/_libs/tslibs -I./pandas/_libs/tslibs -I/opt/python/cp38-cp38/lib/python3.8/site-packages/numpy/core/include -I/opt/python/cp38-cp38/include/python3.8 -c pandas/_libs/tslibs/period.c -o build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/period.o
pandas/_libs/tslibs/period.c: In function ‘__pyx_f_6pandas_5_libs_6tslibs_6period_pqyear’:
pandas/_libs/tslibs/period.c:12464:3: warning: ‘__pyx_v_year’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return __pyx_r;
^
pandas/_libs/tslibs/period.c: In function ‘__pyx_f_6pandas_5_libs_6tslibs_6period_pquarter’:
pandas/_libs/tslibs/period.c:12512:3: warning: ‘__pyx_v_quarter’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return __pyx_r;
building 'pandas._libs.hashtable' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wl,-strip-all -I/usr/local/include -fPIC -DNPY_NO_DEPRECATED_API=0 -Ipandas/_libs/src/klib -I/opt/python/cp38-cp38/lib/python3.8/site-packages/numpy/core/include -I/opt/python/cp38-cp38/include/python3.8 -c pandas/_libs/hashtable.c -o build/temp.linux-i686-3.8/pandas/_libs/hashtable.o -Werror
pandas/_libs/hashtable.c: In function ‘__pyx_f_6pandas_5_libs_9hashtable_value_count_float64’:
pandas/_libs/hashtable.c:27378:41: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
pandas/_libs/hashtable.c:29050:41: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
^
pandas/_libs/hashtable.c: In function ‘__pyx_pf_6pandas_5_libs_9hashtable_8duplicated_uint64’:
pandas/_libs/hashtable.c:29800:38: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
__pyx_t_10 = ((__pyx_v_k != __pyx_v_table->n_buckets) != 0);
^
pandas/_libs/hashtable.c: In function ‘__pyx_pf_6pandas_5_libs_9hashtable_10ismember_uint64’:
pandas/_libs/hashtable.c:30271:177: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_uint8_t *, __pyx_pybuffernd_result.rcbuffer->pybuffer.buf, __pyx_t_17, __pyx_pybuffernd_result.diminfo[0].strides) = (__pyx_v_k != __pyx_v_table->n_buckets);
^
pandas/_libs/hashtable.c: In function ‘__pyx_f_6pandas_5_libs_9hashtable_value_count_object’:
pandas/_libs/hashtable.c:30731:33: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) {
^
pandas/_libs/hashtable.c: In function ‘__pyx_pf_6pandas_5_libs_9hashtable_14duplicated_object’:
pandas/_libs/hashtable.c:31389:31: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
__pyx_t_9 = ((__pyx_v_k != __pyx_v_table->n_buckets) != 0);
^
pandas/_libs/hashtable.c: In function ‘__pyx_pf_6pandas_5_libs_9hashtable_16ismember_object’:
pandas/_libs/hashtable.c:31825:171: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_uint8_t *, __pyx_pybuffernd_result.rcbuffer->pybuffer.buf, __pyx_t_16, __pyx_pybuffernd_result.diminfo[0].strides) = (__pyx_v_k != __pyx_v_table->n_buckets);
^
pandas/_libs/hashtable.c: In function ‘__pyx_f_6pandas_5_libs_9hashtable_value_count_int64’:
pandas/_libs/hashtable.c:32258:39: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) {
^
pandas/_libs/hashtable.c: In function ‘__pyx_pf_6pandas_5_libs_9hashtable_20duplicated_int64’:
pandas/_libs/hashtable.c:33007:38: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
__pyx_t_10 = ((__pyx_v_k != __pyx_v_table->n_buckets) != 0);
^
pandas/_libs/hashtable.c: In function ‘__pyx_pf_6pandas_5_libs_9hashtable_22ismember_int64’:
pandas/_libs/hashtable.c:33478:177: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_uint8_t *, __pyx_pybuffernd_result.rcbuffer->pybuffer.buf, __pyx_t_17, __pyx_pybuffernd_result.diminfo[0].strides) = (__pyx_v_k != __pyx_v_table->n_buckets);
^
pandas/_libs/hashtable.c: In function ‘__pyx_pf_6pandas_5_libs_9hashtable_24mode_float64’:
pandas/_libs/hashtable.c:33800:41: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) {
^
pandas/_libs/hashtable.c: In function ‘__pyx_pf_6pandas_5_libs_9hashtable_26mode_int64’:
pandas/_libs/hashtable.c:34225:41: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) {
^
pandas/_libs/hashtable.c: In function ‘__pyx_pf_6pandas_5_libs_9hashtable_28mode_uint64’:
pandas/_libs/hashtable.c:34650:41: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) {
^
pandas/_libs/hashtable.c: In function ‘__pyx_pf_6pandas_5_libs_9hashtable_30mode_object’:
pandas/_libs/hashtable.c:35077:35: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) {
^
cc1: all warnings being treated as errors
```
To reproduce
```Dockerfile
FROM quay.io/pypa/manylinux1_i686:latest
RUN git clone --depth=1 https://github.com/pandas-dev/pandas \
&& cd pandas \
&& /opt/python/cp38-cp38/bin/python -m pip install numpy cython python-dateutil pytz
WORKDIR pandas
RUN /opt/python/cp38-cp38/bin/python setup.py build_ext -i
```
I've uploaded the generated hashtable.c file [here][hashtable].
[hashtable]: https://gist.github.com/1f60b2059a103e6d36c02a0d07200e59
---
#34409 fixed the following issues.
https://dev.azure.com/pandas-dev/pandas-wheels/_build/results?buildId=35250&view=logs&j=e9afaa34-1a0f-534e-78fc-fae528ccd915&t=4685e914-c192-594f-c25f-e6cef98b7ba4
```
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wl,-strip-all -I/usr/local/include -fPIC -DNPY_NO_DEPRECATED_API=0 -Ipandas/_libs/tslibs -I./pandas/_libs/tslibs -I/opt/python/cp38-cp38/lib/python3.8/site-packages/numpy/core/include -I/opt/python/cp38-cp38/include/python3.8 -c pandas/_libs/tslibs/period.c -o build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/period.o -Werror
pandas/_libs/tslibs/period.c: In function ‘__pyx_f_6pandas_5_libs_6tslibs_6period_pqyear’:
pandas/_libs/tslibs/period.c:12479:3: error: ‘__pyx_v_year’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
return __pyx_r;
^
pandas/_libs/tslibs/period.c: In function ‘__pyx_f_6pandas_5_libs_6tslibs_6period_pquarter’:
pandas/_libs/tslibs/period.c:12527:3: error: ‘__pyx_v_quarter’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
return __pyx_r;
^
cc1: all warnings being treated as errors
warning: pandas/_libs/groupby.pyx:1101:26: Unreachable code
```
https://dev.azure.com/pandas-dev/pandas-wheels/_build/results?buildId=34768&view=results from May 3rd may be the first one with this warning. https://dev.azure.com/pandas-dev/pandas-wheels/_build/results?buildId=34727&view=results from May 2nd built successfully.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34114/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34114/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34115
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34115/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34115/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34115/events
|
https://github.com/pandas-dev/pandas/pull/34115
| 615,930,240
|
MDExOlB1bGxSZXF1ZXN0NDE2MTQyMDI4
| 34,115
|
Backport PR #34048 on branch 1.0.x (Bug in DataFrame.replace casts columns to ``object`` dtype if items in ``to_replace`` not in values)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[] |
closed
| false
| null |
[] |
{
"closed_at": "2020-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 0
| 2020-05-11T14:29:38Z
| 2020-05-14T12:26:47Z
| 2020-05-14T12:26:42Z
|
MEMBER
| null |
xref #34048, #32988
fixes regression in 1.0.0
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34115/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34115/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34115.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34115",
"merged_at": "2020-05-14T12:26:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34115.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34115"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34116
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34116/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34116/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34116/events
|
https://github.com/pandas-dev/pandas/pull/34116
| 615,959,462
|
MDExOlB1bGxSZXF1ZXN0NDE2MTY2MDE5
| 34,116
|
MAINT: Clarify supported Stata dta versions
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5585221?v=4",
"events_url": "https://api.github.com/users/bashtage/events{/privacy}",
"followers_url": "https://api.github.com/users/bashtage/followers",
"following_url": "https://api.github.com/users/bashtage/following{/other_user}",
"gists_url": "https://api.github.com/users/bashtage/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bashtage",
"id": 5585221,
"login": "bashtage",
"node_id": "MDQ6VXNlcjU1ODUyMjE=",
"organizations_url": "https://api.github.com/users/bashtage/orgs",
"received_events_url": "https://api.github.com/users/bashtage/received_events",
"repos_url": "https://api.github.com/users/bashtage/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bashtage/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bashtage/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bashtage"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "read_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": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 5
| 2020-05-11T15:07:53Z
| 2020-07-28T14:41:35Z
| 2020-05-12T14:54:10Z
|
CONTRIBUTOR
| null |
Test against old Stata versions and remove text indicating support
for versions which do not work reliably
closes #26667
- [x] closes #26667
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34116/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34116/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34116.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34116",
"merged_at": "2020-05-12T14:54:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34116.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34116"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.