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/37619
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37619/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37619/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37619/events
|
https://github.com/pandas-dev/pandas/pull/37619
| 735,724,792
|
MDExOlB1bGxSZXF1ZXN0NTE1MDY0NTg2
| 37,619
|
TST/REF: parametrize set_axis tests
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-11-04T00:30:58Z
| 2020-11-04T04:02:09Z
| 2020-11-04T02:05:28Z
|
MEMBER
| null |
- [ ] 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/37619/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37619/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37619.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37619",
"merged_at": "2020-11-04T02:05:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37619.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37619"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37620
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37620/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37620/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37620/events
|
https://github.com/pandas-dev/pandas/issues/37620
| 735,741,380
|
MDU6SXNzdWU3MzU3NDEzODA=
| 37,620
|
BUG: ParserError while reading a csv file generated by pandas dataframe
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11664259?v=4",
"events_url": "https://api.github.com/users/galipremsagar/events{/privacy}",
"followers_url": "https://api.github.com/users/galipremsagar/followers",
"following_url": "https://api.github.com/users/galipremsagar/following{/other_user}",
"gists_url": "https://api.github.com/users/galipremsagar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/galipremsagar",
"id": 11664259,
"login": "galipremsagar",
"node_id": "MDQ6VXNlcjExNjY0MjU5",
"organizations_url": "https://api.github.com/users/galipremsagar/orgs",
"received_events_url": "https://api.github.com/users/galipremsagar/received_events",
"repos_url": "https://api.github.com/users/galipremsagar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/galipremsagar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/galipremsagar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/galipremsagar"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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-11-04T01:21:27Z
| 2021-08-14T04:49:42Z
| 2021-08-14T04:49:42Z
|
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
`temp.parquet`(Please rename the file to `temp.parquet`, attached by renaming to zip file) :[temp.parquet.zip](https://github.com/pandas-dev/pandas/files/5484945/temp.parquet.zip)
```python
In[68]: import pandas as pd
In[69]: df = pd.read_parquet('temp.parquet')
In[70]: df
Out[70]:
0 1 2 ... 26 27 28
0 <NA> <NA> <NA> ... 2028304185033190912 <NA> <NA>
1 <NA> True <NA> ... <NA> <NA> <NA>
2 <NA> True 5054 ... <NA> <NA> <NA>
3 <NA> <NA> -31346 ... -4248617305981604864 <NA> 3122060888
4 <NA> True <NA> ... -7541642907968846848 <NA> 747124512
.. ... ... ... ... ... ... ...
813 <NA> True <NA> ... <NA> <NA> 62110627
814 <NA> False -14583 ... <NA> <NA> <NA>
815 <NA> <NA> <NA> ... <NA> <NA> 3767148217
816 <NA> False 1403 ... <NA> <NA> 1941864748
817 <NA> True <NA> ... <NA> <NA> 3137914998
[818 rows x 29 columns]
In[71]: df.to_csv('temp.csv')
In[72]: pd.read_csv('temp.csv')
Traceback (most recent call last):
File "/home/pgali/anaconda3/envs/cudf_dev/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3417, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-72-7315a31c9d2d>", line 1, in <module>
pd.read_csv('temp.csv')
File "/home/pgali/anaconda3/envs/cudf_dev/lib/python3.7/site-packages/pandas/io/parsers.py", line 686, in read_csv
return _read(filepath_or_buffer, kwds)
File "/home/pgali/anaconda3/envs/cudf_dev/lib/python3.7/site-packages/pandas/io/parsers.py", line 458, in _read
data = parser.read(nrows)
File "/home/pgali/anaconda3/envs/cudf_dev/lib/python3.7/site-packages/pandas/io/parsers.py", line 1196, in read
ret = self._engine.read(nrows)
File "/home/pgali/anaconda3/envs/cudf_dev/lib/python3.7/site-packages/pandas/io/parsers.py", line 2155, in read
data = self._reader.read(nrows)
File "pandas/_libs/parsers.pyx", line 847, in pandas._libs.parsers.TextReader.read
File "pandas/_libs/parsers.pyx", line 862, in pandas._libs.parsers.TextReader._read_low_memory
File "pandas/_libs/parsers.pyx", line 918, in pandas._libs.parsers.TextReader._read_rows
File "pandas/_libs/parsers.pyx", line 905, in pandas._libs.parsers.TextReader._tokenize_rows
File "pandas/_libs/parsers.pyx", line 2042, in pandas._libs.parsers.raise_parser_error
pandas.errors.ParserError: Error tokenizing data. C error: Buffer overflow caught - possible malformed input file.
```
#### Problem description
The parse error occurs when we try to read the csv file generated by pandas dataframe. This error occurs to this specific dataframe. Not sure what the reason is. Hence attaching the dataframe in parquet file.
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : db08276bc116c438d3fdee492026f8223584c477
python : 3.7.8.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-52-generic
Version : #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.3
numpy : 1.19.2
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.4
setuptools : 49.6.0.post20201009
Cython : 0.29.21
pytest : 6.1.1
hypothesis : 5.37.3
sphinx : 3.2.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.18.1
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.8.4
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 1.0.1
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.51.2
</details>
Cross referencing to cudf fuzz test thread for tracking: https://github.com/rapidsai/cudf/issues/6001
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37620/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37620/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37621
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37621/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37621/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37621/events
|
https://github.com/pandas-dev/pandas/pull/37621
| 735,806,542
|
MDExOlB1bGxSZXF1ZXN0NTE1MTI5Mzc3
| 37,621
|
ENH: memory_map for compressed files
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6618166?v=4",
"events_url": "https://api.github.com/users/twoertwein/events{/privacy}",
"followers_url": "https://api.github.com/users/twoertwein/followers",
"following_url": "https://api.github.com/users/twoertwein/following{/other_user}",
"gists_url": "https://api.github.com/users/twoertwein/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/twoertwein",
"id": 6618166,
"login": "twoertwein",
"node_id": "MDQ6VXNlcjY2MTgxNjY=",
"organizations_url": "https://api.github.com/users/twoertwein/orgs",
"received_events_url": "https://api.github.com/users/twoertwein/received_events",
"repos_url": "https://api.github.com/users/twoertwein/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/twoertwein/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/twoertwein/subscriptions",
"type": "User",
"url": "https://api.github.com/users/twoertwein"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 2
| 2020-11-04T04:43:10Z
| 2020-11-05T00:47:18Z
| 2020-11-05T00:40:04Z
|
CONTRIBUTOR
| null |
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Apply memory mapping first and then compression. The existing order didn't work.
This adds support for memory mapping in `read_csv` when compression is specified (python and c engine).
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37621/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37621/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37621.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37621",
"merged_at": "2020-11-05T00:40:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37621.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37621"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37622
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37622/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37622/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37622/events
|
https://github.com/pandas-dev/pandas/issues/37622
| 735,866,761
|
MDU6SXNzdWU3MzU4NjY3NjE=
| 37,622
|
Dataframe.sum() returns an error with MultiIndex columns and skipna=False
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8928429?v=4",
"events_url": "https://api.github.com/users/bertrandmarc/events{/privacy}",
"followers_url": "https://api.github.com/users/bertrandmarc/followers",
"following_url": "https://api.github.com/users/bertrandmarc/following{/other_user}",
"gists_url": "https://api.github.com/users/bertrandmarc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bertrandmarc",
"id": 8928429,
"login": "bertrandmarc",
"node_id": "MDQ6VXNlcjg5Mjg0Mjk=",
"organizations_url": "https://api.github.com/users/bertrandmarc/orgs",
"received_events_url": "https://api.github.com/users/bertrandmarc/received_events",
"repos_url": "https://api.github.com/users/bertrandmarc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bertrandmarc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bertrandmarc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bertrandmarc"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
},
{
"color": "547c03",
"default": false,
"description": "sum, mean, min, max, etc.",
"id": 2365504383,
"name": "Reduction Operations",
"node_id": "MDU6TGFiZWwyMzY1NTA0Mzgz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reduction%20Operations"
}
] |
open
| false
| null |
[] | null | 0
| 2020-11-04T07:00:50Z
| 2021-08-14T04:50:25Z
| null |
NONE
| null |
#### Code Sample, a copy-pastable example
```python
import pandas as pd
import numpy as np
iterables = [['bar', 'baz'], ['one', 'two'], ['dog', 'cat']]
df = pd.DataFrame(np.random.randn(2, 8), columns=pd.MultiIndex.from_product(iterables, names=['first', 'second', 'third']))
df.sum(axis=1, level=['first', 'third'], skipna=False)
>>> df
first bar baz
second one two one two
third dog cat dog cat dog cat dog cat
0 -1.093149 1.087846 -0.067161 1.129021 -1.024021 1.519433 -0.349039 1.215196
1 0.622675 -1.479139 -0.057143 -0.377272 -1.061766 1.606416 -0.172099 -0.564745
```
#### Problem description
Dataframe.sum returns an error with MultiIndex columns, several levels and skipna=False. However it appears to work fine with the transposed version of the dataframe (and axis=0), or with a single level, or with skipna=True.
```python
>>> df.sum(axis=1, level=['first', 'third'], skipna=False)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pandas/core/generic.py", line 368, in _get_axis_number
return cls._AXIS_TO_AXIS_NUMBER[axis]
KeyError: 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/pandas/core/generic.py", line 11419, in stat_func
return self._agg_by_level(
File "/usr/lib/python3/dist-packages/pandas/core/generic.py", line 10258, in _agg_by_level
return grouped.aggregate(applyf)
File "/usr/lib/python3/dist-packages/pandas/core/groupby/generic.py", line 959, in aggregate
return self._python_agg_general(func, *args, **kwargs)
File "/usr/lib/python3/dist-packages/pandas/core/groupby/groupby.py", line 1083, in _python_agg_general
result, counts = self.grouper.agg_series(obj, f)
File "/usr/lib/python3/dist-packages/pandas/core/groupby/ops.py", line 641, in agg_series
return self._aggregate_series_pure_python(obj, func)
File "/usr/lib/python3/dist-packages/pandas/core/groupby/ops.py", line 701, in _aggregate_series_pure_python
res = func(group, *args, **kwargs)
File "/usr/lib/python3/dist-packages/pandas/core/groupby/groupby.py", line 1060, in <lambda>
f = lambda x: func(x, *args, **kwargs)
File "/usr/lib/python3/dist-packages/pandas/core/generic.py", line 10257, in <lambda>
applyf = lambda x: method(x, axis=axis, skipna=skipna, **kwargs)
File "/usr/lib/python3/dist-packages/pandas/core/generic.py", line 11422, in stat_func
return self._reduce(
File "/usr/lib/python3/dist-packages/pandas/core/series.py", line 4223, in _reduce
self._get_axis_number(axis)
File "/usr/lib/python3/dist-packages/pandas/core/generic.py", line 370, in _get_axis_number
raise ValueError(f"No axis named {axis} for object type {cls.__name__}")
ValueError: No axis named 1 for object type Series
```
#### Expected Output
I would expect a Dataframe with the sum of the columns. Please note that it works fine with MultiIndex index (i.e with the transposed Dataframe and axis=0)
```python
>>> df.transpose().sum(level=['first', 'third'], skipna=False)
0 1
first third
bar dog -1.160310 0.565531
cat 2.216866 -1.856411
baz dog -1.373060 -1.233865
cat 2.734629 1.041672
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : db08276bc116c438d3fdee492026f8223584c477
python : 3.8.6.final.0
python-bits : 64
OS : Linux
OS-release : 5.9.0-1-amd64
Version : #1 SMP Debian 5.9.1-1 (2020-10-17)
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : fr_FR.UTF-8
LOCALE : fr_FR.UTF-8
pandas : 1.1.3
numpy : 1.19.3
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 50.3.0
Cython : None
pytest : 4.6.11
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.1
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : None
pandas_datareader: None
bs4 : 4.9.3
bottleneck : 1.2.1
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : None
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.1.0
xlwt : 1.3.0
numba : 0.51.2
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37622/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37622/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37623
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37623/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37623/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37623/events
|
https://github.com/pandas-dev/pandas/pull/37623
| 735,870,320
|
MDExOlB1bGxSZXF1ZXN0NTE1MTgzMjEz
| 37,623
|
TST: 32bit dtype compat test_groupby_dropna
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
|
[
{
"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": "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 |
[] |
{
"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-11-04T07:07:07Z
| 2020-11-06T15:38:24Z
| 2020-11-04T11:04:33Z
|
MEMBER
| null |
Part of #36579
Related to ``test_groupby_nan_included``.
|
{
"+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/37623/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37623/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37623.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37623",
"merged_at": "2020-11-04T11:04:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37623.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37623"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37624
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37624/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37624/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37624/events
|
https://github.com/pandas-dev/pandas/issues/37624
| 735,905,151
|
MDU6SXNzdWU3MzU5MDUxNTE=
| 37,624
|
BUG: DataFrame doesn't roundtrip with HDFStore(..., format='table', dropna=True)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4",
"events_url": "https://api.github.com/users/arw2019/events{/privacy}",
"followers_url": "https://api.github.com/users/arw2019/followers",
"following_url": "https://api.github.com/users/arw2019/following{/other_user}",
"gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/arw2019",
"id": 48889395,
"login": "arw2019",
"node_id": "MDQ6VXNlcjQ4ODg5Mzk1",
"organizations_url": "https://api.github.com/users/arw2019/orgs",
"received_events_url": "https://api.github.com/users/arw2019/received_events",
"repos_url": "https://api.github.com/users/arw2019/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arw2019/subscriptions",
"type": "User",
"url": "https://api.github.com/users/arw2019"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
},
{
"color": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
}
] |
open
| false
| null |
[] | null | 0
| 2020-11-04T08:12:47Z
| 2021-08-14T04:50:49Z
| null |
MEMBER
| null |
xref #37564
#### Example
``` python
In [3]: import numpy as np
...: import pandas as pd
...: import pandas._testing as tm
...: from pandas.tests.io.pytables.common import ensure_clean_path
...:
...: df_with_missing = pd.DataFrame(
...: {"col1": [0, np.nan, 2], "col2": [1, np.nan, np.nan]}
...: )
...: df_without_missing = pd.DataFrame({"col1":[0, 2], "col2": [1, np.nan]})
...:
...: setup_path = '/tmp/store'
...: with ensure_clean_path(setup_path) as path:
...: df_with_missing.to_hdf(path, "df_with_missing", dropna=True, index=False, format="table")
...: reloaded = pd.read_hdf(path, "df_with_missing")
...: tm.assert_frame_equal(df_without_missing, reloaded)
...:
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-3-77cd279acb0b> in <module>
13 df_with_missing.to_hdf(path, "df_with_missing", dropna=True, index=False, format="table")
14 reloaded = pd.read_hdf(path, "df_with_missing")
---> 15 tm.assert_frame_equal(df_without_missing, reloaded)
16
[... skipping hidden 2 frame]
/workspaces/pandas/pandas/_libs/testing.pyx in pandas._libs.testing.assert_almost_equal()
44
45
---> 46 cpdef assert_almost_equal(a, b,
47 rtol=1.e-5, atol=1.e-8,
48 bint check_dtype=True,
/workspaces/pandas/pandas/_libs/testing.pyx in pandas._libs.testing.assert_almost_equal()
159 msg = (f"{obj} values are different "
160 f"({np.round(diff * 100.0 / na, 5)} %)")
--> 161 raise_assert_detail(obj, msg, lobj, robj, index_values=index_values)
162
163 return True
/workspaces/pandas/pandas/_testing.py in raise_assert_detail(obj, message, left, right, diff, index_values)
1053 msg += f"\n[diff]: {diff}"
1054
-> 1055 raise AssertionError(msg)
1056
1057
AssertionError: DataFrame.index are different
DataFrame.index values are different (50.0 %)
[left]: RangeIndex(start=0, stop=2, step=1)
[right]: Int64Index([0, 2], dtype='int64')
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37624/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37624/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37625
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37625/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37625/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37625/events
|
https://github.com/pandas-dev/pandas/issues/37625
| 735,975,251
|
MDU6SXNzdWU3MzU5NzUyNTE=
| 37,625
|
ENH: support none in header list
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7226316?v=4",
"events_url": "https://api.github.com/users/ShaneKao/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaneKao/followers",
"following_url": "https://api.github.com/users/ShaneKao/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaneKao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaneKao",
"id": 7226316,
"login": "ShaneKao",
"node_id": "MDQ6VXNlcjcyMjYzMTY=",
"organizations_url": "https://api.github.com/users/ShaneKao/orgs",
"received_events_url": "https://api.github.com/users/ShaneKao/received_events",
"repos_url": "https://api.github.com/users/ShaneKao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaneKao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaneKao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaneKao"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] |
open
| false
| null |
[] | null | 4
| 2020-11-04T09:57:27Z
| 2021-08-14T04:51:43Z
| null |
NONE
| null |
I have a file with two sheets, one has a header, and another hasn't.
The following code will raise `TypeError: list indices must be integers or slices, not NoneType.`
```python
# Your code here, if applicable
df = pd.read_excel(file_path, sheet_name=None, header=[0, 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/37625/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37625/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37626
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37626/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37626/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37626/events
|
https://github.com/pandas-dev/pandas/issues/37626
| 736,004,530
|
MDU6SXNzdWU3MzYwMDQ1MzA=
| 37,626
|
BUG: Collection of inconsistencies in .astype conversions
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61679398?v=4",
"events_url": "https://api.github.com/users/mlondschien/events{/privacy}",
"followers_url": "https://api.github.com/users/mlondschien/followers",
"following_url": "https://api.github.com/users/mlondschien/following{/other_user}",
"gists_url": "https://api.github.com/users/mlondschien/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mlondschien",
"id": 61679398,
"login": "mlondschien",
"node_id": "MDQ6VXNlcjYxNjc5Mzk4",
"organizations_url": "https://api.github.com/users/mlondschien/orgs",
"received_events_url": "https://api.github.com/users/mlondschien/received_events",
"repos_url": "https://api.github.com/users/mlondschien/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mlondschien/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mlondschien/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mlondschien"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] |
open
| false
| null |
[] | null | 5
| 2020-11-04T10:38:56Z
| 2021-09-08T07:14:15Z
| null |
CONTRIBUTOR
| null |
I have a use case where (automatic) casting between the following `pandas` dtypes is necessary;
`bool`, `boolean`, `int64`, `Int64`, `float64`, `object` and `string`.
Note that `boolean`, `Int64` and `string` are the new pandas 1.0 nullable dtypes.
The default approach for this would be `series.astype(target_dtype)`, for `target_dtype` one of the above dtypes as strings. This works (given no issues with missings) but for the inconsistencies below:
```python
In [1]: import pandas as pd
...: import numpy as np
```
#### `pd.NA` to `float`:
Summary: Casting `float(pd.NA)` raises a `TypeError` (as does casting `float(None)`). While `np.array([None, "1"]).astype("float")` works (and gets called [here](https://github.com/pandas-dev/pandas/blob/31db14c489224e92fcc8729ad44a2ebb5114db22/pandas/core/dtypes/cast.py#L1122)), the same call with `pd.NA` fails.
```python
In [2]: pd.Series(["1", "2", pd.NA], dtype="object").astype("float")
TypeError: float() argument must be a string or a number, not 'NAType'
In [3]: pd.Series(["1", "2", pd.NA], dtype="string").astype("float")
TypeError: float() argument must be a string or a number, not 'NAType'
In [4]: pd.Series(["1", "2", pd.NA], dtype="string").astype("category").astype("float") # magic workaround
Out[4]:
0 1.0
1 2.0
2 NaN
dtype: float64
```
Edit: Fixed with https://github.com/pandas-dev/pandas/pull/37974.
#### `object` / `string` to `Int64` (nullable)
Summary: `object` columns cannot be casted to `Int64`. Casting
- `object` -> `string` -> `Int64` works.
- `object` -> `float` -> `Int64` works if the data does not contain `pd.NA` (see above)
- `object` -> `int64` -> `Int64` works if the data does not contain missings.
```python
In [5]: pd.Series(["1", "2", "3"]).astype("Int64")
TypeError: object cannot be converted to an IntegerDtype
In [5]: pd.Series(["1", "2", "3"], dtype="string").astype("Int64")
Out[5]:
0 1
1 2
2 3
dtype: Int64
In [6]: pd.Series(["1", "2", "3"]).astype("int").astype("Int64")
Out[6]:
0 1
1 2
2 3
dtype: Int64
In [7]: pd.Series(["1", "2", None]).astype("int").astype("Int64") # int columns cannot contain missings
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
In [8]: pd.Series(["1", "2", None]).astype("float").astype("Int64") # magic workaround
Out[8]:
0 1
1 2
2 <NA>
dtype: Int64
In [9]: pd.Series(["1", "2", pd.NA], dtype="object").astype("float").astype("Int64") # see pd.NA -> float
TypeError: float() argument must be a string or a number, not 'NAType'
In [10]: pd.Series(["1", "2", pd.NA], dtype="object").astype("string").astype("Int64")
Out[10]:
0 1
1 2
2 <NA>
dtype: Int64
```
Related: https://github.com/pandas-dev/pandas/issues/25472#issuecomment-630752912
#### `string` / `object` to `bool` or `boolean`
Summary: Casting `string` or `object` columns to `bool` or `boolean` behaves strangely. I am not sure what the expected behaviour for `string` / `object` to `bool` / `boolean` should be. It would be nice to have consistent behaviour.
- `string` / `object` -> `bool` works if there are no missings, but yields only `True`
- `string` / `object` -> `boolean` raises
```python
In [11]: pd.Series(["True", "False", "bogus"], dtype="string").astype("bool") # everything is True
Out[11]:
0 True
1 True
2 True
dtype: bool
In [12]: pd.Series(["True", "False", "bogus"], dtype="object").astype("bool")
Out[12]:
0 True
1 True
2 True
dtype: bool
In [13]: pd.Series(["True", "False", "bogus"], dtype="string").astype("boolean")
TypeError: data type not understood
In [14]: pd.Series(["True", "False", "bogus"], dtype="object").astype("boolean")
TypeError: Need to pass bool-like values
```
#### `int` (non-nullable) to `boolean`
Summary: Casting from (non-nullable) `int64` to (nullable) `boolean` raises.
- `int64` -> `Int64` -> `boolean` works
- `int64` -> `bool` -> `boolean` works as long as there are no missings.
```python
In [15] pd.Series([-1, 0, 1], dtype="int").astype("boolean")
TypeError: Need to pass bool-like values
In [16]: pd.Series([-1, 0, 1], dtype="Int64").astype("boolean")
Out[16]:
0 True
1 False
2 True
dtype: boolean
In [17]: pd.Series([-1, 0, 1], dtype="int").astype("bool").astype("boolean")
Out[17]:
0 True
1 False
2 True
dtype: boolean
```
Related: https://github.com/pandas-dev/pandas/issues/37614
While there exist separate issues for the first and last report, I gathered that it might be nice to have a collection of these somewhere, which I did not find.
- [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.
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit : 15f843ab102d7a0cd7f1c7870dfec72d0e28d252
python : 3.8.6.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-52-generic
Version : #57~18.04.1-Ubuntu SMP Thu Oct 15 14:04:49 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.0.dev0+1059.g15f843ab1.dirty
numpy : 1.18.5
pytz : 2020.4
dateutil : 2.8.1
pip : 20.2.4
setuptools : 49.6.0.post20201009
Cython : 0.29.21
pytest : 5.4.3
hypothesis : 5.41.1
sphinx : 3.1.1
blosc : None
feather : None
xlsxwriter : 1.3.7
lxml.etree : 4.6.1
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : 1.3.2
fsspec : 0.8.4
fastparquet : 0.4.1
gcsfs : 0.7.1
matplotlib : 3.2.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : 2.0.0
pyxlsb : None
s3fs : 0.4.2
scipy : 1.5.3
sqlalchemy : 1.3.20
tables : 3.6.1
tabulate : 0.8.7
xarray : 0.16.1
xlrd : 1.2.0
xlwt : 1.3.0
numba : 0.51.2
```
</details>
|
{
"+1": 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/37626/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37626/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37627
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37627/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37627/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37627/events
|
https://github.com/pandas-dev/pandas/pull/37627
| 736,040,144
|
MDExOlB1bGxSZXF1ZXN0NTE1MzIzMTUw
| 37,627
|
ENH: named agg with multiple columns
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/34067903?v=4",
"events_url": "https://api.github.com/users/erfannariman/events{/privacy}",
"followers_url": "https://api.github.com/users/erfannariman/followers",
"following_url": "https://api.github.com/users/erfannariman/following{/other_user}",
"gists_url": "https://api.github.com/users/erfannariman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/erfannariman",
"id": 34067903,
"login": "erfannariman",
"node_id": "MDQ6VXNlcjM0MDY3OTAz",
"organizations_url": "https://api.github.com/users/erfannariman/orgs",
"received_events_url": "https://api.github.com/users/erfannariman/received_events",
"repos_url": "https://api.github.com/users/erfannariman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/erfannariman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/erfannariman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/erfannariman"
}
|
[
{
"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"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] |
open
| false
| null |
[] | null | 10
| 2020-11-04T11:30:52Z
| 2021-09-12T11:45:45Z
| null |
CONTRIBUTOR
| null |
- [ ] closes #29268
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+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/37627/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37627/timeline
| null | 1
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37627.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37627",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/37627.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37627"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37628
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37628/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37628/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37628/events
|
https://github.com/pandas-dev/pandas/pull/37628
| 736,152,016
|
MDExOlB1bGxSZXF1ZXN0NTE1NDE1MzA5
| 37,628
|
Backport PR #37461 on branch 1.1.x: BUG: Metadata propagation for groupby iterator
|
{
"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": "56efc9",
"default": false,
"description": "_metadata, .attrs",
"id": 1539579994,
"name": "metadata",
"node_id": "MDU6TGFiZWwxNTM5NTc5OTk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/metadata"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-08T12:11:38Z",
"closed_issues": 81,
"created_at": "2020-10-29T13:43:23Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-12-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/79",
"id": 6047124,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79/labels",
"node_id": "MDk6TWlsZXN0b25lNjA0NzEyNA==",
"number": 79,
"open_issues": 0,
"state": "closed",
"title": "1.1.5",
"updated_at": "2020-12-08T12:11:38Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79"
}
| 0
| 2020-11-04T14:18:37Z
| 2020-11-04T15:54:30Z
| 2020-11-04T15:54:21Z
|
MEMBER
| null |
Backport PR #37461
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37628/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37628/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37628.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37628",
"merged_at": "2020-11-04T15:54:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37628.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37628"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37629
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37629/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37629/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37629/events
|
https://github.com/pandas-dev/pandas/issues/37629
| 736,156,646
|
MDU6SXNzdWU3MzYxNTY2NDY=
| 37,629
|
BUG: Regression in 1.1.0: ValueError when assigning tuple
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1716922?v=4",
"events_url": "https://api.github.com/users/zeeMonkeez/events{/privacy}",
"followers_url": "https://api.github.com/users/zeeMonkeez/followers",
"following_url": "https://api.github.com/users/zeeMonkeez/following{/other_user}",
"gists_url": "https://api.github.com/users/zeeMonkeez/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zeeMonkeez",
"id": 1716922,
"login": "zeeMonkeez",
"node_id": "MDQ6VXNlcjE3MTY5MjI=",
"organizations_url": "https://api.github.com/users/zeeMonkeez/orgs",
"received_events_url": "https://api.github.com/users/zeeMonkeez/received_events",
"repos_url": "https://api.github.com/users/zeeMonkeez/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zeeMonkeez/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zeeMonkeez/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zeeMonkeez"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "f2f989",
"default": false,
"description": "Data where the values are collections (lists, sets, dicts, objects, etc.).",
"id": 2189479765,
"name": "Nested Data",
"node_id": "MDU6TGFiZWwyMTg5NDc5NzY1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Nested%20Data"
}
] |
open
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 7
| 2020-11-04T14:24:38Z
| 2021-08-14T04:52:45Z
| null |
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import pandas as pd
d = pd.DataFrame({'a':[1,1,2,1], 'b':[(1,1,0)]*4})
d.loc[d['a']==1, 'b'] = [[(0, 0, 1)]]
```
```python-traceback
Traceback (most recent call last):
File "/opt/anaconda3/envs/test/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3418, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-7-9e18787827bf>", line 1, in <module>
d.loc[d['a']==1, 'b'] = [[(0, 0, 1)]]
File "/opt/anaconda3/envs/test/lib/python3.8/site-packages/pandas/core/indexing.py", line 670, in __setitem__
iloc._setitem_with_indexer(indexer, value)
File "/opt/anaconda3/envs/test/lib/python3.8/site-packages/pandas/core/indexing.py", line 1666, in _setitem_with_indexer
raise ValueError(
ValueError: cannot set using a multi-index selection indexer with a different length than the value
```
And similarly:
```python
import pandas as pd
d = pd.DataFrame({'a':[1,1,2,1], 'b':[(1,1,0)]*4})
ixs = [0,1,3]
vals = [[(0,0,1)]*len(ixs)]
d.loc[ixs,['b']] = vals
```
```python-traceback
Traceback (most recent call last):
File "/opt/anaconda3/envs/test/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3418, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-8-73385df8ecbc>", line 1, in <module>
d.loc[ixs,['b']] = vals
File "/opt/anaconda3/envs/test/lib/python3.8/site-packages/pandas/core/indexing.py", line 670, in __setitem__
iloc._setitem_with_indexer(indexer, value)
File "/opt/anaconda3/envs/test/lib/python3.8/site-packages/pandas/core/indexing.py", line 1666, in _setitem_with_indexer
raise ValueError(
ValueError: cannot set using a multi-index selection indexer with a different length than the value
```
Also see related [SO question](https://stackoverflow.com/questions/59922621/set-pandas-dataframe-entries-by-boolean-index-to-tuple-values).
#### Problem description
The code posted above works until pandas version 1.0.5, and fails in 1.1.0. I checked deprecation notes for 1.1.0 and could not identify if this is expected behaviour now.
#### Expected Output
After both assignment operations, `d` should have the following contents:
```
>>> print(d)
a b
0 1 (0, 0, 1)
1 1 (0, 0, 1)
2 2 (1, 1, 0)
3 1 (0, 0, 1)
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : db08276bc116c438d3fdee492026f8223584c477
python : 3.8.5.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.3
numpy : 1.19.4
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.4
setuptools : 50.3.0.post20201103
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.19.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.2
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.0
sqlalchemy : None
tables : None
tabulate : 0.8.7
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37629/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37629/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37630
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37630/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37630/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37630/events
|
https://github.com/pandas-dev/pandas/pull/37630
| 736,168,003
|
MDExOlB1bGxSZXF1ZXN0NTE1NDI4NzA2
| 37,630
|
DOC: Fix typo
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/19514231?v=4",
"events_url": "https://api.github.com/users/MicaelJarniac/events{/privacy}",
"followers_url": "https://api.github.com/users/MicaelJarniac/followers",
"following_url": "https://api.github.com/users/MicaelJarniac/following{/other_user}",
"gists_url": "https://api.github.com/users/MicaelJarniac/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MicaelJarniac",
"id": 19514231,
"login": "MicaelJarniac",
"node_id": "MDQ6VXNlcjE5NTE0MjMx",
"organizations_url": "https://api.github.com/users/MicaelJarniac/orgs",
"received_events_url": "https://api.github.com/users/MicaelJarniac/received_events",
"repos_url": "https://api.github.com/users/MicaelJarniac/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MicaelJarniac/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MicaelJarniac/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MicaelJarniac"
}
|
[
{
"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-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-11-04T14:39:25Z
| 2020-11-04T16:58:27Z
| 2020-11-04T16:53:39Z
|
CONTRIBUTOR
| null |
I'm not entirely sure about this one, but "If an ndarray is passed, the values are used as-is determine the groups." does sound odd to me, so I do believe it was missing the "to".
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37630/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37630/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37630.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37630",
"merged_at": "2020-11-04T16:53:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37630.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37630"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37631
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37631/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37631/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37631/events
|
https://github.com/pandas-dev/pandas/issues/37631
| 736,191,724
|
MDU6SXNzdWU3MzYxOTE3MjQ=
| 37,631
|
BUG: Regression in 1.1.0. "invalid slicing for a 1-ndim ExtensionArray"
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/190342?v=4",
"events_url": "https://api.github.com/users/buhrmann/events{/privacy}",
"followers_url": "https://api.github.com/users/buhrmann/followers",
"following_url": "https://api.github.com/users/buhrmann/following{/other_user}",
"gists_url": "https://api.github.com/users/buhrmann/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/buhrmann",
"id": 190342,
"login": "buhrmann",
"node_id": "MDQ6VXNlcjE5MDM0Mg==",
"organizations_url": "https://api.github.com/users/buhrmann/orgs",
"received_events_url": "https://api.github.com/users/buhrmann/received_events",
"repos_url": "https://api.github.com/users/buhrmann/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/buhrmann/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/buhrmann/subscriptions",
"type": "User",
"url": "https://api.github.com/users/buhrmann"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-08T12:11:38Z",
"closed_issues": 81,
"created_at": "2020-10-29T13:43:23Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-12-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/79",
"id": 6047124,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79/labels",
"node_id": "MDk6TWlsZXN0b25lNjA0NzEyNA==",
"number": 79,
"open_issues": 0,
"state": "closed",
"title": "1.1.5",
"updated_at": "2020-12-08T12:11:38Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79"
}
| 6
| 2020-11-04T15:09:52Z
| 2020-11-09T00:38:08Z
| 2020-11-09T00:38:08Z
|
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
s1 = pd.Series(list("abc")).astype("category").iloc[[0]]
s2 = pickle.loads(pickle.dumps(s1))
print(s1.dropna())
print(s2.dropna())
```
```bash
0 a
dtype: category
Categories (3, object): ['a', 'b', 'c']
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-1-c7b1204ccdb7> in <module>
6 s2 = pickle.loads(pickle.dumps(s1))
7 print(s1.dropna())
----> 8 print(s2.dropna())
~/anaconda/envs/grapy/lib/python3.7/site-packages/pandas/core/series.py in dropna(self, axis, inplace, how)
4883
4884 if self._can_hold_na:
-> 4885 result = remove_na_arraylike(self)
4886 if inplace:
4887 self._update_inplace(result)
~/anaconda/envs/grapy/lib/python3.7/site-packages/pandas/core/dtypes/missing.py in remove_na_arraylike(arr)
564 """
565 if is_extension_array_dtype(arr):
--> 566 return arr[notna(arr)]
567 else:
568 return arr[notna(np.asarray(arr))]
~/anaconda/envs/grapy/lib/python3.7/site-packages/pandas/core/series.py in __getitem__(self, key)
904 key = check_bool_indexer(self.index, key)
905 key = np.asarray(key, dtype=bool)
--> 906 return self._get_values(key)
907
908 return self._get_with(key)
~/anaconda/envs/grapy/lib/python3.7/site-packages/pandas/core/series.py in _get_values(self, indexer)
966 def _get_values(self, indexer):
967 try:
--> 968 return self._constructor(self._mgr.get_slice(indexer)).__finalize__(self,)
969 except ValueError:
970 # mpl compat if we look up e.g. ser[:, np.newaxis];
~/anaconda/envs/grapy/lib/python3.7/site-packages/pandas/core/internals/managers.py in get_slice(self, slobj, axis)
1559
1560 blk = self._block
-> 1561 array = blk._slice(slobj)
1562 block = blk.make_block_same_class(array, placement=slice(0, len(array)))
1563 return type(self)(block, self.index[slobj])
~/anaconda/envs/grapy/lib/python3.7/site-packages/pandas/core/internals/blocks.py in _slice(self, slicer)
1756 if not isinstance(first, slice):
1757 raise AssertionError(
-> 1758 "invalid slicing for a 1-ndim ExtensionArray", first
1759 )
1760 # GH#32959 only full-slicers along fake-dim0 are valid
AssertionError: ('invalid slicing for a 1-ndim ExtensionArray', array([ True]))
```
#### Problem description
Not sure what changes in the serialization roundtrip through pickle, but it seems the copied Series cannot be indexed with a Boolean slice anymore, tripping up `dropna()` as a result. The following code more directly exposes the error:
```python
s1 = pd.Series(list("abc")).astype("category").iloc[[0]]
s2 = pickle.loads(pickle.dumps(s1))
s2[[True]]
```
The error happens e.g. when processing multiple Series in parallel (triggering serialization with pickle), and when a categorical Series has been filtered down to a single row. With another dtype, or more than one row, this error doesn't get triggered.
The regression must been introduced in version 1.1.0, as in 1.0.5 the above code works as expected.
#### Expected Output
Behaviour of slicing, `dropna` etc. should be same before and after pickling a Series, and independent of the number of rows.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 67a3d4241ab84419856b84fc3ebc9abcbe66c6b3
python : 3.7.6.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.UTF-8
pandas : 1.1.4
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.0
pip : 20.0.2
setuptools : 46.1.1.post20200322
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 : 0.9.3
psycopg2 : 2.8.4 (dt dec pq3 ext lo64)
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : 4.9.1
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.2.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 1.0.0
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.15
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
numba : 0.46.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37631/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37631/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37632
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37632/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37632/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37632/events
|
https://github.com/pandas-dev/pandas/pull/37632
| 736,225,643
|
MDExOlB1bGxSZXF1ZXN0NTE1NDc2NTEz
| 37,632
|
Added dataclass into dataframe API reference
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10372220?v=4",
"events_url": "https://api.github.com/users/taytzehao/events{/privacy}",
"followers_url": "https://api.github.com/users/taytzehao/followers",
"following_url": "https://api.github.com/users/taytzehao/following{/other_user}",
"gists_url": "https://api.github.com/users/taytzehao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/taytzehao",
"id": 10372220,
"login": "taytzehao",
"node_id": "MDQ6VXNlcjEwMzcyMjIw",
"organizations_url": "https://api.github.com/users/taytzehao/orgs",
"received_events_url": "https://api.github.com/users/taytzehao/received_events",
"repos_url": "https://api.github.com/users/taytzehao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/taytzehao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/taytzehao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/taytzehao"
}
|
[
{
"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-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-11-04T15:53:54Z
| 2020-11-04T17:34:04Z
| 2020-11-04T17:26:23Z
|
CONTRIBUTOR
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Added dataclass constructor for dataframe into the Pandas in pandas/init.py line 363 and 426.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37632/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37632/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37632.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37632",
"merged_at": "2020-11-04T17:26:23Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37632.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37632"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37633
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37633/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37633/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37633/events
|
https://github.com/pandas-dev/pandas/pull/37633
| 736,265,017
|
MDExOlB1bGxSZXF1ZXN0NTE1NTA5MzAw
| 37,633
|
Backport PR #37613 on branch 1.1.x: BUG: read-only values in cython funcs
|
{
"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": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-08T12:11:38Z",
"closed_issues": 81,
"created_at": "2020-10-29T13:43:23Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-12-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/79",
"id": 6047124,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79/labels",
"node_id": "MDk6TWlsZXN0b25lNjA0NzEyNA==",
"number": 79,
"open_issues": 0,
"state": "closed",
"title": "1.1.5",
"updated_at": "2020-12-08T12:11:38Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79"
}
| 5
| 2020-11-04T16:46:33Z
| 2020-12-05T17:18:21Z
| 2020-12-05T17:18:21Z
|
MEMBER
| null |
Backport PR #37613
will update milestones on PR and associated issues once this is green-ish. Will also need to update release notes on master. (move from 1.2 to 1.1.5)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37633/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37633/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37633.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37633",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/37633.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37633"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37634
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37634/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37634/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37634/events
|
https://github.com/pandas-dev/pandas/pull/37634
| 736,335,378
|
MDExOlB1bGxSZXF1ZXN0NTE1NTY3NDM0
| 37,634
|
TST/REF: collect tests for get_numeric_data
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-11-04T18:32:46Z
| 2020-11-06T00:27:33Z
| 2020-11-06T00:26:51Z
|
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/37634/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37634/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37634.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37634",
"merged_at": "2020-11-06T00:26:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37634.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37634"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/37635
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37635/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37635/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37635/events
|
https://github.com/pandas-dev/pandas/issues/37635
| 736,377,188
|
MDU6SXNzdWU3MzYzNzcxODg=
| 37,635
|
BUG: pivot() modifies arguments
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/37048747?v=4",
"events_url": "https://api.github.com/users/Jacob-Stevens-Haas/events{/privacy}",
"followers_url": "https://api.github.com/users/Jacob-Stevens-Haas/followers",
"following_url": "https://api.github.com/users/Jacob-Stevens-Haas/following{/other_user}",
"gists_url": "https://api.github.com/users/Jacob-Stevens-Haas/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Jacob-Stevens-Haas",
"id": 37048747,
"login": "Jacob-Stevens-Haas",
"node_id": "MDQ6VXNlcjM3MDQ4NzQ3",
"organizations_url": "https://api.github.com/users/Jacob-Stevens-Haas/orgs",
"received_events_url": "https://api.github.com/users/Jacob-Stevens-Haas/received_events",
"repos_url": "https://api.github.com/users/Jacob-Stevens-Haas/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Jacob-Stevens-Haas/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Jacob-Stevens-Haas/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Jacob-Stevens-Haas"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 5
| 2020-11-04T19:44:14Z
| 2020-11-14T02:21:09Z
| 2020-11-14T02:21:09Z
|
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.
#### Minimal Working Example
One of the documentation examples, slightly modified:
```python
import pandas as pd
df = pd.DataFrame({
"lev1": [1, 1, 1, 2, 2, 2],
"lev2": [1, 1, 2, 1, 1, 2],
"lev3": [1, 2, 1, 2, 1, 2],
"lev4": [1, 2, 3, 4, 5, 6],
"values": [0, 1, 2, 3, 4, 5]})
a = ["lev1", "lev2"]
b=["lev3"]
df.pivot(index=a, columns=b)
print(a)
```
Displays:
```
['lev1', 'lev2', 'lev3']
```
#### Problem description
I would expect that my arguments passed to `.pivot` remain unchanged. I understand that lists, being mutable, can be modified by a function when they are used as arguments. I also understand that I can pass a set here instead of a list to keep it from being modified. However, I think it's reasonable to expect functions to be side-effect free in this case, especially when the documentation asks for a list and does not mention side effects. (FWIW, this behavior does not occur if I set the `values=` parameter).
The issue cropped up when I wanted to `.pivot` multiple DataFrames using the same index. To do so, I created a partial function of `.pivot` with an anonymous list as the `index=` paramter. Here's an MWE using the dataframe from above:
```python
from functools import partial
alt_pivot = lambda df, index, columns: df.pivot(index=index, columns=columns)
ppivot = partial(alt_pivot, index=["lev1", "lev2"])
print(ppivot)
ppivot(df, columns=b)
print(ppivot)
```
produces the output:
```
functools.partial(<function <lambda> at 0x00000159C45EAEE8>, index=['lev1', 'lev2'])
functools.partial(<function <lambda> at 0x00000159C45EAEE8>, index=['lev1', 'lev2', 'lev3'])
```
#### Expected Output
In the MWE above,
```python
print(a)
```
produces
```
['lev1', 'lev2']
```
#### Output of ``pd.show_versions()``
(Version in my project. Confirmed same behavior in `pandas==1.1.4` and `master` branch.)
<details>
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.7.7.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.16299
machine : AMD64
processor : Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.1.0
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.2
setuptools : 41.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : 3.2.0
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.17.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : 1.3.19
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37635/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37635/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37636
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37636/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37636/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37636/events
|
https://github.com/pandas-dev/pandas/pull/37636
| 736,409,515
|
MDExOlB1bGxSZXF1ZXN0NTE1NjI4MzE4
| 37,636
|
DOC: Fix typo
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/19514231?v=4",
"events_url": "https://api.github.com/users/MicaelJarniac/events{/privacy}",
"followers_url": "https://api.github.com/users/MicaelJarniac/followers",
"following_url": "https://api.github.com/users/MicaelJarniac/following{/other_user}",
"gists_url": "https://api.github.com/users/MicaelJarniac/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MicaelJarniac",
"id": 19514231,
"login": "MicaelJarniac",
"node_id": "MDQ6VXNlcjE5NTE0MjMx",
"organizations_url": "https://api.github.com/users/MicaelJarniac/orgs",
"received_events_url": "https://api.github.com/users/MicaelJarniac/received_events",
"repos_url": "https://api.github.com/users/MicaelJarniac/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MicaelJarniac/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MicaelJarniac/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MicaelJarniac"
}
|
[
{
"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-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-11-04T20:41:02Z
| 2020-11-05T14:00:30Z
| 2020-11-05T12:35:47Z
|
CONTRIBUTOR
| null |
"columns(s)" sounded odd, I believe it was supposed to be just "column(s)".
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37636/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37636/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37636.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37636",
"merged_at": "2020-11-05T12:35:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37636.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37636"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37637
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37637/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37637/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37637/events
|
https://github.com/pandas-dev/pandas/pull/37637
| 736,498,840
|
MDExOlB1bGxSZXF1ZXN0NTE1NzAyNjMw
| 37,637
|
DOC: test organization
|
{
"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": "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-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"
}
| 3
| 2020-11-04T23:49:27Z
| 2020-11-11T15:35:04Z
| 2020-11-11T00:19:19Z
|
MEMBER
| null |
Documenting the MO behind the test organization we've been doing.
1) I expect this is not valid rst ATM
2) The style does not match the rest of the docs, so probably needs a re-write.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37637/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37637/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37637.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37637",
"merged_at": "2020-11-11T00:19:19Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37637.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37637"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37638
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37638/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37638/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37638/events
|
https://github.com/pandas-dev/pandas/pull/37638
| 736,567,839
|
MDExOlB1bGxSZXF1ZXN0NTE1NzU4NDcz
| 37,638
|
TST/REF: collect indexing tests by method
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "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-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-11-05T02:54:40Z
| 2020-11-06T00:27:00Z
| 2020-11-06T00:26:14Z
|
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/37638/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37638/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37638.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37638",
"merged_at": "2020-11-06T00:26:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37638.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37638"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/37639
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37639/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37639/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37639/events
|
https://github.com/pandas-dev/pandas/pull/37639
| 736,573,305
|
MDExOlB1bGxSZXF1ZXN0NTE1NzYyODEz
| 37,639
|
REF: move get_filepath_buffer into get_handle
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6618166?v=4",
"events_url": "https://api.github.com/users/twoertwein/events{/privacy}",
"followers_url": "https://api.github.com/users/twoertwein/followers",
"following_url": "https://api.github.com/users/twoertwein/following{/other_user}",
"gists_url": "https://api.github.com/users/twoertwein/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/twoertwein",
"id": 6618166,
"login": "twoertwein",
"node_id": "MDQ6VXNlcjY2MTgxNjY=",
"organizations_url": "https://api.github.com/users/twoertwein/orgs",
"received_events_url": "https://api.github.com/users/twoertwein/received_events",
"repos_url": "https://api.github.com/users/twoertwein/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/twoertwein/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/twoertwein/subscriptions",
"type": "User",
"url": "https://api.github.com/users/twoertwein"
}
|
[
{
"color": "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": "06909A",
"default": false,
"description": "IO issues that don't fit into a more specific label",
"id": 2301354,
"name": "IO Data",
"node_id": "MDU6TGFiZWwyMzAxMzU0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 7
| 2020-11-05T03:10:46Z
| 2020-12-11T04:34:31Z
| 2020-11-13T13:39:29Z
|
CONTRIBUTOR
| null |
- [x] closes #33987
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
This PR makes `get_filepath_buffer` a private function and is called inside `get_handle` - one function to rule all of IO ;)
This PR will make it easier for future PRs to make the IO-related interface of `read/to_*` more consistent as most of them should support compression/memory mapping (for reading)/(binary) file handles/storage options.
Notes to keep track of future follow-up PRs:
- context manager for `get_handle`
- `storage_options` for `to_excel`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37639/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37639/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37639.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37639",
"merged_at": "2020-11-13T13:39:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37639.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37639"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37640
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37640/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37640/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37640/events
|
https://github.com/pandas-dev/pandas/pull/37640
| 736,576,519
|
MDExOlB1bGxSZXF1ZXN0NTE1NzY1NDYy
| 37,640
|
REF: de-duplicate _validate_insert_value with _validate_scalar
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-11-05T03:19:43Z
| 2020-11-06T00:39:03Z
| 2020-11-06T00:31:07Z
|
MEMBER
| null |
There is only one place where `_validate_insert_value` isnt identical to `_validate_scalar`, and that is in `DatetimeLikeArrayMixin._validate_scalar`, which ATM does not unbox (which all the other `_validate_scalar` methods do). This updates `_validate_scalar` to unbox.
If we stopped there, `TimedeltaIndex.get_loc` would take a pretty significant performance hit, so I added a `unbox=True` kwarg to `_validate_scalar` that TDI.get_loc uses to keep perf flat.
Made `_validate_scalar` keyword-only past the first (non-self) argument.
Last, renamed `Index._validate_scalar` to `Index._require_scalar` to disambiguate the names. (one of the two uses of `Index._validate_scalar` is wrong and will be removed, but thats a whole different can of worms)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37640/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37640/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37640.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37640",
"merged_at": "2020-11-06T00:31:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37640.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37640"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37641
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37641/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37641/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37641/events
|
https://github.com/pandas-dev/pandas/issues/37641
| 736,587,247
|
MDU6SXNzdWU3MzY1ODcyNDc=
| 37,641
|
BUG: RollingGroupby duplicates columns in index even with group_keys=False
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/51399800?v=4",
"events_url": "https://api.github.com/users/venaturum/events{/privacy}",
"followers_url": "https://api.github.com/users/venaturum/followers",
"following_url": "https://api.github.com/users/venaturum/following{/other_user}",
"gists_url": "https://api.github.com/users/venaturum/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/venaturum",
"id": 51399800,
"login": "venaturum",
"node_id": "MDQ6VXNlcjUxMzk5ODAw",
"organizations_url": "https://api.github.com/users/venaturum/orgs",
"received_events_url": "https://api.github.com/users/venaturum/received_events",
"repos_url": "https://api.github.com/users/venaturum/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/venaturum/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/venaturum/subscriptions",
"type": "User",
"url": "https://api.github.com/users/venaturum"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-08T12:11:38Z",
"closed_issues": 81,
"created_at": "2020-10-29T13:43:23Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-12-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/79",
"id": 6047124,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79/labels",
"node_id": "MDk6TWlsZXN0b25lNjA0NzEyNA==",
"number": 79,
"open_issues": 0,
"state": "closed",
"title": "1.1.5",
"updated_at": "2020-12-08T12:11:38Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79"
}
| 2
| 2020-11-05T03:48:46Z
| 2020-11-09T18:56:37Z
| 2020-11-09T18:56:37Z
|
CONTRIBUTOR
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
arrays = [['val1', 'val1', 'val2'], ['val1', 'val1', 'val2']]
index = pd.MultiIndex.from_arrays(arrays, names=('idx1', 'idx2'))
s = pd.Series([1, 2, 3], index=index)
print(
s.groupby(["idx1", "idx2"], group_keys=False).rolling(1).mean()
)
```
#### Problem description
the group_keys parameter in Seried.groupby() is broken since 1.1.0 when using .rolling()
It does not seem to be an issue if another function instead of *rolling* is used, eg
```python
s.groupby(["idx1", "idx2"], group_keys=False).mean()
```
In pandas=1.1.{0,1} the output is
idx1 idx2
val1 val1 (val1, val1) 1.0
val1 (val1, val1) 2.0
val2 val2 (val2, val1) 3.0
In pandas=1.1.{2,3,4} the output is
idx1 idx2 idx1 idx2
val1 val1 val1 val1 1.0
val1 2.0
val2 val2 val2 val2 3.0
#### Expected Output (as per pandas 1.0.*)
idx1 idx2
val1 val1 1.0
val1 2.0
val2 val2 3.0
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2ca0a2665b2d169c97de87b8e778dbed86aea07
python : 3.6.7.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.17134
machine : AMD64
processor : Intel64 Family 6 Model 63 Stepping 2, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.1.1
numpy : 1.16.1
pytz : 2018.9
dateutil : 2.8.0
pip : 10.0.1
setuptools : 39.0.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.3.0
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10
IPython : 7.2.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : 2.6.0
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37641/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37641/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37642
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37642/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37642/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37642/events
|
https://github.com/pandas-dev/pandas/issues/37642
| 736,590,838
|
MDU6SXNzdWU3MzY1OTA4Mzg=
| 37,642
|
BUG: DataFrame.to_dict(orient="records") does not return native types with frame constructed from pyarrow Scalars
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4",
"events_url": "https://api.github.com/users/arw2019/events{/privacy}",
"followers_url": "https://api.github.com/users/arw2019/followers",
"following_url": "https://api.github.com/users/arw2019/following{/other_user}",
"gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/arw2019",
"id": 48889395,
"login": "arw2019",
"node_id": "MDQ6VXNlcjQ4ODg5Mzk1",
"organizations_url": "https://api.github.com/users/arw2019/orgs",
"received_events_url": "https://api.github.com/users/arw2019/received_events",
"repos_url": "https://api.github.com/users/arw2019/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arw2019/subscriptions",
"type": "User",
"url": "https://api.github.com/users/arw2019"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
open
| false
| null |
[] | null | 3
| 2020-11-05T03:59:54Z
| 2020-11-06T23:55:19Z
| null |
MEMBER
| null |
On 1.2 master:
```python
In [15]: import pandas as pd
...: import pyarrow as pa
...:
...: df = pd.DataFrame({'a': pa.scalar(7)}, index=['a'])
...: print(type(df.to_dict(orient="records")[0]['a']))
...:
<class 'pyarrow.lib.Int64Scalar'>
```
This is inconsistent with the corresponding op for NumPy backed types (xref #37571)
```
In [13]: import pandas as pd
...: import numpy as np
...:
...: df = pd.DataFrame({'a': np.int(7)}, index=['a'])
...: print(type(df.to_dict(orient="records")[0]['a']))
...:
<class 'int'>
```
In general we'd like `to_dict` to return Python native types if possible.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37642/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37642/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37643
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37643/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37643/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37643/events
|
https://github.com/pandas-dev/pandas/issues/37643
| 736,600,558
|
MDU6SXNzdWU3MzY2MDA1NTg=
| 37,643
|
DEPR: inplace dtype-changing methods on Categorical
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16047980?v=4",
"events_url": "https://api.github.com/users/OlehKSS/events{/privacy}",
"followers_url": "https://api.github.com/users/OlehKSS/followers",
"following_url": "https://api.github.com/users/OlehKSS/following{/other_user}",
"gists_url": "https://api.github.com/users/OlehKSS/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/OlehKSS",
"id": 16047980,
"login": "OlehKSS",
"node_id": "MDQ6VXNlcjE2MDQ3OTgw",
"organizations_url": "https://api.github.com/users/OlehKSS/orgs",
"received_events_url": "https://api.github.com/users/OlehKSS/received_events",
"repos_url": "https://api.github.com/users/OlehKSS/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/OlehKSS/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OlehKSS/subscriptions",
"type": "User",
"url": "https://api.github.com/users/OlehKSS"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/16047980?v=4",
"events_url": "https://api.github.com/users/OlehKSS/events{/privacy}",
"followers_url": "https://api.github.com/users/OlehKSS/followers",
"following_url": "https://api.github.com/users/OlehKSS/following{/other_user}",
"gists_url": "https://api.github.com/users/OlehKSS/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/OlehKSS",
"id": 16047980,
"login": "OlehKSS",
"node_id": "MDQ6VXNlcjE2MDQ3OTgw",
"organizations_url": "https://api.github.com/users/OlehKSS/orgs",
"received_events_url": "https://api.github.com/users/OlehKSS/received_events",
"repos_url": "https://api.github.com/users/OlehKSS/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/OlehKSS/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OlehKSS/subscriptions",
"type": "User",
"url": "https://api.github.com/users/OlehKSS"
}
] | null | 13
| 2020-11-05T04:26:23Z
| 2021-10-02T04:09:06Z
| 2021-10-02T04:09:05Z
|
MEMBER
| null |
- [x] `Categorical.remove_unused_categories` https://github.com/pandas-dev/pandas/pull/37918
- [x] `Cateogrical.remove_categories` #37981
- [x] `Categorical.add_categories` https://github.com/pandas-dev/pandas/pull/41118
- [x] `Categorical.reorder_categories` https://github.com/pandas-dev/pandas/pull/41133
- [x] `Categorical.rename_categories` #41186
- [x] `Categorical.set_categories` https://github.com/pandas-dev/pandas/pull/41307
The ability to alter an existing array's dtype is a footgun. We can return a new object without having to make a copy.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37643/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37643/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37644
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37644/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37644/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37644/events
|
https://github.com/pandas-dev/pandas/pull/37644
| 736,783,823
|
MDExOlB1bGxSZXF1ZXN0NTE1OTM3MjI0
| 37,644
|
BUG: preserve fold in Timestamp.replace
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/23253999?v=4",
"events_url": "https://api.github.com/users/AlexKirko/events{/privacy}",
"followers_url": "https://api.github.com/users/AlexKirko/followers",
"following_url": "https://api.github.com/users/AlexKirko/following{/other_user}",
"gists_url": "https://api.github.com/users/AlexKirko/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AlexKirko",
"id": 23253999,
"login": "AlexKirko",
"node_id": "MDQ6VXNlcjIzMjUzOTk5",
"organizations_url": "https://api.github.com/users/AlexKirko/orgs",
"received_events_url": "https://api.github.com/users/AlexKirko/received_events",
"repos_url": "https://api.github.com/users/AlexKirko/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AlexKirko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AlexKirko/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AlexKirko"
}
|
[
{
"color": "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": "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"
}
| 5
| 2020-11-05T09:54:34Z
| 2020-11-09T13:10:19Z
| 2020-11-08T02:22:48Z
|
MEMBER
| null |
- [X] closes #37610
- [X] 1 tests added / 1 passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
## Problem
We currently lose `fold` information (whether the Timestamp corresponds to the first or second instance of wall clock time in a DST transition) when calling `Timestamp.replace`.
## Solution
A simple addition to the code of `Timestamp.replace` should fix this.
## Test
I added the test for the use case I came up with in the issue discussion. The OP example is losing `fold` when deleting timezone information with `Timetsamp.replace`, and that's not really a bug, but replacing a valid dateutil timezone with itself and losing `fold` definitely is.
The proposed solution fixes the original example as well. I just don't think we should be tracking it in tests, as it's not clear to me why `fold` must be preserved in a `Timestamp` with no timezone information (but it is the convention recommended in [PEP 495, fold section](https://www.python.org/dev/peps/pep-0495/#the-fold-attribute) to let users keep invalid fold and to just ignore it).
## Some details
IIRC, we ignore `fold`, when it doesn't do anything, so we should be safe preserving `fold` while replacing tzinfo with None, as in the OP example. I remember this coming up when we introduced fold support, and we made sure that the fold-aware functions don't care what fold is outside of a DST transition with a dateutil timezone (this was done to satisfy the requirements of [PEP 495, fold section](https://www.python.org/dev/peps/pep-0495/#the-fold-attribute)).
|
{
"+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/37644/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37644/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37644.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37644",
"merged_at": "2020-11-08T02:22:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37644.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37644"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37645
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37645/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37645/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37645/events
|
https://github.com/pandas-dev/pandas/issues/37645
| 736,890,673
|
MDU6SXNzdWU3MzY4OTA2NzM=
| 37,645
|
ENH: date_format and datetime_format for writing to ODS
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/302587?v=4",
"events_url": "https://api.github.com/users/quazgar/events{/privacy}",
"followers_url": "https://api.github.com/users/quazgar/followers",
"following_url": "https://api.github.com/users/quazgar/following{/other_user}",
"gists_url": "https://api.github.com/users/quazgar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/quazgar",
"id": 302587,
"login": "quazgar",
"node_id": "MDQ6VXNlcjMwMjU4Nw==",
"organizations_url": "https://api.github.com/users/quazgar/orgs",
"received_events_url": "https://api.github.com/users/quazgar/received_events",
"repos_url": "https://api.github.com/users/quazgar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/quazgar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/quazgar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/quazgar"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "06909A",
"default": false,
"description": "IO issues that don't fit into a more specific label",
"id": 2301354,
"name": "IO Data",
"node_id": "MDU6TGFiZWwyMzAxMzU0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data"
}
] |
open
| false
| null |
[] | null | 0
| 2020-11-05T12:26:08Z
| 2021-08-14T04:54:02Z
| null |
NONE
| null |
#### Is your feature request related to a problem?
Currently, dates and datetimes are written correctly to ODS, but the cells are not marked as containing datetime data (LibreOffice Calc interprets them as numbers), and also the `date_format` and `datetime_format` arguments to ExcelWriter are currently ignored by the odswriter.
#### Describe the solution you'd like
`_odswriter.py` should make use of these arguments.
#### API breaking implications
None.
#### Describe alternatives you've considered
I cannot think of alternatives.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37645/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37645/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37646
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37646/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37646/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37646/events
|
https://github.com/pandas-dev/pandas/issues/37646
| 736,911,250
|
MDU6SXNzdWU3MzY5MTEyNTA=
| 37,646
|
Order not preserved in OrderedDict when using to_dict with orient='records'
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3378634?v=4",
"events_url": "https://api.github.com/users/muellermichel/events{/privacy}",
"followers_url": "https://api.github.com/users/muellermichel/followers",
"following_url": "https://api.github.com/users/muellermichel/following{/other_user}",
"gists_url": "https://api.github.com/users/muellermichel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/muellermichel",
"id": 3378634,
"login": "muellermichel",
"node_id": "MDQ6VXNlcjMzNzg2MzQ=",
"organizations_url": "https://api.github.com/users/muellermichel/orgs",
"received_events_url": "https://api.github.com/users/muellermichel/received_events",
"repos_url": "https://api.github.com/users/muellermichel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/muellermichel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/muellermichel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/muellermichel"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-11-05T12:57:54Z
| 2020-11-05T14:14:16Z
| 2020-11-05T14:14:15Z
|
NONE
| null |
version: pandas 1.1.2
reproducer:
DataFrame([{"B": 1, "A": 2}]).to_dict(orient='records', into=OrderedDict)
> [OrderedDict([('A', 2), ('B', 1)])]
expected behavior:
DataFrame([{"B": 1, "A": 2}]).to_dict(orient='records', into=OrderedDict)
> [OrderedDict([('B', 1), ('A', 2)])]
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37646/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37646/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37647
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37647/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37647/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37647/events
|
https://github.com/pandas-dev/pandas/issues/37647
| 736,943,744
|
MDU6SXNzdWU3MzY5NDM3NDQ=
| 37,647
|
ENH: Allow support for dtype datetime64[ms] or other units or numpy.datetime64 cols.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/23238578?v=4",
"events_url": "https://api.github.com/users/isichei/events{/privacy}",
"followers_url": "https://api.github.com/users/isichei/followers",
"following_url": "https://api.github.com/users/isichei/following{/other_user}",
"gists_url": "https://api.github.com/users/isichei/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/isichei",
"id": 23238578,
"login": "isichei",
"node_id": "MDQ6VXNlcjIzMjM4NTc4",
"organizations_url": "https://api.github.com/users/isichei/orgs",
"received_events_url": "https://api.github.com/users/isichei/received_events",
"repos_url": "https://api.github.com/users/isichei/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/isichei/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/isichei/subscriptions",
"type": "User",
"url": "https://api.github.com/users/isichei"
}
|
[
{
"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 | 1
| 2020-11-05T13:44:06Z
| 2020-11-06T01:11:24Z
| 2020-11-06T01:11:24Z
|
NONE
| null |
#### Is your feature request related to a problem?
I would like to be able to use Pandas datetime datatype column for datetimes beyond the bounds for `ns` units (which are `1677-09-21 00:12:43.145225` and `2262-04-11 23:47:16.854775807`).
As will often be dealing with dates above and below these thresholds. Apologies if already open on another issue but couldn't quite find this. Not sure if tied in with [this issue](https://github.com/pydata/xarray/issues/789)
#### Describe the solution you'd like
```python
df = pd.DataFrame({"col": ["2020-01-01", "2999-01-01", "1990-01-01", None]})
```
One of the following:
```python
import pandas as pd
df = pd.DataFrame({"col": ["2020-01-01", "2999-01-01", "1990-01-01", None]})
df.col = pd.to_datetime(df.col, base_unit="ms")
df.col.dtype # datetime64[ms]
```
or
```python
import pandas as pd
import numpy as np
df = pd.DataFrame()
df["col"] = np.array(["2020-01-01", "2999-01-01", "1990-01-01", None], dtype='datetime64[ms]')
df.col.dtype # datetime64[ms]
```
#### API breaking implications
Not sure, I assume this might be a big ask depending on how the column casting internals work.
#### Describe alternatives you've considered
At the moment the only workaround is having an object column with datetimes. However I believe this stops you from using the `.dt` method on the column which is really handy.
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37647/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37647/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37648
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37648/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37648/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37648/events
|
https://github.com/pandas-dev/pandas/pull/37648
| 737,008,985
|
MDExOlB1bGxSZXF1ZXN0NTE2MTI1MzYx
| 37,648
|
BUG: Series.to_dict does not return native Python types
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4",
"events_url": "https://api.github.com/users/arw2019/events{/privacy}",
"followers_url": "https://api.github.com/users/arw2019/followers",
"following_url": "https://api.github.com/users/arw2019/following{/other_user}",
"gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/arw2019",
"id": 48889395,
"login": "arw2019",
"node_id": "MDQ6VXNlcjQ4ODg5Mzk1",
"organizations_url": "https://api.github.com/users/arw2019/orgs",
"received_events_url": "https://api.github.com/users/arw2019/received_events",
"repos_url": "https://api.github.com/users/arw2019/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arw2019/subscriptions",
"type": "User",
"url": "https://api.github.com/users/arw2019"
}
|
[
{
"color": "06909A",
"default": false,
"description": "IO issues that don't fit into a more specific label",
"id": 2301354,
"name": "IO Data",
"node_id": "MDU6TGFiZWwyMzAxMzU0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data"
},
{
"color": "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"
}
] |
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"
}
| 15
| 2020-11-05T15:01:59Z
| 2021-02-19T01:59:09Z
| 2021-02-19T01:12:56Z
|
MEMBER
| null |
- [x] xref #25969
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This resolves the issue of return types from `to_dict`. #25969 also discusses return types from `.items()`, which relates to an outstanding NumPy issue numpy/numpy#14139, and I don't address that part here atm
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37648/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37648/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37648.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37648",
"merged_at": "2021-02-19T01:12:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37648.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37648"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37649
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37649/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37649/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37649/events
|
https://github.com/pandas-dev/pandas/pull/37649
| 737,015,700
|
MDExOlB1bGxSZXF1ZXN0NTE2MTMwODg0
| 37,649
|
Addressed dataclass comment
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10372220?v=4",
"events_url": "https://api.github.com/users/taytzehao/events{/privacy}",
"followers_url": "https://api.github.com/users/taytzehao/followers",
"following_url": "https://api.github.com/users/taytzehao/following{/other_user}",
"gists_url": "https://api.github.com/users/taytzehao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/taytzehao",
"id": 10372220,
"login": "taytzehao",
"node_id": "MDQ6VXNlcjEwMzcyMjIw",
"organizations_url": "https://api.github.com/users/taytzehao/orgs",
"received_events_url": "https://api.github.com/users/taytzehao/received_events",
"repos_url": "https://api.github.com/users/taytzehao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/taytzehao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/taytzehao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/taytzehao"
}
|
[] |
closed
| false
| null |
[] | null | 0
| 2020-11-05T15:10:19Z
| 2020-11-05T15:26:32Z
| 2020-11-05T15:26:32Z
|
CONTRIBUTOR
| null |
Addressed comments for adding dataclass into pandas dataframe reference API
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37649/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37649/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37649.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37649",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/37649.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37649"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37650
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37650/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37650/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37650/events
|
https://github.com/pandas-dev/pandas/pull/37650
| 737,022,189
|
MDExOlB1bGxSZXF1ZXN0NTE2MTM2MzM2
| 37,650
|
REF: implement Categorical.encode_with_my_categories
|
{
"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": "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-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-11-05T15:18:13Z
| 2020-11-09T00:54:30Z
| 2020-11-09T00:37:38Z
|
MEMBER
| null |
Categorical._validate_listlike is misleading, since it treats not-in-categories entries as NAs, whereas we usually want to raise when we see those. This implements the more obviously-named encode_with_my_categories
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37650/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37650/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37650.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37650",
"merged_at": "2020-11-09T00:37:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37650.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37650"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37651
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37651/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37651/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37651/events
|
https://github.com/pandas-dev/pandas/pull/37651
| 737,033,205
|
MDExOlB1bGxSZXF1ZXN0NTE2MTQ1ODYw
| 37,651
|
Merge pull request #1 from pandas-dev/master
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10372220?v=4",
"events_url": "https://api.github.com/users/taytzehao/events{/privacy}",
"followers_url": "https://api.github.com/users/taytzehao/followers",
"following_url": "https://api.github.com/users/taytzehao/following{/other_user}",
"gists_url": "https://api.github.com/users/taytzehao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/taytzehao",
"id": 10372220,
"login": "taytzehao",
"node_id": "MDQ6VXNlcjEwMzcyMjIw",
"organizations_url": "https://api.github.com/users/taytzehao/orgs",
"received_events_url": "https://api.github.com/users/taytzehao/received_events",
"repos_url": "https://api.github.com/users/taytzehao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/taytzehao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/taytzehao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/taytzehao"
}
|
[] |
closed
| false
| null |
[] | null | 0
| 2020-11-05T15:30:12Z
| 2020-11-05T15:30:43Z
| 2020-11-05T15:30:43Z
|
CONTRIBUTOR
| null |
Merge original repo to update forked repository
- [ ] 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/37651/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37651/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37651.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37651",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/37651.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37651"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37652
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37652/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37652/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37652/events
|
https://github.com/pandas-dev/pandas/pull/37652
| 737,063,594
|
MDExOlB1bGxSZXF1ZXN0NTE2MTcxNTkz
| 37,652
|
BUG: don't suppress OSError in tzlocal
|
{
"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": "fbca04",
"default": false,
"description": "Windows OS",
"id": 57186974,
"name": "Windows",
"node_id": "MDU6TGFiZWw1NzE4Njk3NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows"
},
{
"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"
}
| 0
| 2020-11-05T16:06:59Z
| 2020-11-06T00:11:38Z
| 2020-11-06T00:09:03Z
|
MEMBER
| null |
Seeing a bunch of suppressed exceptions in the py38 windows tests. Hopefully this will cause them to surface correctly.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37652/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37652/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37652.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37652",
"merged_at": "2020-11-06T00:09:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37652.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37652"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37653
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37653/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37653/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37653/events
|
https://github.com/pandas-dev/pandas/issues/37653
| 737,124,494
|
MDU6SXNzdWU3MzcxMjQ0OTQ=
| 37,653
|
ENH: PyPy3 testing
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3534830?v=4",
"events_url": "https://api.github.com/users/jcpunk/events{/privacy}",
"followers_url": "https://api.github.com/users/jcpunk/followers",
"following_url": "https://api.github.com/users/jcpunk/following{/other_user}",
"gists_url": "https://api.github.com/users/jcpunk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jcpunk",
"id": 3534830,
"login": "jcpunk",
"node_id": "MDQ6VXNlcjM1MzQ4MzA=",
"organizations_url": "https://api.github.com/users/jcpunk/orgs",
"received_events_url": "https://api.github.com/users/jcpunk/received_events",
"repos_url": "https://api.github.com/users/jcpunk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jcpunk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jcpunk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jcpunk"
}
|
[
{
"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": "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": "d4c5f9",
"default": false,
"description": "",
"id": 3509329905,
"name": "PyPy",
"node_id": "LA_kwDOAA0YD87RLB_x",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/PyPy"
}
] |
open
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
}
] |
{
"closed_at": null,
"closed_issues": 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"
}
| 9
| 2020-11-05T17:25:11Z
| 2021-11-20T18:32:47Z
| null |
NONE
| null |
#### Is your feature request related to a problem?
With the increasing support for PyPy3 in NumPy, it would be helpful if pandas started testing against PyPy3.
#### Describe the solution you'd like
Please consider adding `pypy3` to the `.travis.yml` (allowed to fail for now).
#### API breaking implications
No expected API breaks
#### Describe alternatives you've considered
This is more of a portability concern than anything else.
#### Additional context
Something like:
```yaml
matrix:
- python: pypy3
env:
- JOB="pypy3" PATTERN="(not slow and not network and not clipboard)"
allow_failures:
- python: pypy3
env:
- JOB="pypy3" PATTERN="(not slow and not network and not clipboard)"
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37653/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37653/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37654
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37654/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37654/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37654/events
|
https://github.com/pandas-dev/pandas/issues/37654
| 737,271,913
|
MDU6SXNzdWU3MzcyNzE5MTM=
| 37,654
|
ENH: support zoneinfo tzinfo objects
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "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"
}
] |
open
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/23253999?v=4",
"events_url": "https://api.github.com/users/AlexKirko/events{/privacy}",
"followers_url": "https://api.github.com/users/AlexKirko/followers",
"following_url": "https://api.github.com/users/AlexKirko/following{/other_user}",
"gists_url": "https://api.github.com/users/AlexKirko/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AlexKirko",
"id": 23253999,
"login": "AlexKirko",
"node_id": "MDQ6VXNlcjIzMjUzOTk5",
"organizations_url": "https://api.github.com/users/AlexKirko/orgs",
"received_events_url": "https://api.github.com/users/AlexKirko/received_events",
"repos_url": "https://api.github.com/users/AlexKirko/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AlexKirko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AlexKirko/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AlexKirko"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/23253999?v=4",
"events_url": "https://api.github.com/users/AlexKirko/events{/privacy}",
"followers_url": "https://api.github.com/users/AlexKirko/followers",
"following_url": "https://api.github.com/users/AlexKirko/following{/other_user}",
"gists_url": "https://api.github.com/users/AlexKirko/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AlexKirko",
"id": 23253999,
"login": "AlexKirko",
"node_id": "MDQ6VXNlcjIzMjUzOTk5",
"organizations_url": "https://api.github.com/users/AlexKirko/orgs",
"received_events_url": "https://api.github.com/users/AlexKirko/received_events",
"repos_url": "https://api.github.com/users/AlexKirko/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AlexKirko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AlexKirko/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AlexKirko"
}
] | null | 22
| 2020-11-05T21:11:44Z
| 2021-10-13T16:07:09Z
| null |
MEMBER
| null |
ATM we support pytz, dateutil, and datetime.timezone tzinfos. Now that it is part of the stdlib py39, we should also support zoneinfo tzinfos.
|
{
"+1": 4,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 4,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37654/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37654/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37655
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37655/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37655/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37655/events
|
https://github.com/pandas-dev/pandas/pull/37655
| 737,282,060
|
MDExOlB1bGxSZXF1ZXN0NTE2MzUxNzYy
| 37,655
|
TST: split up tests/plotting/test_frame.py into subdir & modules #34769
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/44315225?v=4",
"events_url": "https://api.github.com/users/Mikhaylov-yv/events{/privacy}",
"followers_url": "https://api.github.com/users/Mikhaylov-yv/followers",
"following_url": "https://api.github.com/users/Mikhaylov-yv/following{/other_user}",
"gists_url": "https://api.github.com/users/Mikhaylov-yv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Mikhaylov-yv",
"id": 44315225,
"login": "Mikhaylov-yv",
"node_id": "MDQ6VXNlcjQ0MzE1MjI1",
"organizations_url": "https://api.github.com/users/Mikhaylov-yv/orgs",
"received_events_url": "https://api.github.com/users/Mikhaylov-yv/received_events",
"repos_url": "https://api.github.com/users/Mikhaylov-yv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Mikhaylov-yv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Mikhaylov-yv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Mikhaylov-yv"
}
|
[
{
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-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"
}
| 16
| 2020-11-05T21:29:47Z
| 2020-11-13T05:52:50Z
| 2020-11-13T02:51:08Z
|
CONTRIBUTOR
| null |
Created instead of #37538
- [x] closes #34769
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
I moved the file to a new directory.
What is the best structure for this folder?
[before_test_ploting_frame](https://gist.github.com/Mikhaylov-yv/999de1451e8ecc836215b30db34ef841)
[after_test_ploting_frame](https://gist.github.com/Mikhaylov-yv/98eca32c21f59cc9e7653cd96d5fabd2)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37655/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37655/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37655.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37655",
"merged_at": "2020-11-13T02:51:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37655.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37655"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37656
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37656/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37656/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37656/events
|
https://github.com/pandas-dev/pandas/pull/37656
| 737,319,441
|
MDExOlB1bGxSZXF1ZXN0NTE2MzgyODIw
| 37,656
|
ENH: option to plot data points on top of boxplot
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2250372?v=4",
"events_url": "https://api.github.com/users/mikessut/events{/privacy}",
"followers_url": "https://api.github.com/users/mikessut/followers",
"following_url": "https://api.github.com/users/mikessut/following{/other_user}",
"gists_url": "https://api.github.com/users/mikessut/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mikessut",
"id": 2250372,
"login": "mikessut",
"node_id": "MDQ6VXNlcjIyNTAzNzI=",
"organizations_url": "https://api.github.com/users/mikessut/orgs",
"received_events_url": "https://api.github.com/users/mikessut/received_events",
"repos_url": "https://api.github.com/users/mikessut/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mikessut/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mikessut/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mikessut"
}
|
[
{
"color": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] |
closed
| false
| null |
[] | null | 10
| 2020-11-05T22:41:55Z
| 2021-02-07T15:31:39Z
| 2021-02-07T15:31:39Z
|
NONE
| null |
- [x ] tests added / passed
- [x ] passes `black pandas`
- [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry - not sure how to do this. I guess I have to wait until pull request is complete.
This change is a a feature I often want, which is the ability to add raw data on top of a boxplot to get a better idea of data distribution.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37656/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37656/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37656.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37656",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/37656.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37656"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37657
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37657/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37657/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37657/events
|
https://github.com/pandas-dev/pandas/pull/37657
| 737,366,929
|
MDExOlB1bGxSZXF1ZXN0NTE2NDIyMzc5
| 37,657
|
BUG: unpickling modifies Block.ndim
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-08T12:11:38Z",
"closed_issues": 81,
"created_at": "2020-10-29T13:43:23Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-12-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/79",
"id": 6047124,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79/labels",
"node_id": "MDk6TWlsZXN0b25lNjA0NzEyNA==",
"number": 79,
"open_issues": 0,
"state": "closed",
"title": "1.1.5",
"updated_at": "2020-12-08T12:11:38Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79"
}
| 2
| 2020-11-06T00:38:38Z
| 2020-11-09T11:20:22Z
| 2020-11-09T00:38:09Z
|
MEMBER
| null |
- [x] closes #37631
- [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/37657/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37657/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37657.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37657",
"merged_at": "2020-11-09T00:38:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37657.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37657"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37658
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37658/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37658/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37658/events
|
https://github.com/pandas-dev/pandas/pull/37658
| 737,388,111
|
MDExOlB1bGxSZXF1ZXN0NTE2NDM4ODA2
| 37,658
|
REF: dont support dt64tz in nanmean
|
{
"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": "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"
}
| 1
| 2020-11-06T01:36:47Z
| 2020-11-09T00:44:40Z
| 2020-11-09T00:38:23Z
|
MEMBER
| null |
nanmean is annotated as taking a ndarray, no reason for it to support dt64tz
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37658/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37658/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37658.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37658",
"merged_at": "2020-11-09T00:38:23Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37658.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37658"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37659
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37659/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37659/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37659/events
|
https://github.com/pandas-dev/pandas/pull/37659
| 737,413,810
|
MDExOlB1bGxSZXF1ZXN0NTE2NDU4OTI1
| 37,659
|
CI: catch windows py38 OSError
|
{
"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": "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": "fbca04",
"default": false,
"description": "Windows OS",
"id": 57186974,
"name": "Windows",
"node_id": "MDU6TGFiZWw1NzE4Njk3NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 2
| 2020-11-06T02:50:11Z
| 2020-11-07T01:30:23Z
| 2020-11-07T01:24:28Z
|
MEMBER
| null |
Still seeing these following #37652, so catching again one level higher.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37659/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37659/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37659.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37659",
"merged_at": "2020-11-07T01:24:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37659.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37659"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37660
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37660/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37660/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37660/events
|
https://github.com/pandas-dev/pandas/pull/37660
| 737,433,490
|
MDExOlB1bGxSZXF1ZXN0NTE2NDc0NjQx
| 37,660
|
REF: implement _wrap_reduction_result
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-11-06T03:45:04Z
| 2020-11-08T02:38:59Z
| 2020-11-08T02:14:32Z
|
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/37660/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37660/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37660.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37660",
"merged_at": "2020-11-08T02:14:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37660.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37660"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/37661
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37661/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37661/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37661/events
|
https://github.com/pandas-dev/pandas/pull/37661
| 737,528,319
|
MDExOlB1bGxSZXF1ZXN0NTE2NTUzNTQ0
| 37,661
|
BUG: RollingGroupby when groupby key is in the index
|
{
"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": "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": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-08T12:11:38Z",
"closed_issues": 81,
"created_at": "2020-10-29T13:43:23Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-12-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/79",
"id": 6047124,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79/labels",
"node_id": "MDk6TWlsZXN0b25lNjA0NzEyNA==",
"number": 79,
"open_issues": 0,
"state": "closed",
"title": "1.1.5",
"updated_at": "2020-12-08T12:11:38Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79"
}
| 7
| 2020-11-06T07:07:49Z
| 2020-11-10T13:40:23Z
| 2020-11-09T18:56:37Z
|
MEMBER
| null |
- [x] closes #37641
- [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/37661/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37661/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37661.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37661",
"merged_at": "2020-11-09T18:56:37Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37661.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37661"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37662
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37662/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37662/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37662/events
|
https://github.com/pandas-dev/pandas/pull/37662
| 737,560,630
|
MDExOlB1bGxSZXF1ZXN0NTE2NTgwMTU1
| 37,662
|
Move inconsistent namespace check to pre-commit, fixup more files
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 4
| 2020-11-06T08:10:27Z
| 2020-11-08T21:43:01Z
| 2020-11-08T21:24:34Z
|
MEMBER
| null |
xref https://github.com/pandas-dev/pandas/pull/37401#discussion_r515312381
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37662/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37662/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37662.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37662",
"merged_at": "2020-11-08T21:24:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37662.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37662"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37663
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37663/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37663/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37663/events
|
https://github.com/pandas-dev/pandas/issues/37663
| 737,728,581
|
MDU6SXNzdWU3Mzc3Mjg1ODE=
| 37,663
|
BUG: Incorrect behavior of binary operations when left/right operands have different type (Series/DataFrame)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26389717?v=4",
"events_url": "https://api.github.com/users/prutskov/events{/privacy}",
"followers_url": "https://api.github.com/users/prutskov/followers",
"following_url": "https://api.github.com/users/prutskov/following{/other_user}",
"gists_url": "https://api.github.com/users/prutskov/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/prutskov",
"id": 26389717,
"login": "prutskov",
"node_id": "MDQ6VXNlcjI2Mzg5NzE3",
"organizations_url": "https://api.github.com/users/prutskov/orgs",
"received_events_url": "https://api.github.com/users/prutskov/received_events",
"repos_url": "https://api.github.com/users/prutskov/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/prutskov/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/prutskov/subscriptions",
"type": "User",
"url": "https://api.github.com/users/prutskov"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] |
open
| false
| null |
[] | null | 6
| 2020-11-06T12:40:35Z
| 2020-11-07T15:22:04Z
| null |
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
df = pd.DataFrame([0,1,2]).append(pd.DataFrame([3,4,5]))
df.columns = ['a']
print(df - df.a)
```
#### Problem description
Why we can not to do binary operations when we work with `DataFrame` and `Series`(dataframe has 1 columns, `len(df.index)==len(series.index)) with duplicated indexes? If left and right operands have the same type (`DataFrame/DataFrame` for example) it works.
#### Expected Output
```
0 0
1 0
2 0
0 0
1 0
2 0
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 67a3d4241ab84419856b84fc3ebc9abcbe66c6b3
python : 3.8.3.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-50-generic
Version : #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US
LOCALE : en_US.ISO8859-1
pandas : 1.1.4
numpy : 1.19.2
pytz : 2020.1
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.4.0.post20200518
Cython : None
pytest : 6.1.1
hypothesis : None
sphinx : None
blosc : None
feather : 0.4.1
xlsxwriter : None
lxml.etree : 4.5.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : None
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : 0.8.3
fastparquet : None
gcsfs : None
matplotlib : 3.2.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.5
pandas_gbq : 0.14.0
pyarrow : 1.0.0
pytables : None
pyxlsb : None
s3fs : 0.5.1
scipy : 1.5.2
sqlalchemy : 1.3.19
tables : 3.6.1
tabulate : None
xarray : 0.16.1
xlrd : 1.2.0
xlwt : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37663/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37663/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37664
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37664/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37664/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37664/events
|
https://github.com/pandas-dev/pandas/pull/37664
| 737,754,185
|
MDExOlB1bGxSZXF1ZXN0NTE2NzQwNzQ3
| 37,664
|
REF: simplify cycling through colors
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
|
[
{
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 2
| 2020-11-06T13:23:06Z
| 2020-11-09T11:33:41Z
| 2020-11-08T02:11:13Z
|
MEMBER
| null |
- [ ] closes #37604
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
I tried to address #37604, but it turns out that on some occasions it is absolutely mandatory to return more colors than ``num_colors`` says.
In particular, this is the test that cannot be updated and the underlying code cannot be easily modified as well.
```
pandas/tests/plotting/test_frame.py
...
class TestDataFramePlots(TestPlotBase):
...
def test_bar_user_colors(self):
df = DataFrame(
{"A": range(4), "B": range(1, 5), "color": ["red", "blue", "blue", "red"]}
)
# This should *only* work when `y` is specified, else
# we use one color per column
ax = df.plot.bar(y="A", color=df["color"])
result = [p.get_facecolor() for p in ax.patches]
expected = [
(1.0, 0.0, 0.0, 1.0),
(0.0, 0.0, 1.0, 1.0),
(0.0, 0.0, 1.0, 1.0),
(1.0, 0.0, 0.0, 1.0),
]
assert result == expected
```
When "y" is specified, then the number of colors must be the length of the series df["A"],
but inside the BarPlot class there is no opportunity to check for that condition.
So, let ``get_standard_colors`` return maximum of ``num_colors`` and ``len(colors)``.
This way all tests work without modifications,
just minor improvement in the cycling 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/37664/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37664/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37664.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37664",
"merged_at": "2020-11-08T02:11:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37664.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37664"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37665
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37665/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37665/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37665/events
|
https://github.com/pandas-dev/pandas/pull/37665
| 737,793,680
|
MDExOlB1bGxSZXF1ZXN0NTE2Nzc0MTA3
| 37,665
|
Start testing pypy3
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3534830?v=4",
"events_url": "https://api.github.com/users/jcpunk/events{/privacy}",
"followers_url": "https://api.github.com/users/jcpunk/followers",
"following_url": "https://api.github.com/users/jcpunk/following{/other_user}",
"gists_url": "https://api.github.com/users/jcpunk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jcpunk",
"id": 3534830,
"login": "jcpunk",
"node_id": "MDQ6VXNlcjM1MzQ4MzA=",
"organizations_url": "https://api.github.com/users/jcpunk/orgs",
"received_events_url": "https://api.github.com/users/jcpunk/received_events",
"repos_url": "https://api.github.com/users/jcpunk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jcpunk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jcpunk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jcpunk"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] | null | 5
| 2020-11-06T14:16:58Z
| 2021-10-31T16:32:35Z
| 2020-11-11T00:14:41Z
|
NONE
| null |
- [ ] 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/37665/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37665/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37665.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37665",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/37665.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37665"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37666
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37666/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37666/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37666/events
|
https://github.com/pandas-dev/pandas/pull/37666
| 737,861,198
|
MDExOlB1bGxSZXF1ZXN0NTE2ODI5MTQw
| 37,666
|
TST: match matplotlib warning message
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 4
| 2020-11-06T15:47:11Z
| 2020-11-09T11:34:18Z
| 2020-11-07T14:43:52Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Follow up on #36982.
Since, currently ``assert_produces_warning`` now allows matching warning message,
instead of the comment we will match the message.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37666/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37666/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37666.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37666",
"merged_at": "2020-11-07T14:43:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37666.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37666"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37667
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37667/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37667/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37667/events
|
https://github.com/pandas-dev/pandas/pull/37667
| 737,873,429
|
MDExOlB1bGxSZXF1ZXN0NTE2ODM5MjEw
| 37,667
|
BUG: CategoricalIndex.equals casting non-categories to np.nan
|
{
"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": "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-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 2
| 2020-11-06T16:04:19Z
| 2020-11-08T01:05:39Z
| 2020-11-08T00:34:52Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37667/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37667/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37667.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37667",
"merged_at": "2020-11-08T00:34:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37667.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37667"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37668
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37668/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37668/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37668/events
|
https://github.com/pandas-dev/pandas/issues/37668
| 737,877,573
|
MDU6SXNzdWU3Mzc4Nzc1NzM=
| 37,668
|
TST: MatplotlibDeprecationWarning in test related to pie chart
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
|
[
{
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-11-06T16:10:31Z
| 2020-11-08T03:00:20Z
| 2020-11-08T03:00:20Z
|
MEMBER
| 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
```bash
pytest -Werror pandas/tests/plotting/tests_frame.py::TestDataFramePlots::test_pie_df_nan
```
#### Problem description
When testing ``test_frame.py`` the following warning is issued:
```
============================================================================================================= warnings summary =============================================================================================================
pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_pie_df_nan
pandas\plotting\_matplotlib\core.py:1551: MatplotlibDeprecationWarning: normalize=None does not normalize if the sum is less than 1 but this behavior is deprecated since 3.3 until two minor releases later. After the deprecation period the default value will be normalize=True. To prevent normalization pass normalize=False
results = ax.pie(y, labels=blabels, **kwds)
-- Docs: https://docs.pytest.org/en/stable/warnings.html
```
This code is the reason for the warnings:
```
matplotlib/axes/_axes.py
...
def pie(...):
...
if normalize is None:
if sx < 1:
cbook.warn_deprecated(
"3.3", message="normalize=None does not normalize "
"if the sum is less than 1 but this behavior "
"is deprecated since %(since)s until %(removal)s. "
"After the deprecation "
"period the default value will be normalize=True. "
"To prevent normalization pass normalize=False ")
else:
normalize = True
```
#### Expected Output
No warnings.
#### Versions
The issue is present starting from matplotlib version 3.3.
Before that ``normalize`` kwarg was not applicable to ``plt.pie``.
<details>
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit : 210c06e2f29bdb968fa715756bef9dcf1dfdc818
python : 3.8.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.18362
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_United States.1251
pandas : 1.2.0.dev0+1079.g210c06e2f
numpy : 1.19.2
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.4
setuptools : 49.6.0.post20201009
Cython : 0.29.21
pytest : 6.1.1
hypothesis : 5.37.4
sphinx : 3.2.1
blosc : None
feather : None
xlsxwriter : 1.3.7
lxml.etree : 4.6.1
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.18.1
pandas_datareader: None
bs4 : 4.9.3
bottleneck : 1.3.2
fsspec : 0.8.4
fastparquet : 0.4.1
gcsfs : 0.7.1
matplotlib : 3.3.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : 2.0.0
pyxlsb : None
s3fs : 0.4.2
scipy : 1.5.0
sqlalchemy : 1.3.20
tables : 3.6.1
tabulate : 0.8.7
xarray : 0.16.1
xlrd : 1.2.0
xlwt : 1.3.0
numba : 0.51.2
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37668/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37668/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37669
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37669/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37669/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37669/events
|
https://github.com/pandas-dev/pandas/pull/37669
| 737,879,754
|
MDExOlB1bGxSZXF1ZXN0NTE2ODQ0NTE3
| 37,669
|
TST: fix warning for pie chart
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
|
[
{
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-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-11-06T16:13:48Z
| 2020-11-09T11:33:52Z
| 2020-11-08T03:00:21Z
|
MEMBER
| null |
- [ ] closes #37668
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Fix MatplotlibDeprecationWarning for pie chart by specifically passing ``normalize=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/37669/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37669/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37669.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37669",
"merged_at": "2020-11-08T03:00:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37669.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37669"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37670
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37670/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37670/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37670/events
|
https://github.com/pandas-dev/pandas/issues/37670
| 737,902,019
|
MDU6SXNzdWU3Mzc5MDIwMTk=
| 37,670
|
BUG: DataFrame constructor with 2d list input to index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4",
"events_url": "https://api.github.com/users/arw2019/events{/privacy}",
"followers_url": "https://api.github.com/users/arw2019/followers",
"following_url": "https://api.github.com/users/arw2019/following{/other_user}",
"gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/arw2019",
"id": 48889395,
"login": "arw2019",
"node_id": "MDQ6VXNlcjQ4ODg5Mzk1",
"organizations_url": "https://api.github.com/users/arw2019/orgs",
"received_events_url": "https://api.github.com/users/arw2019/received_events",
"repos_url": "https://api.github.com/users/arw2019/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arw2019/subscriptions",
"type": "User",
"url": "https://api.github.com/users/arw2019"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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"
},
{
"color": "d4c5f9",
"default": false,
"description": "Series/DataFrame/Index/pd.array Constructors",
"id": 1465286368,
"name": "Constructors",
"node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors"
},
{
"color": "b60205",
"default": false,
"description": "Internal Consistency of API/Behavior",
"id": 1741841389,
"name": "API - Consistency",
"node_id": "MDU6TGFiZWwxNzQxODQxMzg5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency"
}
] |
open
| false
| null |
[] | null | 2
| 2020-11-06T16:47:59Z
| 2020-11-06T17:16:59Z
| null |
MEMBER
| null |
xref #34471
The `DataFrame` constructor doesn't appear to be working correctly with
```python
In [3]: pd.DataFrame([[1], [2]], index=[["a", "b"], ["c", "d"]])
Out[3]:
0
a c 1
b d 2
```
I *think* we might expect
```python
In [3]: pd.DataFrame([[1], [2]], index=[["a", "b"], ["c", "d"]])
Out[3]:
0
a b 1
c d 2
```
FTR I'm not versant with the context here (whether this is in fact expected and we should maybe update the docs or if there is something to 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/37670/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37670/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37671
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37671/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37671/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37671/events
|
https://github.com/pandas-dev/pandas/pull/37671
| 737,953,539
|
MDExOlB1bGxSZXF1ZXN0NTE2OTA1Mjc0
| 37,671
|
TYP: Index._concat
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-11-06T18:15:31Z
| 2020-11-08T00:54:08Z
| 2020-11-08T00:31: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/37671/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37671/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37671.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37671",
"merged_at": "2020-11-08T00:31:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37671.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37671"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/37672
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37672/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37672/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37672/events
|
https://github.com/pandas-dev/pandas/pull/37672
| 738,035,423
|
MDExOlB1bGxSZXF1ZXN0NTE2OTczMzQ5
| 37,672
|
BUG: Fix bug in loc setitem changing the dtype when condition is False
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"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"
}
] |
open
| false
| null |
[] | null | 10
| 2020-11-06T20:49:53Z
| 2021-10-04T00:14:12Z
| null |
MEMBER
| null |
- [x] closes #37550
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This fixes the bug, but I am not sure, if the solution is good enough....
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37672/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37672/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37672.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37672",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/37672.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37672"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37673
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37673/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37673/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37673/events
|
https://github.com/pandas-dev/pandas/pull/37673
| 738,047,788
|
MDExOlB1bGxSZXF1ZXN0NTE2OTgzNzMx
| 37,673
|
CLN: only call _wrap_results one place in nanmedian
|
{
"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": "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": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "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-11-06T21:17:40Z
| 2020-11-08T01:03:19Z
| 2020-11-08T00:20:34Z
|
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/37673/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37673/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37673.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37673",
"merged_at": "2020-11-08T00:20:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37673.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37673"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/37674
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37674/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37674/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37674/events
|
https://github.com/pandas-dev/pandas/pull/37674
| 738,050,040
|
MDExOlB1bGxSZXF1ZXN0NTE2OTg1Njc2
| 37,674
|
CLN: no need to call _wrap_results in nanvar
|
{
"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": "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-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"
}
| 3
| 2020-11-06T21:21:47Z
| 2020-11-09T21:02:33Z
| 2020-11-09T21:02:21Z
|
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/37674/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37674/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37674.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37674",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/37674.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37674"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/37675
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37675/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37675/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37675/events
|
https://github.com/pandas-dev/pandas/pull/37675
| 738,073,987
|
MDExOlB1bGxSZXF1ZXN0NTE3MDA1MTIw
| 37,675
|
Bug in loc raised for numeric label even when label is in Index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "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-11-06T22:15:45Z
| 2020-11-09T02:52:11Z
| 2020-11-09T02:52:07Z
|
MEMBER
| null |
- [x] closes #26491
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Additionally checking for the label inside values, this fixes the problem.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37675/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37675/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37675.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37675",
"merged_at": "2020-11-09T02:52:06Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37675.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37675"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37676
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37676/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37676/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37676/events
|
https://github.com/pandas-dev/pandas/pull/37676
| 738,087,686
|
MDExOlB1bGxSZXF1ZXN0NTE3MDE2NTUx
| 37,676
|
BUG: setitem with boolean mask and series as value is broken for Series with EA type
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "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": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "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-11-06T22:51:37Z
| 2020-11-17T08:35:51Z
| 2020-11-17T01:21:38Z
|
MEMBER
| null |
- [x] closes #26468
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Was fixed already, added a test
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37676/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37676/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37676.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37676",
"merged_at": "2020-11-17T01:21:37Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37676.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37676"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37677
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37677/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37677/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37677/events
|
https://github.com/pandas-dev/pandas/pull/37677
| 738,106,920
|
MDExOlB1bGxSZXF1ZXN0NTE3MDMyMzMw
| 37,677
|
REF/TST: collect indexing tests by method
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "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-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-11-06T23:51:28Z
| 2020-11-08T00:58:43Z
| 2020-11-08T00:07:13Z
|
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/37677/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37677/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37677.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37677",
"merged_at": "2020-11-08T00:07:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37677.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37677"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/37678
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37678/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37678/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37678/events
|
https://github.com/pandas-dev/pandas/pull/37678
| 738,109,331
|
MDExOlB1bGxSZXF1ZXN0NTE3MDM0MzE2
| 37,678
|
TST/REF: misplaced Categorical tests
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "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-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-11-07T00:00:46Z
| 2020-11-08T00:14:17Z
| 2020-11-08T00:02: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/37678/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37678/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37678.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37678",
"merged_at": "2020-11-08T00:02:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37678.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37678"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/37679
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37679/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37679/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37679/events
|
https://github.com/pandas-dev/pandas/pull/37679
| 738,116,515
|
MDExOlB1bGxSZXF1ZXN0NTE3MDQwMjc3
| 37,679
|
REF/TST: share some api tests
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-11-07T00:27:48Z
| 2020-11-07T01:31:41Z
| 2020-11-07T01:30:19Z
|
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/37679/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37679/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37679.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37679",
"merged_at": "2020-11-07T01:30:19Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37679.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37679"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/37680
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37680/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37680/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37680/events
|
https://github.com/pandas-dev/pandas/pull/37680
| 738,117,323
|
MDExOlB1bGxSZXF1ZXN0NTE3MDQwOTMx
| 37,680
|
BUG: Dtype was not changed when float was assignt to int column
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "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": "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": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] |
closed
| false
| null |
[] | null | 14
| 2020-11-07T00:31:20Z
| 2021-06-16T13:46:26Z
| 2021-06-16T13:46:26Z
|
MEMBER
| null |
- [x] closes #26395
- [x] closes #20643
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
We have to keep the get_loc statement to check, if the series._set_value function does the trick. I added the dtype conversion there, to avoid implementing the same thing twice
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37680/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37680/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37680.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37680",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/37680.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37680"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37681
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37681/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37681/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37681/events
|
https://github.com/pandas-dev/pandas/issues/37681
| 738,154,218
|
MDU6SXNzdWU3MzgxNTQyMTg=
| 37,681
|
BUG: CategoricalIndex.fillna with a tuple category
|
{
"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"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
},
{
"color": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
}
] |
open
| false
| null |
[] | null | 0
| 2020-11-07T03:41:39Z
| 2021-08-14T05:02:34Z
| null |
MEMBER
| null |
The _require_scalar check is wrong in this case (also likely for object dtype Index)
```
ci = pd.CategoricalIndex([(0, 1), (1, 2), pd.NA])
>>> ci.fillna((0, 1))
[...]
TypeError: 'value' must be a scalar, passed: tuple
>>> ci._data.fillna((0, 1))
[(0, 1), (1, 2), (0, 1)]
Categories (2, object): [(0, 1), (1, 2)]
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37681/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37681/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37682
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37682/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37682/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37682/events
|
https://github.com/pandas-dev/pandas/issues/37682
| 738,155,152
|
MDU6SXNzdWU3MzgxNTUxNTI=
| 37,682
|
BUG: Index.where vs Series.where mismatch
|
{
"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": "8dd5fc",
"default": false,
"description": "Series data structure",
"id": 1357732944,
"name": "Series",
"node_id": "MDU6TGFiZWwxMzU3NzMyOTQ0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Series"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2020-11-07T03:48:34Z
| 2020-12-29T18:09:25Z
| 2020-12-29T18:09:25Z
|
MEMBER
| null |
If in merge._maybe_add_join_keys we replace a call to Index.where with a call to Series.where, we get a test failure because of the following mismatch:
```
dr = pd.date_range("2001-01-01", periods=3)
lvals = pd.DatetimeIndex([dr[0], dr[1], pd.NaT])._data
rvals = pd.Categorical([dr[0], pd.NaT, dr[2]])
mask = np.array([False, False, True])
>>> pd.Series(lvals).where(~mask, rvals)._values
array([Timestamp('2001-01-01 00:00:00'), Timestamp('2001-01-02 00:00:00'),
978480000000000000], dtype=object)
>>> pd.Index(lvals).where(~mask, rvals)._values
<DatetimeArray>
['2001-01-01 00:00:00', '2001-01-02 00:00:00', '2001-01-03 00:00:00']
Length: 3, dtype: datetime64[ns]
```
The Index version looks better behaved. These should share an implementation.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37682/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37682/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37683
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37683/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37683/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37683/events
|
https://github.com/pandas-dev/pandas/pull/37683
| 738,172,036
|
MDExOlB1bGxSZXF1ZXN0NTE3MDg2NDg2
| 37,683
|
CLN: _replace_single
|
{
"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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 5
| 2020-11-07T04:52:12Z
| 2020-11-08T02:08:02Z
| 2020-11-08T01:47:27Z
|
MEMBER
| null |
Confirmed that the `regex` kwarg is always bool, which lets us remove some gymnastics (L2570-L2586). Then removed always-True `convert` kwarg.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37683/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37683/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37683.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37683",
"merged_at": "2020-11-08T01:47:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37683.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37683"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37684
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37684/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37684/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37684/events
|
https://github.com/pandas-dev/pandas/pull/37684
| 738,177,539
|
MDExOlB1bGxSZXF1ZXN0NTE3MDkwNTcy
| 37,684
|
TYP: @final for NDFrame 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"
}
|
[] |
closed
| false
| null |
[] | null | 0
| 2020-11-07T05:31:58Z
| 2021-11-20T23:21:16Z
| 2020-11-07T15:38:31Z
|
MEMBER
| null |
Makes it a little easier to reason about the code on sight.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37684/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37684/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37684.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37684",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/37684.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37684"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37685
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37685/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37685/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37685/events
|
https://github.com/pandas-dev/pandas/pull/37685
| 738,268,286
|
MDExOlB1bGxSZXF1ZXN0NTE3MTU2MzAw
| 37,685
|
BUG: DataFrame.groupby(., dropna=True, axis=0) incorrectly throws ShapeError [RESUBMIT]
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4",
"events_url": "https://api.github.com/users/arw2019/events{/privacy}",
"followers_url": "https://api.github.com/users/arw2019/followers",
"following_url": "https://api.github.com/users/arw2019/following{/other_user}",
"gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/arw2019",
"id": 48889395,
"login": "arw2019",
"node_id": "MDQ6VXNlcjQ4ODg5Mzk1",
"organizations_url": "https://api.github.com/users/arw2019/orgs",
"received_events_url": "https://api.github.com/users/arw2019/received_events",
"repos_url": "https://api.github.com/users/arw2019/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arw2019/subscriptions",
"type": "User",
"url": "https://api.github.com/users/arw2019"
}
|
[] |
closed
| false
| null |
[] | null | 0
| 2020-11-07T15:59:45Z
| 2020-11-07T16:26:09Z
| 2020-11-07T16:26:05Z
|
MEMBER
| null |
- [x] closes #35612
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Resubmitting #35751 to see if I can get to green 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/37685/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37685/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37685.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37685",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/37685.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37685"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37686
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37686/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37686/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37686/events
|
https://github.com/pandas-dev/pandas/issues/37686
| 738,277,556
|
MDU6SXNzdWU3MzgyNzc1NTY=
| 37,686
|
ENH: read_excel improve usecols
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/21184718?v=4",
"events_url": "https://api.github.com/users/aster94/events{/privacy}",
"followers_url": "https://api.github.com/users/aster94/followers",
"following_url": "https://api.github.com/users/aster94/following{/other_user}",
"gists_url": "https://api.github.com/users/aster94/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aster94",
"id": 21184718,
"login": "aster94",
"node_id": "MDQ6VXNlcjIxMTg0NzE4",
"organizations_url": "https://api.github.com/users/aster94/orgs",
"received_events_url": "https://api.github.com/users/aster94/received_events",
"repos_url": "https://api.github.com/users/aster94/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aster94/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aster94/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aster94"
}
|
[
{
"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-11-07T16:53:24Z
| 2021-04-15T02:27:19Z
| 2021-04-14T14:39:59Z
|
NONE
| null |
#### Is your feature request related to a problem?
No
#### Describe the solution you'd like
Let's imagine a excel database with multiple sheets
We can do `pd.read_excel(db, sheet_name=[0, 1], usecols=[0, 1])` and we would read the first and second columns of the first and second sheets.
Imagine we need to read the first and second columns from the first sheet and the second and third columns from the second sheet. A solution could be to pass to `usecols` a list of list, for example: `pd.read_excel(db, sheet_name=[0, 1], usecols=[[0,1], [1,2]])`. Both integer and string should be used inside the inner-list
#### API breaking implications
No, well I guess
#### Describe alternatives you've considered
Multiple run of `read_excel`
|
{
"+1": 0,
"-1": 1,
"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/37686/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37686/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37687
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37687/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37687/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37687/events
|
https://github.com/pandas-dev/pandas/pull/37687
| 738,329,522
|
MDExOlB1bGxSZXF1ZXN0NTE3MjAwNDc1
| 37,687
|
pd.Series.loc.__getitem__ promotes to float64 instead of raising KeyError
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "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
| 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-11-07T22:34:01Z
| 2020-11-07T23:50:43Z
| 2020-11-07T23:47:12Z
|
MEMBER
| null |
- [x] closes #25927
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
cc @jreback Added a test. The test above was the only one explicitly added for the ``KeyError``
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37687/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37687/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37687.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37687",
"merged_at": "2020-11-07T23:47:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37687.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37687"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37688
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37688/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37688/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37688/events
|
https://github.com/pandas-dev/pandas/pull/37688
| 738,332,518
|
MDExOlB1bGxSZXF1ZXN0NTE3MjAyMzIx
| 37,688
|
TYP: make some internal funcs keyword-only
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-11-07T22:54:51Z
| 2020-11-08T02:40:21Z
| 2020-11-08T02:04:59Z
|
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/37688/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37688/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37688.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37688",
"merged_at": "2020-11-08T02:04:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37688.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37688"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/37689
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37689/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37689/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37689/events
|
https://github.com/pandas-dev/pandas/pull/37689
| 738,333,443
|
MDExOlB1bGxSZXF1ZXN0NTE3MjAyOTAz
| 37,689
|
CLN: Clean indexing tests
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "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"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 2
| 2020-11-07T23:01:09Z
| 2020-11-08T12:07:04Z
| 2020-11-08T02:59:32Z
|
MEMBER
| null |
- [x] tests passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Found a few unuesed statements
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37689/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37689/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37689.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37689",
"merged_at": "2020-11-08T02:59:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37689.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37689"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37690
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37690/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37690/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37690/events
|
https://github.com/pandas-dev/pandas/pull/37690
| 738,334,686
|
MDExOlB1bGxSZXF1ZXN0NTE3MjAzNzY1
| 37,690
|
DOC: add examples to insert and update generally
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2754821?v=4",
"events_url": "https://api.github.com/users/erictleung/events{/privacy}",
"followers_url": "https://api.github.com/users/erictleung/followers",
"following_url": "https://api.github.com/users/erictleung/following{/other_user}",
"gists_url": "https://api.github.com/users/erictleung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/erictleung",
"id": 2754821,
"login": "erictleung",
"node_id": "MDQ6VXNlcjI3NTQ4MjE=",
"organizations_url": "https://api.github.com/users/erictleung/orgs",
"received_events_url": "https://api.github.com/users/erictleung/received_events",
"repos_url": "https://api.github.com/users/erictleung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/erictleung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/erictleung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/erictleung"
}
|
[
{
"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"
}
| 4
| 2020-11-07T23:10:53Z
| 2020-12-08T18:45:16Z
| 2020-12-08T18:32:45Z
|
CONTRIBUTOR
| null |
This commit mainly adds examples on usage. This commit also fills in
information suggested by `validate_docstrings.py` script.
Ran
```
python scripts/validate_docstrings.py pandas.DataFrame.insert
```
to check docs and added in suggested information (e.g., See Also section).
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37690/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37690/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37690.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37690",
"merged_at": "2020-12-08T18:32:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37690.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37690"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37691
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37691/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37691/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37691/events
|
https://github.com/pandas-dev/pandas/pull/37691
| 738,338,920
|
MDExOlB1bGxSZXF1ZXN0NTE3MjA2ODM2
| 37,691
|
REF: make Series._replace_single a regular method
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-11-07T23:44:47Z
| 2020-11-08T02:41:15Z
| 2020-11-08T02:10:13Z
|
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/37691/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37691/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37691.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37691",
"merged_at": "2020-11-08T02:10:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37691.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37691"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/37692
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37692/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37692/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37692/events
|
https://github.com/pandas-dev/pandas/issues/37692
| 738,343,890
|
MDU6SXNzdWU3MzgzNDM4OTA=
| 37,692
|
TST: Add tests for dtype changes when assigning values via indexing
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "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": "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": "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
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/32043733?v=4",
"events_url": "https://api.github.com/users/allenmac347/events{/privacy}",
"followers_url": "https://api.github.com/users/allenmac347/followers",
"following_url": "https://api.github.com/users/allenmac347/following{/other_user}",
"gists_url": "https://api.github.com/users/allenmac347/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/allenmac347",
"id": 32043733,
"login": "allenmac347",
"node_id": "MDQ6VXNlcjMyMDQzNzMz",
"organizations_url": "https://api.github.com/users/allenmac347/orgs",
"received_events_url": "https://api.github.com/users/allenmac347/received_events",
"repos_url": "https://api.github.com/users/allenmac347/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/allenmac347/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/allenmac347/subscriptions",
"type": "User",
"url": "https://api.github.com/users/allenmac347"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/32043733?v=4",
"events_url": "https://api.github.com/users/allenmac347/events{/privacy}",
"followers_url": "https://api.github.com/users/allenmac347/followers",
"following_url": "https://api.github.com/users/allenmac347/following{/other_user}",
"gists_url": "https://api.github.com/users/allenmac347/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/allenmac347",
"id": 32043733,
"login": "allenmac347",
"node_id": "MDQ6VXNlcjMyMDQzNzMz",
"organizations_url": "https://api.github.com/users/allenmac347/orgs",
"received_events_url": "https://api.github.com/users/allenmac347/received_events",
"repos_url": "https://api.github.com/users/allenmac347/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/allenmac347/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/allenmac347/subscriptions",
"type": "User",
"url": "https://api.github.com/users/allenmac347"
}
] | null | 13
| 2020-11-08T00:25:45Z
| 2021-01-28T03:10:01Z
| null |
MEMBER
| null |
#37680 will fix the assigning problems reported in #26395.
We should add further tests for iloc/iat and different dtypes for all cases (loc, at, iloc, iat)
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/37692/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37692/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37693
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37693/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37693/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37693/events
|
https://github.com/pandas-dev/pandas/issues/37693
| 738,346,536
|
MDU6SXNzdWU3MzgzNDY1MzY=
| 37,693
|
QST: read_stata encoding problem..
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/51902242?v=4",
"events_url": "https://api.github.com/users/fdq09eca/events{/privacy}",
"followers_url": "https://api.github.com/users/fdq09eca/followers",
"following_url": "https://api.github.com/users/fdq09eca/following{/other_user}",
"gists_url": "https://api.github.com/users/fdq09eca/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fdq09eca",
"id": 51902242,
"login": "fdq09eca",
"node_id": "MDQ6VXNlcjUxOTAyMjQy",
"organizations_url": "https://api.github.com/users/fdq09eca/orgs",
"received_events_url": "https://api.github.com/users/fdq09eca/received_events",
"repos_url": "https://api.github.com/users/fdq09eca/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fdq09eca/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fdq09eca/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fdq09eca"
}
|
[
{
"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": "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"
},
{
"color": "be21f2",
"default": false,
"description": "May be closeable, needs more eyeballs",
"id": 2365504893,
"name": "Closing Candidate",
"node_id": "MDU6TGFiZWwyMzY1NTA0ODkz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Closing%20Candidate"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-11-08T00:48:40Z
| 2021-02-06T00:06:56Z
| 2021-02-06T00:06:56Z
|
NONE
| null |
I have a `.dta` file with Vietnamese categorial data.
`df = pd.read_stata('MucA.dta')` produces the following df:
```
tinh huyen xa diaban hoso matv m1ac2 m1ac3 ... m1ac12 m1ac13 m1ac14a m1ac14b m1ac15a m1ac15b m1ac15c m1ac15d
0 Thµnh phè Hµ Néi 1 4 8 13 2 Nam Vî chång ... Trong x· phêng NaN NaN NaN Kh«ng Kh«ng Cã Kh«ng
1 Thµnh phè Hµ Néi 1 4 8 13 1 N÷ Chñ hé ... Trong x· phêng NaN NaN NaN Kh«ng Kh«ng Cã Kh«ng
2 Thµnh phè Hµ Néi 1 4 8 14 2 Nam Kh¸c ... N¬i kh¸c trong tØnh NaN NaN NaN Kh«ng Kh«ng Kh«ng Kh«ng
3 Thµnh phè Hµ Néi 1 4 8 14 1 N÷ Chñ hé ... Trong x· phêng NaN NaN NaN Kh«ng Kh«ng Kh«ng Kh«ng
4 Thµnh phè Hµ Néi 1 4 8 15 2 N÷ Vî chång ... Trong x· phêng NaN NaN NaN Kh«ng Cã Kh«ng Kh«ng
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
36076 TØnh Cµ Mau 973 32248 2 15 4 N÷ Con ... Trong x· phêng NaN NaN NaN NaN NaN NaN NaN
36077 TØnh Cµ Mau 973 32248 2 15 5 N÷ Con ... Trong x· phêng NaN NaN NaN NaN NaN NaN NaN
36078 TØnh Cµ Mau 973 32248 2 15 1 Nam Chñ hé ... Trong x· phêng NaN NaN NaN Kh«ng Kh«ng Kh«ng Kh«ng
36079 TØnh Cµ Mau 973 32248 2 15 2 N÷ Vî chång ... Trong x· phêng NaN NaN NaN Kh«ng Kh«ng Kh«ng Kh«ng
36080 TØnh Cµ Mau 973 32248 2 15 3 N÷ Con ... Trong x· phêng NaN NaN NaN Kh«ng Kh«ng Kh«ng Kh«ng
```
I want to try other encodings to restore the Vietnamese characters, how may I do 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/37693/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37693/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37694
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37694/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37694/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37694/events
|
https://github.com/pandas-dev/pandas/pull/37694
| 738,359,524
|
MDExOlB1bGxSZXF1ZXN0NTE3MjIxOTg2
| 37,694
|
TYP: @final for NDFrame 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": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-11-08T02:52:02Z
| 2020-11-10T23:28:45Z
| 2020-11-10T23:16:46Z
|
MEMBER
| null |
attempt 2
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37694/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37694/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37694.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37694",
"merged_at": "2020-11-10T23:16:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37694.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37694"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37695
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37695/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37695/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37695/events
|
https://github.com/pandas-dev/pandas/pull/37695
| 738,367,217
|
MDExOlB1bGxSZXF1ZXN0NTE3MjI3Njk3
| 37,695
|
Dataframe.sum() returns an error with MultiIndex columns and skipna=False
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41546976?v=4",
"events_url": "https://api.github.com/users/GYHHAHA/events{/privacy}",
"followers_url": "https://api.github.com/users/GYHHAHA/followers",
"following_url": "https://api.github.com/users/GYHHAHA/following{/other_user}",
"gists_url": "https://api.github.com/users/GYHHAHA/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/GYHHAHA",
"id": 41546976,
"login": "GYHHAHA",
"node_id": "MDQ6VXNlcjQxNTQ2OTc2",
"organizations_url": "https://api.github.com/users/GYHHAHA/orgs",
"received_events_url": "https://api.github.com/users/GYHHAHA/received_events",
"repos_url": "https://api.github.com/users/GYHHAHA/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/GYHHAHA/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GYHHAHA/subscriptions",
"type": "User",
"url": "https://api.github.com/users/GYHHAHA"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-11-08T04:02:54Z
| 2020-11-08T14:55:31Z
| 2020-11-08T14:55:08Z
|
CONTRIBUTOR
| null |
- [ ] closes #37622
- [ ] 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/37695/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37695/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37695.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37695",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/37695.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37695"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37696
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37696/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37696/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37696/events
|
https://github.com/pandas-dev/pandas/pull/37696
| 738,368,165
|
MDExOlB1bGxSZXF1ZXN0NTE3MjI4Mzk0
| 37,696
|
REF: implement replace_regex, remove unreachable branch in ObjectBlock.replace
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-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"
}
| 3
| 2020-11-08T04:12:17Z
| 2020-11-09T03:32:20Z
| 2020-11-09T03:30:12Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37696/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37696/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37696.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37696",
"merged_at": "2020-11-09T03:30:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37696.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37696"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/37697
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37697/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37697/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37697/events
|
https://github.com/pandas-dev/pandas/pull/37697
| 738,376,647
|
MDExOlB1bGxSZXF1ZXN0NTE3MjM0OTA4
| 37,697
|
DOC: capitalize Gregorian and fix word order
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2754821?v=4",
"events_url": "https://api.github.com/users/erictleung/events{/privacy}",
"followers_url": "https://api.github.com/users/erictleung/followers",
"following_url": "https://api.github.com/users/erictleung/following{/other_user}",
"gists_url": "https://api.github.com/users/erictleung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/erictleung",
"id": 2754821,
"login": "erictleung",
"node_id": "MDQ6VXNlcjI3NTQ4MjE=",
"organizations_url": "https://api.github.com/users/erictleung/orgs",
"received_events_url": "https://api.github.com/users/erictleung/received_events",
"repos_url": "https://api.github.com/users/erictleung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/erictleung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/erictleung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/erictleung"
}
|
[
{
"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-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-11-08T05:28:39Z
| 2020-11-10T02:03:22Z
| 2020-11-09T21:10:46Z
|
CONTRIBUTOR
| null |
Gregorian is a proper noun
(https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). Also,
"proleptic" is modifying the compound noun "Gregorian epoch" rather than
"Gregorian" modifying a "proleptic epoch".
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37697/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37697/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37697.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37697",
"merged_at": "2020-11-09T21:10:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37697.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37697"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37698
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37698/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37698/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37698/events
|
https://github.com/pandas-dev/pandas/issues/37698
| 738,414,526
|
MDU6SXNzdWU3Mzg0MTQ1MjY=
| 37,698
|
BUG: PyMysql : module 'sqlalchemy' has no attribute 'engine'
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/27845606?v=4",
"events_url": "https://api.github.com/users/92376/events{/privacy}",
"followers_url": "https://api.github.com/users/92376/followers",
"following_url": "https://api.github.com/users/92376/following{/other_user}",
"gists_url": "https://api.github.com/users/92376/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/92376",
"id": 27845606,
"login": "92376",
"node_id": "MDQ6VXNlcjI3ODQ1NjA2",
"organizations_url": "https://api.github.com/users/92376/orgs",
"received_events_url": "https://api.github.com/users/92376/received_events",
"repos_url": "https://api.github.com/users/92376/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/92376/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/92376/subscriptions",
"type": "User",
"url": "https://api.github.com/users/92376"
}
|
[
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-11-08T07:56:26Z
| 2021-02-28T13:02:30Z
| 2021-02-28T13:02:30Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [ ] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
# Your code here
self.conn = pymysql.connect(**info_dic)
pd.read_sql(sql, self.conn)
```
#### Problem description
line 53, in read_data_frame return pd.read_sql(sql, self.conn) File "/usr/local/lib/python3.6/site-packages/pandas/io/sql.py", line 394, in read_sql pandas_sql = pandasSQL_builder(con) File "/usr/local/lib/python3.6/site-packages/pandas/io/sql.py", line 532, in pandasSQL_builder if _is_sqlalchemy_connectable(con): File "/usr/local/lib/python3.6/site-packages/pandas/io/sql.py", line 86, in _is_sqlalchemy_connectable return isinstance(con, sqlalchemy.engine.Connectable) AttributeError: module 'sqlalchemy' has no attribute 'engine'
[this should explain **why** the current behaviour is a problem and why the expected output is a better solution]
#### Expected Output
#### 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.6.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.224-1.el7.elrepo.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.utf8
LOCALE: en_US.UTF-8
pandas: 0.20.3
pytest: None
pip: 10.0.1
setuptools: 28.8.0
Cython: 0.28.1
numpy: 1.14.0
scipy: 1.0.0
xarray: None
IPython: None
sphinx: None
patsy: 0.5.0
dateutil: 2.6.1
pytz: 2017.3
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.2.2
openpyxl: 2.5.2
xlrd: 1.1.0
xlwt: None
xlsxwriter: None
lxml: 4.5.2
bs4: None
html5lib: None
sqlalchemy: 1.2.4
pymysql: 0.8.0
psycopg2: None
jinja2: None
s3fs: None
pandas_gbq: None
pandas_datareader: 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/37698/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37698/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37699
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37699/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37699/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37699/events
|
https://github.com/pandas-dev/pandas/pull/37699
| 738,420,691
|
MDExOlB1bGxSZXF1ZXN0NTE3MjczMDc4
| 37,699
|
Addressed comments for doc update
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10372220?v=4",
"events_url": "https://api.github.com/users/taytzehao/events{/privacy}",
"followers_url": "https://api.github.com/users/taytzehao/followers",
"following_url": "https://api.github.com/users/taytzehao/following{/other_user}",
"gists_url": "https://api.github.com/users/taytzehao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/taytzehao",
"id": 10372220,
"login": "taytzehao",
"node_id": "MDQ6VXNlcjEwMzcyMjIw",
"organizations_url": "https://api.github.com/users/taytzehao/orgs",
"received_events_url": "https://api.github.com/users/taytzehao/received_events",
"repos_url": "https://api.github.com/users/taytzehao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/taytzehao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/taytzehao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/taytzehao"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-11-08T08:44:47Z
| 2020-12-06T23:48:52Z
| 2020-12-06T23:48:51Z
|
CONTRIBUTOR
| null |
-Arranged alignment, and addressed comments for the document enhancement.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37699/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37699/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37699.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37699",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/37699.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37699"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37700
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37700/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37700/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37700/events
|
https://github.com/pandas-dev/pandas/pull/37700
| 738,443,838
|
MDExOlB1bGxSZXF1ZXN0NTE3Mjg5ODU0
| 37,700
|
DOC: Add caveat to to_stata with version=119
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/19281800?v=4",
"events_url": "https://api.github.com/users/hongshaoyang/events{/privacy}",
"followers_url": "https://api.github.com/users/hongshaoyang/followers",
"following_url": "https://api.github.com/users/hongshaoyang/following{/other_user}",
"gists_url": "https://api.github.com/users/hongshaoyang/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hongshaoyang",
"id": 19281800,
"login": "hongshaoyang",
"node_id": "MDQ6VXNlcjE5MjgxODAw",
"organizations_url": "https://api.github.com/users/hongshaoyang/orgs",
"received_events_url": "https://api.github.com/users/hongshaoyang/received_events",
"repos_url": "https://api.github.com/users/hongshaoyang/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hongshaoyang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hongshaoyang/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hongshaoyang"
}
|
[
{
"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": "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-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 2
| 2020-11-08T11:20:49Z
| 2020-11-10T04:08:07Z
| 2020-11-10T03:38:45Z
|
CONTRIBUTOR
| null |
- [x] closes #37490
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37700/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37700/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37700.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37700",
"merged_at": "2020-11-10T03:38:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37700.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37700"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37701
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37701/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37701/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37701/events
|
https://github.com/pandas-dev/pandas/pull/37701
| 738,455,911
|
MDExOlB1bGxSZXF1ZXN0NTE3Mjk4NDky
| 37,701
|
DOC: Highlight pre-commit section
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/19281800?v=4",
"events_url": "https://api.github.com/users/hongshaoyang/events{/privacy}",
"followers_url": "https://api.github.com/users/hongshaoyang/followers",
"following_url": "https://api.github.com/users/hongshaoyang/following{/other_user}",
"gists_url": "https://api.github.com/users/hongshaoyang/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hongshaoyang",
"id": 19281800,
"login": "hongshaoyang",
"node_id": "MDQ6VXNlcjE5MjgxODAw",
"organizations_url": "https://api.github.com/users/hongshaoyang/orgs",
"received_events_url": "https://api.github.com/users/hongshaoyang/received_events",
"repos_url": "https://api.github.com/users/hongshaoyang/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hongshaoyang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hongshaoyang/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hongshaoyang"
}
|
[
{
"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-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 5
| 2020-11-08T12:36:07Z
| 2020-11-10T09:43:17Z
| 2020-11-10T09:42:08Z
|
CONTRIBUTOR
| null |
- [x] closes #37358
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37701/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37701/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37701.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37701",
"merged_at": "2020-11-10T09:42:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37701.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37701"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37702
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37702/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37702/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37702/events
|
https://github.com/pandas-dev/pandas/pull/37702
| 738,485,836
|
MDExOlB1bGxSZXF1ZXN0NTE3MzIwMzk2
| 37,702
|
CLN: Simplify groupby head/tail tests
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4",
"events_url": "https://api.github.com/users/rhshadrach/events{/privacy}",
"followers_url": "https://api.github.com/users/rhshadrach/followers",
"following_url": "https://api.github.com/users/rhshadrach/following{/other_user}",
"gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rhshadrach",
"id": 45562402,
"login": "rhshadrach",
"node_id": "MDQ6VXNlcjQ1NTYyNDAy",
"organizations_url": "https://api.github.com/users/rhshadrach/orgs",
"received_events_url": "https://api.github.com/users/rhshadrach/received_events",
"repos_url": "https://api.github.com/users/rhshadrach/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rhshadrach"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-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-11-08T15:08:24Z
| 2020-12-06T14:04:53Z
| 2020-11-09T00:39:05Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Going to add axis=1 tests as part of resolution of #9772, simplifying test first.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37702/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37702/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37702.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37702",
"merged_at": "2020-11-09T00:39:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37702.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37702"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37703
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37703/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37703/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37703/events
|
https://github.com/pandas-dev/pandas/pull/37703
| 738,493,471
|
MDExOlB1bGxSZXF1ZXN0NTE3MzI2MDk0
| 37,703
|
remove unnecessary use of Appender
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61093810?v=4",
"events_url": "https://api.github.com/users/smartvinnetou/events{/privacy}",
"followers_url": "https://api.github.com/users/smartvinnetou/followers",
"following_url": "https://api.github.com/users/smartvinnetou/following{/other_user}",
"gists_url": "https://api.github.com/users/smartvinnetou/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/smartvinnetou",
"id": 61093810,
"login": "smartvinnetou",
"node_id": "MDQ6VXNlcjYxMDkzODEw",
"organizations_url": "https://api.github.com/users/smartvinnetou/orgs",
"received_events_url": "https://api.github.com/users/smartvinnetou/received_events",
"repos_url": "https://api.github.com/users/smartvinnetou/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/smartvinnetou/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/smartvinnetou/subscriptions",
"type": "User",
"url": "https://api.github.com/users/smartvinnetou"
}
|
[
{
"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-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-11-08T15:44:52Z
| 2020-11-11T20:31:02Z
| 2020-11-11T20:30:48Z
|
CONTRIBUTOR
| null |
- [x] ref #31942
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] removes the last use of Appender() in NDFrame
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37703/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37703/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37703.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37703",
"merged_at": "2020-11-11T20:30:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37703.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37703"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37704
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37704/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37704/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37704/events
|
https://github.com/pandas-dev/pandas/pull/37704
| 738,523,217
|
MDExOlB1bGxSZXF1ZXN0NTE3MzQ3ODU1
| 37,704
|
REF: simplify NDFrame.replace, ObjectBlock.replace
|
{
"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-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-11-08T18:16:28Z
| 2020-11-09T00:39:32Z
| 2020-11-09T00:37:00Z
|
MEMBER
| null |
This makes it so that we only call BlockManager.replace from one spot, so we can rule out more cases when reasoning about the arguments in ObjectBlock.replace.
This will have a merge conflict with #37696; doesnt matter which one goes in first. One both are in, there are further simplifications available.
I'm hopeful that we'll be able to get rid of Categorical.replace altogether (and with it, CategoricalBlock.replace, CategoricalBlock._replace_list), but that's a few steps away at best.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37704/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37704/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37704.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37704",
"merged_at": "2020-11-09T00:37:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37704.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37704"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37705
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37705/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37705/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37705/events
|
https://github.com/pandas-dev/pandas/issues/37705
| 738,550,794
|
MDU6SXNzdWU3Mzg1NTA3OTQ=
| 37,705
|
BUG: read_html - file path cannot be pathlib.Path type
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/60992048?v=4",
"events_url": "https://api.github.com/users/simon-spier0/events{/privacy}",
"followers_url": "https://api.github.com/users/simon-spier0/followers",
"following_url": "https://api.github.com/users/simon-spier0/following{/other_user}",
"gists_url": "https://api.github.com/users/simon-spier0/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simon-spier0",
"id": 60992048,
"login": "simon-spier0",
"node_id": "MDQ6VXNlcjYwOTkyMDQ4",
"organizations_url": "https://api.github.com/users/simon-spier0/orgs",
"received_events_url": "https://api.github.com/users/simon-spier0/received_events",
"repos_url": "https://api.github.com/users/simon-spier0/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simon-spier0/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simon-spier0/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simon-spier0"
}
|
[
{
"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": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] |
closed
| false
| null |
[] |
{
"closed_at": 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"
}
| 3
| 2020-11-08T20:47:34Z
| 2020-11-11T02:30:17Z
| 2020-11-11T02:30:16Z
|
NONE
| null |
```python
import pandas as pd
from pathlib import Path
file_path_string = r'C:\Users\Desktop\my_file.html'
file_path = Path(file_path_string)
df1 = pd.read_html(file_path_string)[0] # works fine
df2 = pd.read_html(file_path)[0] # raises TypeError: cannot parse 'from WindowsPath'
```
Why do `read_excel()`, `read_csv()`, `to_excel()`, `to_csv()`, ... support `pathlib.Path` while `read_html()` doesn't?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37705/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37705/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37706
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37706/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37706/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37706/events
|
https://github.com/pandas-dev/pandas/pull/37706
| 738,568,926
|
MDExOlB1bGxSZXF1ZXN0NTE3MzgxMjg1
| 37,706
|
BUG: Fix return of missing values when applying loc to single level of MultiIndex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 2
| 2020-11-08T22:31:11Z
| 2020-11-09T20:29:14Z
| 2020-11-09T20:27:35Z
|
MEMBER
| null |
- [x] closes #27104
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This confused ``-1`` representing missing values in input with the ``-1`` signaling which components to exclude from output.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37706/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37706/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37706.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37706",
"merged_at": "2020-11-09T20:27:35Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37706.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37706"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37707
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37707/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37707/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37707/events
|
https://github.com/pandas-dev/pandas/pull/37707
| 738,601,642
|
MDExOlB1bGxSZXF1ZXN0NTE3NDA3MTM1
| 37,707
|
Bug in loc raised Error when non-integer slice was given for MultiIndex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 7
| 2020-11-09T01:05:41Z
| 2020-11-24T22:01:54Z
| 2020-11-24T21:59:58Z
|
MEMBER
| null |
- [x] closes #25165
- [x] closes #24263
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
A slice return caused issues everywhere, when this function was used. So I unpacked it right in there.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37707/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37707/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37707.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37707",
"merged_at": "2020-11-24T21:59:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37707.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37707"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37708
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37708/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37708/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37708/events
|
https://github.com/pandas-dev/pandas/issues/37708
| 738,614,722
|
MDU6SXNzdWU3Mzg2MTQ3MjI=
| 37,708
|
BUG: Wrong index after monthly resampling
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/37740842?v=4",
"events_url": "https://api.github.com/users/justmert/events{/privacy}",
"followers_url": "https://api.github.com/users/justmert/followers",
"following_url": "https://api.github.com/users/justmert/following{/other_user}",
"gists_url": "https://api.github.com/users/justmert/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/justmert",
"id": 37740842,
"login": "justmert",
"node_id": "MDQ6VXNlcjM3NzQwODQy",
"organizations_url": "https://api.github.com/users/justmert/orgs",
"received_events_url": "https://api.github.com/users/justmert/received_events",
"repos_url": "https://api.github.com/users/justmert/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/justmert/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/justmert/subscriptions",
"type": "User",
"url": "https://api.github.com/users/justmert"
}
|
[
{
"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 | 3
| 2020-11-09T01:53:36Z
| 2020-11-09T02:54:31Z
| 2020-11-09T02:54:31Z
|
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.
---
#### Reproduce
```python
df_sent = df_date.groupby('name').resample('M').count()
```
**df_date**

**df_sent**

#### Problem description
When i resample my dataframe to month, it gives wrong index. As you can see my dataframe (__df_date__) has dates from __2020-06-13 10:23:00__ to __2020-09-11 00:22:00__ which has month **6** to **9** so if i resample to month, i expect new dataframe's months from __2020-06__ to __2020-09__.
#### Expected Output

After resampling, new dataframe needs to has these months just like the above
I have searched a solution to this unexpected behaviour and couldn't find anything. If i have wrong intuition about resampling, please correct me. Also i have encountered the same problem in [stackoverflow](https://stackoverflow.com/questions/52527619/wrong-index-after-monthly-resampling-of-dataframe-pandas) which hasn't got a solution
#### Output of ``pd.show_versions()``
<details>
pandas version= 1.1.3
INSTALLED VERSIONS
------------------
commit : db08276bc116c438d3fdee492026f8223584c477
python : 3.7.9.final.0
python-bits : 64
OS : Linux
OS-release : 5.9.4-arch1-1
Version : #1 SMP PREEMPT Wed, 04 Nov 2020 21:41:09 +0000
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.3
numpy : 1.19.2
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.4
setuptools : 50.3.0.post20201006
Cython : 0.29.21
pytest : 6.1.1
hypothesis : None
sphinx : 3.2.1
blosc : None
feather : None
xlsxwriter : 1.3.7
lxml.etree : 4.6.1
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.18.1
pandas_datareader: None
bs4 : 4.9.3
bottleneck : 1.3.2
fsspec : 0.8.3
fastparquet : None
gcsfs : None
matplotlib : 3.3.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : 1.3.20
tables : 3.6.1
tabulate : 0.8.7
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
numba : 0.51.2
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37708/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37708/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37709
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37709/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37709/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37709/events
|
https://github.com/pandas-dev/pandas/issues/37709
| 738,621,757
|
MDU6SXNzdWU3Mzg2MjE3NTc=
| 37,709
|
QST: panda fillna SettingWithCopyWarning:
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/45639232?v=4",
"events_url": "https://api.github.com/users/FeifanLu/events{/privacy}",
"followers_url": "https://api.github.com/users/FeifanLu/followers",
"following_url": "https://api.github.com/users/FeifanLu/following{/other_user}",
"gists_url": "https://api.github.com/users/FeifanLu/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/FeifanLu",
"id": 45639232,
"login": "FeifanLu",
"node_id": "MDQ6VXNlcjQ1NjM5MjMy",
"organizations_url": "https://api.github.com/users/FeifanLu/orgs",
"received_events_url": "https://api.github.com/users/FeifanLu/received_events",
"repos_url": "https://api.github.com/users/FeifanLu/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/FeifanLu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FeifanLu/subscriptions",
"type": "User",
"url": "https://api.github.com/users/FeifanLu"
}
|
[
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "207de5",
"default": false,
"description": "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": "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-11-09T02:17:57Z
| 2021-02-28T13:00:47Z
| 2021-02-28T13:00:47Z
|
NONE
| null |
- [x] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions.
- [x] I have asked my usage related question on [StackOverflow](https://stackoverflow.com).
---
#### Question about pandas
I tried two different lines of code.
Both of them gave me the desired outcome, which replaced the NANs by '0'. However, the first line did not give me settingwithcopy warning, the second one did. I am so confused. Can anyone tell me why? Is that because the X.loc[0:, 'Type'] returned a view and X.loc[:, 'Type'] returned a copy? If the second one returned a copy, why X's NANs have been replaced?
**Note**: If you'd still like to submit a question, please read [this guide](
https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your question.
```python
# Your code here, if applicable
X.loc[0:, 'Type'].fillna('0', inplace=True)
X.loc[:, 'Type'].fillna('0', inplace=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/37709/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37709/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37710
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37710/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37710/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37710/events
|
https://github.com/pandas-dev/pandas/pull/37710
| 738,657,951
|
MDExOlB1bGxSZXF1ZXN0NTE3NDUxNzE3
| 37,710
|
REF: remove ObjectBlock._replace_single
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-11-09T04:07:19Z
| 2020-11-09T15:53:13Z
| 2020-11-09T12:52: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/37710/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37710/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37710.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37710",
"merged_at": "2020-11-09T12:52:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37710.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37710"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/37711
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37711/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37711/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37711/events
|
https://github.com/pandas-dev/pandas/issues/37711
| 738,848,452
|
MDU6SXNzdWU3Mzg4NDg0NTI=
| 37,711
|
BUG: errors with `.loc[(slice(...), ), ]` when modifying a subset of rows in a pandas dataframe/series in 1.1.4
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18346451?v=4",
"events_url": "https://api.github.com/users/taozuoqiao/events{/privacy}",
"followers_url": "https://api.github.com/users/taozuoqiao/followers",
"following_url": "https://api.github.com/users/taozuoqiao/following{/other_user}",
"gists_url": "https://api.github.com/users/taozuoqiao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/taozuoqiao",
"id": 18346451,
"login": "taozuoqiao",
"node_id": "MDQ6VXNlcjE4MzQ2NDUx",
"organizations_url": "https://api.github.com/users/taozuoqiao/orgs",
"received_events_url": "https://api.github.com/users/taozuoqiao/received_events",
"repos_url": "https://api.github.com/users/taozuoqiao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/taozuoqiao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/taozuoqiao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/taozuoqiao"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-08T12:11:38Z",
"closed_issues": 81,
"created_at": "2020-10-29T13:43:23Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-12-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/79",
"id": 6047124,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79/labels",
"node_id": "MDk6TWlsZXN0b25lNjA0NzEyNA==",
"number": 79,
"open_issues": 0,
"state": "closed",
"title": "1.1.5",
"updated_at": "2020-12-08T12:11:38Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79"
}
| 4
| 2020-11-09T09:20:16Z
| 2020-11-15T03:36:03Z
| 2020-11-14T16:51:58Z
|
NONE
| null |
I often use `.loc[(slice(...),),]` for selection and modifying when dealing with both series and dataframe: see
[advanced-indexing-with-hierarchical-index](https://pandas.pydata.org/pandas-docs/stable/user_guide/advanced.html#advanced-indexing-with-hierarchical-index)
> In [43]: df.loc['bar']
Out[43]:
A B C
second
one 0.895717 0.410835 -1.413681
two 0.805244 0.813850 1.607920
> This is a shortcut for the slightly more verbose notation df.loc[('bar',),] (equivalent to df.loc['bar',] in this example).
Every thinkg is OK in `0.25.4`, but in `1.1.4` (also `1.0.3` and `1.1.3`), only selection is valid and modifying will raise errors:
```python
import pandas as pd
s = pd.Series([1,2,3], index=pd.MultiIndex.from_tuples([('a','A'), ('b','B'), ('c', 'C')]))
df = s.to_frame()
print(s.loc[('a', ), ])
print(df.loc[('a', ), ])
```
but when I try to modify a subset of rows using `.loc[(slice(...),),]`
```python
In [2]: df.loc[('a', ), ] = 0
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-2-480fc1763dde> in <module>
----> 1 df.loc[('a', ), ] = 0
~/opt/anaconda3/envs/edge/lib/python3.8/site-packages/pandas/core/indexing.py in __setitem__(self, key, value)
664 else:
665 key = com.apply_if_callable(key, self.obj)
--> 666 indexer = self._get_setitem_indexer(key)
667 self._has_valid_setitem_indexer(key)
668
~/opt/anaconda3/envs/edge/lib/python3.8/site-packages/pandas/core/indexing.py in _get_setitem_indexer(self, key)
591 """
592 if self.name == "loc":
--> 593 self._ensure_listlike_indexer(key)
594
595 if self.axis is not None:
~/opt/anaconda3/envs/edge/lib/python3.8/site-packages/pandas/core/indexing.py in _ensure_listlike_indexer(self, key, axis)
645 # key may be a tuple if we are .loc
646 # in that case, set key to the column part of key
--> 647 key = key[column_axis]
648 axis = column_axis
649
IndexError: tuple index out of range
```
and
```python
In [3]: s.loc[('a', ), ] = 0
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-3-c3a2e38a0417> in <module>
----> 1 s.loc[('a', ), ] = 0
~/opt/anaconda3/envs/edge/lib/python3.8/site-packages/pandas/core/indexing.py in __setitem__(self, key, value)
668
669 iloc = self if self.name == "iloc" else self.obj.iloc
--> 670 iloc._setitem_with_indexer(indexer, value)
671
672 def _validate_key(self, key, axis: int):
~/opt/anaconda3/envs/edge/lib/python3.8/site-packages/pandas/core/indexing.py in _setitem_with_indexer(self, indexer, value)
1633 if take_split_path:
1634 # Above we only set take_split_path to True for 2D cases
-> 1635 assert self.ndim == 2
1636 assert info_axis == 1
1637
AssertionError:
```
Note that “partial” indexing `.loc[slice(...)]` is still valid in ``1.1.4`:
```python
In [4]: df.loc['a'] = 0
In [5]: s.loc['a'] = 0
In [6]: df
Out[6]:
0
a A 0
b B 2
c C 3
In [7]: s
Out[7]:
a A 0
b B 2
c C 3
dtype: int64
```
Of course, `.loc[('a', )]` is valid for series and `.loc[('a', ), : ]` is vaild for dataframe, but I have to use different codes for series and dataframe.
Update on 20201113:
-----------------------
- For series, `s.loc[('a')] = 0`, `s.loc[('a', )] = 0` and `s.loc[('a'), ] = 0` are vaild, but `s.loc[('a', ), ] = 0` will raise similar AssertionError like above.
- For dataframe, `df.loc[('a')] = 0`, `df.loc[('a'), :] = 0` and `df.loc[('a',), :] = 0` are vaild, but `df.loc[('a', )] = 0` , `df.loc[('a'), ] = 0` and `df.loc[('a', ), ] = 0` will raise similar IndexError like above.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37711/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37711/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37712
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37712/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37712/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37712/events
|
https://github.com/pandas-dev/pandas/issues/37712
| 738,854,210
|
MDU6SXNzdWU3Mzg4NTQyMTA=
| 37,712
|
BUG: rolling covariance then dropping nans doesn't drop first level index which corresponds to those nans
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26889541?v=4",
"events_url": "https://api.github.com/users/nwdset/events{/privacy}",
"followers_url": "https://api.github.com/users/nwdset/followers",
"following_url": "https://api.github.com/users/nwdset/following{/other_user}",
"gists_url": "https://api.github.com/users/nwdset/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nwdset",
"id": 26889541,
"login": "nwdset",
"node_id": "MDQ6VXNlcjI2ODg5NTQx",
"organizations_url": "https://api.github.com/users/nwdset/orgs",
"received_events_url": "https://api.github.com/users/nwdset/received_events",
"repos_url": "https://api.github.com/users/nwdset/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nwdset/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nwdset/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nwdset"
}
|
[
{
"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-11-09T09:28:04Z
| 2020-11-09T18:00:52Z
| 2020-11-09T18:00:52Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**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
```python
import numpy as np
import pandas as pd
df = pd.DataFrame(np.random.randn(10, 5))
df = df.rolling(5).cov().dropna()
df.index.levels[0]
```
#### Current Output
```python
Int64Index([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], dtype='int64')
```
#### Problem description
Since doing a rolling covariance would cause the first 4 entries to the dataframe to be nan, which I dropped. However, if I try to access the first level of the index, I would get the full original index, being from 0 to 9. One would expect to receive an index for which the corresponding nan entries was removed for the new first level index. However,
```python
df.index.get_level_values(0)
```
gives the expected output.
#### Expected Output
```python
Int64Index([4, 5, 6, 7, 8, 9], dtype='int64')
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 67a3d4241ab84419856b84fc3ebc9abcbe66c6b3
python : 3.9.0.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19041
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_United States.1252
pandas : 1.1.4
numpy : 1.19.3
pytz : 2020.4
dateutil : 2.8.1
pip : 20.2.4
setuptools : 50.3.2
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.19.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.2
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37712/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37712/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37713
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37713/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37713/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37713/events
|
https://github.com/pandas-dev/pandas/pull/37713
| 738,939,008
|
MDExOlB1bGxSZXF1ZXN0NTE3Njg4NjU4
| 37,713
|
Backport PR #37657 on branch 1.1.x: BUG: unpickling modifies Block.ndim
|
{
"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": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-08T12:11:38Z",
"closed_issues": 81,
"created_at": "2020-10-29T13:43:23Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-12-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/79",
"id": 6047124,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79/labels",
"node_id": "MDk6TWlsZXN0b25lNjA0NzEyNA==",
"number": 79,
"open_issues": 0,
"state": "closed",
"title": "1.1.5",
"updated_at": "2020-12-08T12:11:38Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79"
}
| 0
| 2020-11-09T11:19:25Z
| 2020-11-09T12:49:28Z
| 2020-11-09T12:49:09Z
|
MEMBER
| null |
Backport PR #37657
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37713/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37713/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37713.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37713",
"merged_at": "2020-11-09T12:49:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37713.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37713"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37714
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37714/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37714/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37714/events
|
https://github.com/pandas-dev/pandas/pull/37714
| 738,982,486
|
MDExOlB1bGxSZXF1ZXN0NTE3NzI1MDkw
| 37,714
|
CLN: cleanup, deduplicate plotting/test_frame
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
|
[
{
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-11-09T12:23:17Z
| 2020-11-10T04:44:38Z
| 2020-11-09T18:57:51Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
1. Make more reasonable var names
2. Get rid of one test in favor of parametrization in another one
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37714/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37714/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37714.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37714",
"merged_at": "2020-11-09T18:57:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37714.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37714"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37715
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37715/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37715/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37715/events
|
https://github.com/pandas-dev/pandas/issues/37715
| 739,014,311
|
MDU6SXNzdWU3MzkwMTQzMTE=
| 37,715
|
TYP: investigate/fix ignored mypy errors
|
{
"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": "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": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
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"
}
| 19
| 2020-11-09T13:08:21Z
| 2021-11-08T18:03:32Z
| null |
MEMBER
| null |
In #37556 `# type: ignore` were added to silence mypy errors to be fixed 'later'. If an ignore is needed due to a error with the type checker, a comment with a reference to the mypy issue on the github mypy issue tracker should be included.
Further investigation or PRs welcome removing these ignores or adding comments with links to mypy issues if applicable. PRs should include 'xref #37715'
PRs could address just one error, a small handful of related errors or a complete module.
`grep -Ern "type: ?ignore" pandas/` currently gives 207 matches
<details>
```
pandas/tests/internals/test_internals.py:1258: assert df._mgr.blocks[0].values is arr # type:ignore[union-attr]
pandas/tests/indexes/object/test_indexing.py:73: (pd.IndexSlice["b":"y":-1], ""), # type: ignore[misc]
pandas/tests/indexes/object/test_indexing.py:74: (pd.IndexSlice["b"::-1], "b"), # type: ignore[misc]
pandas/tests/indexes/object/test_indexing.py:75: (pd.IndexSlice[:"b":-1], "yxdcb"), # type: ignore[misc]
pandas/tests/indexes/object/test_indexing.py:76: (pd.IndexSlice[:"y":-1], "y"), # type: ignore[misc]
pandas/tests/indexes/object/test_indexing.py:77: (pd.IndexSlice["y"::-1], "yxdcb"), # type: ignore[misc]
pandas/tests/indexes/object/test_indexing.py:78: (pd.IndexSlice["y"::-4], "yb"), # type: ignore[misc]
pandas/tests/indexes/object/test_indexing.py:80: (pd.IndexSlice[:"a":-1], "yxdcb"), # type: ignore[misc]
pandas/tests/indexes/object/test_indexing.py:81: (pd.IndexSlice[:"a":-2], "ydb"), # type: ignore[misc]
pandas/tests/indexes/object/test_indexing.py:82: (pd.IndexSlice["z"::-1], "yxdcb"), # type: ignore[misc]
pandas/tests/indexes/object/test_indexing.py:83: (pd.IndexSlice["z"::-3], "yc"), # type: ignore[misc]
pandas/tests/indexes/object/test_indexing.py:84: (pd.IndexSlice["m"::-1], "dcb"), # type: ignore[misc]
pandas/tests/indexes/object/test_indexing.py:85: (pd.IndexSlice[:"m":-1], "yx"), # type: ignore[misc]
pandas/tests/indexes/object/test_indexing.py:86: (pd.IndexSlice["a":"a":-1], ""), # type: ignore[misc]
pandas/tests/indexes/object/test_indexing.py:87: (pd.IndexSlice["z":"z":-1], ""), # type: ignore[misc]
pandas/tests/indexes/object/test_indexing.py:88: (pd.IndexSlice["m":"m":-1], ""), # type: ignore[misc]
pandas/tests/frame/indexing/test_setitem.py:229: + ["datetime64[ns, UTC]", "period[D]"], # type: ignore[list-item]
pandas/tests/io/xml/test_xml.py:683: filename, names="Col1, Col2, Col3", parser=parser # type: ignore[arg-type]
pandas/conftest.py:330: params=[pd.Index, pd.Series], ids=["index", "series"] # type: ignore[list-item]
pandas/_testing/_io.py:98: args = [] # type: ignore[assignment]
pandas/_testing/_io.py:219: errno = getattr(err.reason, "errno", None) # type: ignore[attr-defined]
pandas/_testing/__init__.py:574: idx = idx_func(nentries) # type: ignore[operator]
pandas/util/_decorators.py:93: return wrapper # type: ignore[return-value]
pandas/util/_decorators.py:341: func.__signature__ = sig # type: ignore[attr-defined]
pandas/util/_decorators.py:380: docstring._docstring_components # type: ignore[union-attr]
pandas/util/_decorators.py:396: decorated._docstring_components = ( # type: ignore[attr-defined]
pandas/core/generic.py:755: new_values, *new_axes # type: ignore[arg-type]
pandas/core/generic.py:4344: return self.rename(**mapper) # type: ignore[return-value, arg-type]
pandas/core/generic.py:4408: return self.rename(**mapper) # type: ignore[return-value, arg-type]
pandas/core/generic.py:10600: cls.any = any # type: ignore[assignment]
pandas/core/generic.py:10620: cls.all = all # type: ignore[assignment]
pandas/core/generic.py:10625: NDFrame.mad.__doc__, # type: ignore[arg-type]
pandas/core/generic.py:10638: cls.mad = mad # type: ignore[assignment]
pandas/core/generic.py:10661: cls.sem = sem # type: ignore[assignment]
pandas/core/generic.py:10683: cls.var = var # type: ignore[assignment]
pandas/core/generic.py:10706: cls.std = std # type: ignore[assignment]
pandas/core/generic.py:10721: cls.cummin = cummin # type: ignore[assignment]
pandas/core/generic.py:10736: cls.cummax = cummax # type: ignore[assignment]
pandas/core/generic.py:10751: cls.cumsum = cumsum # type: ignore[assignment]
pandas/core/generic.py:10766: cls.cumprod = cumprod # type: ignore[assignment]
pandas/core/generic.py:10793: cls.sum = sum # type: ignore[assignment]
pandas/core/generic.py:10819: cls.prod = prod # type: ignore[assignment]
pandas/core/generic.py:10836: cls.mean = mean # type: ignore[assignment]
pandas/core/generic.py:10852: cls.skew = skew # type: ignore[assignment]
pandas/core/generic.py:10871: cls.kurt = kurt # type: ignore[assignment]
pandas/core/generic.py:10890: cls.median = median # type: ignore[assignment]
pandas/core/generic.py:10908: cls.max = max # type: ignore[assignment]
pandas/core/generic.py:10926: cls.min = min # type: ignore[assignment]
pandas/core/generic.py:11049: return self._inplace_method(other, type(self).__add__) # type: ignore[operator]
pandas/core/generic.py:11052: return self._inplace_method(other, type(self).__sub__) # type: ignore[operator]
pandas/core/generic.py:11055: return self._inplace_method(other, type(self).__mul__) # type: ignore[operator]
pandas/core/generic.py:11059: other, type(self).__truediv__ # type: ignore[operator]
pandas/core/generic.py:11064: other, type(self).__floordiv__ # type: ignore[operator]
pandas/core/generic.py:11068: return self._inplace_method(other, type(self).__mod__) # type: ignore[operator]
pandas/core/generic.py:11071: return self._inplace_method(other, type(self).__pow__) # type: ignore[operator]
pandas/core/generic.py:11074: return self._inplace_method(other, type(self).__and__) # type: ignore[operator]
pandas/core/generic.py:11077: return self._inplace_method(other, type(self).__or__) # type: ignore[operator]
pandas/core/generic.py:11080: return self._inplace_method(other, type(self).__xor__) # type: ignore[operator]
pandas/core/dtypes/generic.py:43: @classmethod # type: ignore[misc]
pandas/core/dtypes/common.py:160: return arr.astype("int64", copy=copy, casting="safe") # type: ignore[call-arg]
pandas/core/dtypes/common.py:165: return arr.astype("uint64", copy=copy, casting="safe") # type: ignore[call-arg]
pandas/core/dtypes/cast.py:588: dtype, fill_value, type(fill_value) # type: ignore[arg-type]
pandas/core/dtypes/dtypes.py:680: unit, tz = unit.unit, unit.tz # type: ignore[attr-defined]
pandas/core/arrays/datetimelike.py:539: other = self._scalar_type(other) # type: ignore[call-arg]
pandas/core/arrays/datetimelike.py:590: fill_value = self._scalar_type(fill_value) # type: ignore[call-arg]
pandas/core/arrays/datetimelike.py:598: new_fill = self._scalar_type(fill_value) # type: ignore[call-arg]
pandas/core/arrays/datetimelike.py:660: value = self._scalar_type(value) # type: ignore[call-arg]
pandas/core/arrays/datetimelike.py:953: return self._resolution_obj.attrname # type: ignore[union-attr]
pandas/core/arrays/datetimelike.py:1777: uniques = uniques[::-1] # type: ignore[assignment]
pandas/core/arrays/string_.py:213: self._dtype = StringDtype() # type: ignore[assignment]
pandas/core/arrays/period.py:326: @property # type: ignore[misc]
pandas/core/arrays/boolean.py:81: def type(self) -> Type: # type: ignore[override]
pandas/core/arrays/interval.py:1350: @property # type: ignore[misc]
pandas/core/arrays/interval.py:1572: left = self._combined.view("complex128") # type:ignore[attr-defined]
pandas/core/arrays/floating.py:81: [t.numpy_dtype for t in dtypes], [] # type: ignore[union-attr]
pandas/core/internals/array_manager.py:151: def axes(self) -> List[Index]: # type: ignore[override]
pandas/core/internals/array_manager.py:457: if hasattr(arr, "tz") and arr.tz is None: # type: ignore[union-attr]
pandas/core/internals/array_manager.py:459: arr = arr._data # type: ignore[union-attr]
pandas/core/internals/array_manager.py:462: arr = arr._data # type: ignore[union-attr]
pandas/core/series.py:669: @Appender(base.IndexOpsMixin.array.__doc__) # type: ignore[misc]
pandas/core/series.py:1097: self._mgr = self._mgr.setitem( # type: ignore[assignment]
pandas/core/apply.py:563: new_func[k] = [v] # type:ignore[list-item]
pandas/core/nanops.py:1751: result = type(values)._simple_new( # type: ignore[attr-defined]
pandas/core/groupby/categorical.py:108: return ci.set_categories(c.categories) # type: ignore[attr-defined]
pandas/core/groupby/categorical.py:113: return ci.add_categories(new_cats) # type: ignore[attr-defined]
pandas/core/groupby/base.py:60: subset = self.obj # type: ignore[attr-defined]
pandas/core/groupby/base.py:69: groupby = self._groupby[key] # type: ignore[attr-defined]
pandas/core/groupby/base.py:72: groupby = self._groupby # type: ignore[attr-defined]
pandas/core/groupby/base.py:78: subset, groupby=groupby, parent=self, **kwargs # type: ignore[call-arg]
pandas/core/groupby/grouper.py:306: self.grouper, _, self.obj = get_grouper( # type: ignore[type-var]
pandas/core/groupby/grouper.py:393: return self.grouper.groups # type: ignore[union-attr]
pandas/core/indexes/datetimelike.py:85: @staticmethod # type: ignore[misc]
pandas/core/indexes/datetimelike.py:131: DatetimeLikeArrayMixin._hasnans.fget # type: ignore[attr-defined]
pandas/core/indexes/period.py:193: @property # type:ignore[misc]
pandas/core/indexes/period.py:200: @property # type:ignore[misc]
pandas/core/indexes/period.py:207: @property # type:ignore[misc]
pandas/core/indexes/category.py:347: ("ordered", self.ordered), # type: ignore[attr-defined]
pandas/core/indexes/base.py:6174: name = index_like.name # type: ignore[union-attr, attr-defined]
pandas/core/indexes/frozen.py:107: __setitem__ = __setslice__ = _disabled # type: ignore[assignment]
pandas/core/indexes/frozen.py:108: __delitem__ = __delslice__ = _disabled # type: ignore[assignment]
pandas/core/indexes/frozen.py:109: pop = append = extend = _disabled # type: ignore[assignment]
pandas/core/indexes/frozen.py:110: remove = sort = insert = _disabled # type: ignore[assignment]
pandas/core/indexes/multi.py:1479: self._names[lev] = name # type: ignore[has-type]
pandas/core/common.py:497: return values # type: ignore[return-value]
pandas/core/reshape/merge.py:1028: join_names = [] # type: ignore[var-annotated]
pandas/core/ops/array_ops.py:372: res_values = filler(res_values) # type: ignore[operator]
pandas/core/base.py:118: mem = self.memory_usage(deep=True) # type: ignore[attr-defined]
pandas/core/base.py:229: self.obj, ABCSeries # type: ignore[attr-defined]
pandas/core/base.py:232: return self.obj # type: ignore[attr-defined]
pandas/core/base.py:235: return self.obj[self._selection] # type: ignore[attr-defined]
pandas/core/base.py:245: self.obj, ABCDataFrame # type: ignore[attr-defined]
pandas/core/base.py:248: return self.obj.reindex( # type: ignore[attr-defined]
pandas/core/base.py:253: if len(self.exclusions) > 0: # type: ignore[attr-defined]
pandas/core/base.py:256: return self.obj.drop(self.exclusions, axis=1) # type: ignore[attr-defined]
pandas/core/base.py:259: return self.obj # type: ignore[attr-defined]
pandas/core/base.py:268: self.obj.columns.intersection(key) # type: ignore[attr-defined]
pandas/core/base.py:272: set(key).difference(self.obj.columns) # type: ignore[attr-defined]
pandas/core/base.py:279: if key not in self.obj.columns: # type: ignore[attr-defined]
pandas/core/base.py:285: if key not in self.obj: # type: ignore[attr-defined]
pandas/core/base.py:611: return self.array.to_numpy( # type: ignore[call-arg]
pandas/core/base.py:924: self = cast("Categorical", self) # type: ignore[assignment]
pandas/core/base.py:927: return self._values.map(mapper) # type: ignore[union-attr]
pandas/core/base.py:945: values = self.astype(object)._values # type: ignore[attr-defined]
pandas/core/base.py:1183: return self.array.memory_usage(deep=deep) # type: ignore[attr-defined]
pandas/core/base.py:1318: return self[~duplicated] # type: ignore[index]
pandas/core/frame.py:1219: itertuple = collections.namedtuple( # type: ignore[misc]
pandas/core/frame.py:1236: def dot(self, other: Series) -> Series: # type: ignore[misc]
pandas/core/frame.py:2339: from pandas.io.stata import ( # type: ignore[no-redef]
pandas/core/frame.py:2344: from pandas.io.stata import ( # type: ignore[no-redef]
pandas/core/frame.py:2357: writer = statawriter( # type: ignore[call-arg]
pandas/core/frame.py:4082: unique_dtype.type, tuple(dtypes_set) # type: ignore[arg-type]
pandas/core/frame.py:5100: arrays.append(col) # type:ignore[arg-type]
pandas/core/frame.py:5144: def reset_index( # type: ignore[misc]
pandas/core/frame.py:5783: def sort_values( # type: ignore[override]
pandas/core/frame.py:6385: right._mgr, array_op # type: ignore[arg-type]
pandas/core/resample.py:142: self.grouper = None # type: ignore[assignment]
pandas/core/resample.py:465: self.loffset, # type: ignore[has-type]
pandas/core/resample.py:474: result.index = result.index + self.loffset # type: ignore[has-type]
pandas/core/resample.py:911: return self._downsample("std", ddof=ddof) # type: ignore[call-arg]
pandas/core/resample.py:929: return self._downsample("var", ddof=ddof) # type: ignore[call-arg]
pandas/core/resample.py:989: return self._downsample("quantile", q=q, **kwargs) # type: ignore[call-arg]
pandas/core/resample.py:1042: super().__init__(None) # type: ignore[call-arg]
pandas/core/resample.py:1109: and len(self.grouper.binlabels) > len(ax) # type: ignore[attr-defined]
pandas/core/config_init.py:332: ip = get_ipython() # type: ignore[name-defined]
pandas/core/computation/pytables.py:88: @property # type: ignore[misc]
pandas/core/computation/ops.py:89: supr_new = super(Term, klass).__new__ # type: ignore[misc]
pandas/core/computation/ops.py:610: operands = [op(env) for op in self.operands] # type: ignore[operator]
pandas/core/computation/expr.py:677: f"Invalid function call {node.func.id}" # type: ignore[attr-defined]
pandas/core/computation/expr.py:701: "keyword error in function call " # type: ignore[attr-defined]
pandas/core/computation/expressions.py:241: return _evaluate(op, op_str, a, b) # type: ignore[misc]
pandas/core/computation/scope.py:136: self.scope = self.scope.new_child( # type: ignore[assignment]
pandas/core/computation/scope.py:142: self.scope = self.scope.new_child( # type: ignore[assignment]
pandas/core/computation/scope.py:151: resolvers += tuple(local_dict.resolvers.maps) # type: ignore[has-type]
pandas/core/computation/scope.py:239: mapping[new_key] = new_value # type: ignore[index]
pandas/core/computation/scope.py:260: self.scope = self.scope.new_child(d) # type: ignore[assignment]
pandas/core/computation/scope.py:333: + self.resolvers.maps # type: ignore[operator]
pandas/core/computation/scope.py:334: + self.scope.maps # type: ignore[operator]
pandas/compat/pickle_compat.py:74: def __new__(cls) -> Series: # type: ignore[misc]
pandas/compat/pickle_compat.py:92: def __new__(cls) -> DataFrame: # type: ignore[misc]
pandas/compat/pickle_compat.py:191:class Unpickler(pkl._Unpickler): # type: ignore[name-defined]
pandas/plotting/_matplotlib/core.py:608: self.legend_handles = reversed( # type: ignore[assignment]
pandas/plotting/_matplotlib/core.py:614: self.legend_labels = reversed( # type: ignore[assignment]
pandas/plotting/_matplotlib/core.py:708: args = (x, y) # type: ignore[assignment]
pandas/plotting/_matplotlib/core.py:1161: plotf = self._plot # type: ignore[assignment]
pandas/plotting/_matplotlib/core.py:1611: blabels = None # type: ignore[assignment]
pandas/plotting/_matplotlib/timeseries.py:68: series.index = series.index.asfreq( # type: ignore[attr-defined]
pandas/plotting/_matplotlib/timeseries.py:248: weekdays = np.unique(index.dayofweek) # type: ignore[attr-defined]
pandas/plotting/_misc.py:534: self.__init__() # type: ignore[misc]
pandas/io/formats/excel.py:632: gen2 = ( # type: ignore[assignment]
pandas/io/formats/excel.py:838: writer = ExcelWriter( # type: ignore[abstract]
pandas/io/formats/printing.py:507: return head, tail # type: ignore[return-value]
pandas/io/formats/printing.py:532: attrs.append(("dtype", f"'{obj.dtype}'")) # type: ignore[attr-defined]
pandas/io/formats/printing.py:535: attrs.append(("name", default_pprint(obj.name))) # type: ignore[attr-defined]
pandas/io/formats/printing.py:538: obj.names # type: ignore[attr-defined]
pandas/io/formats/printing.py:541: attrs.append(("names", default_pprint(obj.names))) # type: ignore[attr-defined]
pandas/io/formats/console.py:73: return __IPYTHON__ or check_main() # type: ignore[name-defined]
pandas/io/formats/console.py:88: ip = get_ipython() # type: ignore[name-defined]
pandas/io/formats/style.py:1847: class MyStyler(cls): # type:ignore[valid-type,misc]
pandas/io/formats/csvs.py:252: handles.handle, # type: ignore[arg-type]
pandas/io/formats/xml.py:278: handles.handle.write(xml_doc) # type: ignore[arg-type]
pandas/io/formats/format.py:1384: float_format(value=v) # type: ignore[operator,call-arg]
pandas/io/pytables.py:2362: itemsize = dtype.itemsize # type: ignore[attr-defined]
pandas/io/pytables.py:3440: return dict(d1 + d2 + d3) # type: ignore[operator]
pandas/io/pytables.py:4025: blocks = list(mgr.blocks) # type: ignore[union-attr]
pandas/io/pytables.py:4029: blocks.extend(mgr.blocks) # type: ignore[union-attr]
pandas/io/pickle.py:107: pickle.dumps(obj, protocol=protocol) # type: ignore[arg-type]
pandas/io/pickle.py:112: obj, handles.handle, protocol=protocol # type: ignore[arg-type]
pandas/io/pickle.py:207: return pickle.load(handles.handle) # type: ignore[arg-type]
pandas/io/excel/_base.py:927: for extension in cls.supported_extensions # type: ignore[attr-defined]
pandas/io/excel/_base.py:1003: zf = zipfile.ZipFile(stream) # type: ignore[arg-type]
pandas/io/stata.py:914: self.TYPE_MAP = list(range(251)) + list("bhlfd") # type: ignore[arg-type]
pandas/io/stata.py:1094: self.path_or_buf = BytesIO(handles.handle.read()) # type: ignore[arg-type]
pandas/io/stata.py:2211: to_write.encode(self._encoding) # type: ignore[arg-type]
pandas/io/stata.py:2218: self.handles.handle.write(value) # type: ignore[arg-type]
pandas/io/stata.py:2542: self.handles.handle.write(bio.getvalue()) # type: ignore[arg-type]
pandas/io/json/_json.py:1045: ) # type:ignore[misc]
pandas/io/common.py:518: ) # type: ignore[operator]
pandas/io/common.py:628: fileobj=handle, # type: ignore[arg-type]
pandas/io/common.py:636: handle, # type: ignore[arg-type]
pandas/io/common.py:693: handle, # type: ignore[arg-type]
pandas/io/common.py:731:class _BytesZipFile(zipfile.ZipFile, BytesIO): # type: ignore[misc]
pandas/io/common.py:755: super().__init__(file, mode, **kwargs_zip) # type: ignore[arg-type]
pandas/io/common.py:852: wrapped = cast(mmap.mmap, _MMapWrapper(handle)) # type: ignore[arg-type]
pandas/io/parsers/c_parser_wrapper.py:48: self.handles.handle = self.handles.handle.mmap # type: ignore[union-attr]
pandas/io/parsers/readers.py:976: return mapping[engine](self.f, **self.options) # type: ignore[call-arg]
pandas/io/parsers/python_parser.py:243: self.data = reader # type: ignore[assignment]
pandas/io/parsers/python_parser.py:301: size = self.chunksize # type: ignore[attr-defined]
```
</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/37715/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37715/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37716
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37716/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37716/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37716/events
|
https://github.com/pandas-dev/pandas/issues/37716
| 739,049,252
|
MDU6SXNzdWU3MzkwNDkyNTI=
| 37,716
|
df.melt() overwriting column named 'variable'
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/30238567?v=4",
"events_url": "https://api.github.com/users/BenScarrott/events{/privacy}",
"followers_url": "https://api.github.com/users/BenScarrott/followers",
"following_url": "https://api.github.com/users/BenScarrott/following{/other_user}",
"gists_url": "https://api.github.com/users/BenScarrott/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/BenScarrott",
"id": 30238567,
"login": "BenScarrott",
"node_id": "MDQ6VXNlcjMwMjM4NTY3",
"organizations_url": "https://api.github.com/users/BenScarrott/orgs",
"received_events_url": "https://api.github.com/users/BenScarrott/received_events",
"repos_url": "https://api.github.com/users/BenScarrott/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/BenScarrott/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BenScarrott/subscriptions",
"type": "User",
"url": "https://api.github.com/users/BenScarrott"
}
|
[
{
"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"
}
] |
open
| false
| null |
[] | null | 6
| 2020-11-09T13:55:23Z
| 2020-11-12T10:26:53Z
| null |
NONE
| null |
when melting df using a column named 'variable' as an id_var.
resultant frame has original 'variable' column overwritten with the newly melted 'variable' column.
would suggest checking for presence of 'variable' column and appending '_i' to newly created columns.
[example_melt_overwrite.zip](https://github.com/pandas-dev/pandas/files/5510886/example_melt_overwrite.zip)
foo = pd.read_pickle('example_melt_overwrite.pkl')
foo.melt(id_vars=['DateTime','variable'])
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37716/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37716/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37717
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37717/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37717/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37717/events
|
https://github.com/pandas-dev/pandas/pull/37717
| 739,058,481
|
MDExOlB1bGxSZXF1ZXN0NTE3Nzg5MTMz
| 37,717
|
TST: move and reformat latex_na_rep test
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
|
[
{
"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": "006b75",
"default": false,
"description": "to_latex",
"id": 251382258,
"name": "IO LaTeX",
"node_id": "MDU6TGFiZWwyNTEzODIyNTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20LaTeX"
}
] |
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-11-09T14:07:30Z
| 2020-11-10T04:44:18Z
| 2020-11-09T18:56:08Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Move test to a more suitable location (``class TestToLatexFormatters``)
and reformat using ``_dedent`` and raw string for better readability.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37717/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37717/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37717.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37717",
"merged_at": "2020-11-09T18:56:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37717.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37717"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37718
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37718/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37718/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37718/events
|
https://github.com/pandas-dev/pandas/pull/37718
| 739,069,714
|
MDExOlB1bGxSZXF1ZXN0NTE3Nzk4MjQ5
| 37,718
|
TST: improve readability using dedent in test_to_string.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
|
[
{
"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-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 2
| 2020-11-09T14:21:22Z
| 2020-11-10T04:43:51Z
| 2020-11-09T18:57:10Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Improve readability of expected outputs using dedent in ``pandas/tests/io/formats/test_to_string.py``
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37718/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37718/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37718.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37718",
"merged_at": "2020-11-09T18:57:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37718.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37718"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.