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/27413 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27413/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27413/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27413/events | https://github.com/pandas-dev/pandas/pull/27413 | 468,437,436 | MDExOlB1bGxSZXF1ZXN0Mjk3ODY2MzQ4 | 27,413 | CLN/REF: Unify Arithmetic 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": "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-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 5 | 2019-07-16T04:10:14Z | 2019-07-20T20:08:01Z | 2019-07-20T20:06:05Z | MEMBER | null | 2 goals here.
First is to end up with a single implementation for our arithmetic ops. By implementing the missing methods directly on DTA/PA, we make it so we don't need to special-case inside the `Index.__foo__` methods, so can dispatch to Series more directly.
Second is to get the wrapper defined in_arith_method_SERIES to the point where we can use it block-wise instead of column-wise, to address the recent perf issues. This makes progress towards that goal by tightening up the allowed types in masked_arith_op
Oh, and we also get rid of a usage of values_from_object, which is adjacent to #27165 and #27167 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27413/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27413/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27413.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27413",
"merged_at": "2019-07-20T20:06:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27413.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27413"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27414 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27414/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27414/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27414/events | https://github.com/pandas-dev/pandas/issues/27414 | 468,524,860 | MDU6SXNzdWU0Njg1MjQ4NjA= | 27,414 | read_csv memory leak | {
"avatar_url": "https://avatars.githubusercontent.com/u/12839225?v=4",
"events_url": "https://api.github.com/users/xiahaohuan001/events{/privacy}",
"followers_url": "https://api.github.com/users/xiahaohuan001/followers",
"following_url": "https://api.github.com/users/xiahaohuan001/following{/other_user}",
"gists_url": "https://api.github.com/users/xiahaohuan001/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/xiahaohuan001",
"id": 12839225,
"login": "xiahaohuan001",
"node_id": "MDQ6VXNlcjEyODM5MjI1",
"organizations_url": "https://api.github.com/users/xiahaohuan001/orgs",
"received_events_url": "https://api.github.com/users/xiahaohuan001/received_events",
"repos_url": "https://api.github.com/users/xiahaohuan001/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/xiahaohuan001/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xiahaohuan001/subscriptions",
"type": "User",
"url": "https://api.github.com/users/xiahaohuan001"
} | [
{
"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 | 2019-07-16T08:44:51Z | 2020-01-21T04:15:08Z | 2020-01-21T04:15:08Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import sys
import pandas as pd
_dir = r'D:\Python\data'
file_name = pd.read_csv(_dir + r'\dblist.csv', index_col=0)
file_name.loc[:, 'code'] = [x.upper() for x in file_name['code']]
file_name.loc[:, 'name'] = [x.upper() for x in file_name['name']]
file_name.loc[:, 'date'] = [str(x) for x in file_name['date']]
file_name11 = pd.read_csv(_dir + r'\dblist.csv', index_col=0)
file_name11.loc[:, 'code'] = [x.upper() for x in file_name11['code']]
file_name11.loc[:, 'name'] = [x.upper() for x in file_name11['name']]
file_name11.loc[:, 'date'] = [str(x) for x in file_name11['date']]
from copy import deepcopy
open_file1 = file_name.loc[file_name['name'] == 'IC1601', ['path', 'date']]
open_file11 = open_file1.copy()
for i2, fi in enumerate(open_file11['path']):
# fi0 = r'D:\Python\data\Full\2016\f_c201601dn\zc\20160104\IC1601_20160104.csv'
print('file_name0:', sys.getsizeof(file_name))
data = pd.read_csv(fi)# (fi = r'D:\Python\data\Full\2016\f_c201601dn\zc\20160104\IC1601_20160104.csv',type:str)
print('file_name1:', sys.getsizeof(file_name))
del open_file2
print('file_name2:', sys.getsizeof(file_name))
del open_file1
```
#### Problem description
I found a memory leak issue when I use pd.read_csv to read a csv file.
As the code shows,when I pd.read_csv(**fi**) the **file_name** add 104 byte memory everytimes.And the **file_name**'s shape is not change.The situation is not change when I write enumerate(open_file1).But when I use a static const str fi0,same content and type with fi,just pd.read_csv(**fi0**)memory is normal.I'm not sure it's a read_csv memory leak or not.My English is poor,I hope that I have already expressed my meaning.
output:
file_name0: 141473975
file_name1: 141474079
file_name2: 141474079
file_name0: 141474079
file_name1: 141474183
file_name2: 141474183
file_name0: 141474183
file_name1: 141474287
file_name2: 141474287
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 15 Stepping 11, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.24.2
pytest: None
pip: 19.1.1
setuptools: 41.0.1
Cython: None
numpy: 1.16.4
scipy: 1.2.1
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.3
openpyxl: None
xlrd: 1.2.0
xlwt: 1.3.0
xlsxwriter: None
lxml.etree: 4.3.3
bs4: 4.7.1
html5lib: None
sqlalchemy: 1.3.3
pymysql: 0.9.3
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/27414/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27414/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27415 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27415/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27415/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27415/events | https://github.com/pandas-dev/pandas/issues/27415 | 468,568,163 | MDU6SXNzdWU0Njg1NjgxNjM= | 27,415 | Using a `CategoricalIndex` with interval categories as column index breaks operations on a `DataFrame` | {
"avatar_url": "https://avatars.githubusercontent.com/u/314633?v=4",
"events_url": "https://api.github.com/users/pberkes/events{/privacy}",
"followers_url": "https://api.github.com/users/pberkes/followers",
"following_url": "https://api.github.com/users/pberkes/following{/other_user}",
"gists_url": "https://api.github.com/users/pberkes/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pberkes",
"id": 314633,
"login": "pberkes",
"node_id": "MDQ6VXNlcjMxNDYzMw==",
"organizations_url": "https://api.github.com/users/pberkes/orgs",
"received_events_url": "https://api.github.com/users/pberkes/received_events",
"repos_url": "https://api.github.com/users/pberkes/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pberkes/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pberkes/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pberkes"
} | [
{
"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,
"de... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 2 | 2019-07-16T10:13:16Z | 2019-07-23T22:06:16Z | 2019-07-23T22:06:16Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
>>> a = pd.DataFrame([[1, 2]], columns=pd.CategoricalIndex(pd.interval_range(start=0.0, end=2.0)))
>>> a.T * 100
0
(0.0, 1.0] 100
(1.0, 2.0] 200
>>> a * 100
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-166-9b495e0b7c52> in <module>()
----> 1 a * 100
~/anaconda3/envs/python3/lib/python3.6/site-packages/pandas/core/ops.py in f(self, other, axis, level, fill_value)
2034
2035 assert np.ndim(other) == 0
-> 2036 return self._combine_const(other, op)
2037
2038 f.__name__ = op_name
...
TypeError: Cannot cast array data from dtype('float64') to dtype('<U32') according to the rule 'safe'
```
#### Problem description
When the columns index is a `CategoricalIndex` with interval categories, basic operations like multiplication by a scalar are broken.
The minimal example is a contrived case, but the situation can arise in common data analysis workflows:
1) Use `pd.cut` to bin floating point values
2) Perform a `pivot_table` operation with the binned values as columns
For instance:
```python
df = pd.DataFrame({'values': [10.0, 21.0, 32.0, 43.0],
'strings': ['A', 'B', 'C', 'D']})
df['intervals'] = pd.cut(df['values'], [0, 20, 40, 60])
p = df.pivot_table(index='strings', columns='intervals', values='values', aggfunc='sum')
```
A DataFrame with a column index of this kind is brokwn in other ways, for example it does not display as an HTML table in a Jupyter notebook, etc.
#### Expected Output
```
(0.0, 1.0] (1.0, 2.0]
0 100 200
```
#### Workaround
`df.columns = df.columns.categories` seems to make the DataFrame behave correctly.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.5.final.0
python-bits: 64
OS: Linux
OS-release: 4.14.123-86.109.amzn1.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.2
pytest: 3.5.1
pip: 10.0.1
setuptools: 39.1.0
Cython: 0.28.4
numpy: 1.15.4
scipy: 1.1.0
pyarrow: 0.14.0
xarray: None
IPython: 6.4.0
sphinx: 1.7.4
patsy: 0.5.0
dateutil: 2.7.3
pytz: 2018.4
blosc: None
bottleneck: 1.2.1
tables: 3.4.3
numexpr: 2.6.5
feather: None
matplotlib: 3.0.3
openpyxl: 2.5.3
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 1.0.4
lxml.etree: 4.2.1
bs4: 4.6.0
html5lib: 1.0.1
sqlalchemy: 1.2.11
pymysql: None
psycopg2: 2.7.5 (dt dec pq3 ext lo64)
jinja2: 2.10
s3fs: 0.1.5
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/27415/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27415/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27416 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27416/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27416/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27416/events | https://github.com/pandas-dev/pandas/pull/27416 | 468,624,164 | MDExOlB1bGxSZXF1ZXN0Mjk4MDE2MjY0 | 27,416 | CI: limit pytest version on 3.6 | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 12 | 2019-07-16T12:25:23Z | 2019-07-16T19:19:30Z | 2019-07-16T19:19:30Z | CONTRIBUTOR | null | closes #27406 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27416/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27416/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27416.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27416",
"merged_at": "2019-07-16T19:19:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27416.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27416"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27417 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27417/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27417/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27417/events | https://github.com/pandas-dev/pandas/issues/27417 | 468,703,014 | MDU6SXNzdWU0Njg3MDMwMTQ= | 27,417 | PERF: maybe_convert_objects rethink. | {
"avatar_url": "https://avatars.githubusercontent.com/u/19474336?v=4",
"events_url": "https://api.github.com/users/BeforeFlight/events{/privacy}",
"followers_url": "https://api.github.com/users/BeforeFlight/followers",
"following_url": "https://api.github.com/users/BeforeFlight/following{/other_user}",
"gists_url": "https://api.github.com/users/BeforeFlight/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/BeforeFlight",
"id": 19474336,
"login": "BeforeFlight",
"node_id": "MDQ6VXNlcjE5NDc0MzM2",
"organizations_url": "https://api.github.com/users/BeforeFlight/orgs",
"received_events_url": "https://api.github.com/users/BeforeFlight/received_events",
"repos_url": "https://api.github.com/users/BeforeFlight/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/BeforeFlight/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BeforeFlight/subscriptions",
"type": "User",
"url": "https://api.github.com/users/BeforeFlight"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | null | 37 | 2019-07-16T14:54:35Z | 2019-07-27T14:24:27Z | 2019-07-27T14:24:26Z | CONTRIBUTOR | null | While exploring the `maybe_convert_objects` I've got quite a few proposals/questions but in the end I've come to a conclusion that the logic of function itself is far from optimal.
#### Motivation
1. Main argument here is we are not checking for inconsistency of parts of already seen data. E.g. if we have seen `datetime` and `float` we will still process the other part of array. And only after have seen all the elements we are going to checking of the `Seen()` object state in order to determine result dtype. But in given example one may already conclude that the result dtype must be left as `object`.
Other words there is a need to do result type checking on the fly if we want to preserve the main course of the written function.
2. Even if data is consistent we are still using redundant bunch of checks. E.g. if the dtype is `datetime` for all seen values we are still will try to check for `float`, `bool` etc. But all this checks may be left in single `if is_datetime(val)... else return object`.
I.e. for each seen dtype there should be it's own checking algorithm for other array elements.
These are only main points. So instead of trying to bloat current realisation with (maybe redundant) checks I am suggesting to rewrite `maybe_convert_objects`.
#### Realization
Main idea of following code is perform `type probing` on the first element of array and then pass processing to the corresponding function, during execution which processing may be passed to another (more 'narrow' with checks) function if new dtype has been discovered.
*NOTE* this is working copy so I left questions arisen in code comments (marked with `# QUEST:`)
```python
# First declare checking functions for corresponding dtype got in probing
# QUEST: What is the correct way to wrap these functions? Maybe another .pxd?
# QUEST: Can here and in other cdefs 'nogil' param be used?
cdef str check_complex(bint safe,
object[:] objects,
complex128_t[:] complexes,
int n = 0):
cdef:
float64_t fnan = np.nan
Py_ssize_t i
for i in range(n, objects.shape[0]):
val = objects[i]
if util.is_complex_object(val) or util.is_float_object(val):
complexes[i] = val
elif val is None:
complexes[i] = fnan
elif util.is_integer_object(val):
if is_timedelta(val):
return 'object'
if not safe and oINT64_MIN <= val and val <= oUINT64_MAX:
complexes[i] = <complex128_t>val
else:
return 'object'
else:
return 'object'
return 'complex'
cdef str check_float(bint safe,
object[:] objects,
float64_t[:] floats,
complex128_t[:] complexes,
int n = 0):
cdef:
float64_t fnan = np.nan
Py_ssize_t i
for i in range(n, objects.shape[0]):
val = objects[i]
if util.is_float_object(val):
floats[i] = complexes[i] = val
elif val is None:
floats[i] = complexes[i] = fnan
elif util.is_integer_object(val):
if util.is_timedelta64_object(val):
return 'object'
if not safe and oINT64_MIN <= val and val <= oUINT64_MAX:
floats[i] = <float64_t>val
complexes[i] = <complex128_t>val
else:
return 'object'
elif util.is_complex_object(val):
return check_complex(safe, objects, complexes, i)
else:
return 'object'
return 'float'
cdef str check_integer(bint safe,
object[:] objects,
int64_t[:] ints,
uint64_t[:] uints,
float64_t[:] floats,
complex128_t[:] complexes,
int n = 0):
cdef:
Seen seen = Seen()
Py_ssize_t i
for i in range(n, objects.shape[0]):
val = objects[i]
if util.is_integer_object(val):
# is_integer hits timedelta64
# QUEST: maybe check timedelta64 in 'is_integer_object' directly?
# if so - remove from here and from check_float/complex
if util.is_timedelta64_object(val):
return 'object'
if not safe:
floats[i] = <float64_t>val
complexes[i] = <complex128_t>val
val = int(val)
seen.saw_int(val)
# QUEST: do val not in [in64.min, uint64.max] range should be
# dropped to object immediatelly?
if ((seen.uint_ and seen.sint_) or
val > oUINT64_MAX or val < oINT64_MIN):
return 'object'
if seen.uint_:
uints[i] = val
elif seen.sint_:
ints[i] = val
else:
uints[i] = val
ints[i] = val
elif safe:
return 'object'
elif util.is_float_object(val):
return check_float(safe, objects, floats, complexes, i)
elif val is None:
return check_float(safe, objects, floats, complexes, i)
elif util.is_complex_object(val):
return check_complex(safe, objects, complexes, i)
else:
return 'object'
if seen.uint_ and seen.sint_:
# Default for intersected sint uint data
# QUEST: should be 'sint'?
return 'sint'
elif seen.uint_:
return 'uint'
else:
return 'sint'
cdef str check_bool(object[:] objects,
uint8_t[:] bools,
int n = 0):
cdef Py_ssize_t i
for i in range(n, objects.shape[0]):
val = objects[i]
if util.is_bool_object(val):
bools[i] = val
else:
return 'object'
return 'bool'
cdef str check_datetime(object[:] objects,
int64_t[:] idatetimes,
int n = 0):
cdef Py_ssize_t i
for i in range(n, objects.shape[0]):
val = objects[i]
if is_datetime(val):
# QUEST: If one val has attr 'tzinfo' - must others have one?
# Or if other have not - 'object' should be returned direcrtly?
if getattr(val, 'tzinfo', None) is not None:
return 'datetime_tz'
idatetimes[i] = convert_to_tsobject(
val, None, None, 0, 0).value
elif val is NaT:
idatetimes[i] = NPY_NAT
else:
return 'object'
return 'datetime'
cdef str check_timedelta(object[:] objects,
int64_t[:] itimedeltas,
int n = 0):
cdef Py_ssize_t i
for i in range(n, objects.shape[0]):
val = objects[i]
if is_timedelta(val):
itimedeltas[i] = convert_to_timedelta64(val, 'ns')
elif val is NaT:
itimedeltas[i] = NPY_NAT
else:
return 'object'
return 'timedelta'
cdef str check_NaT(object[:] objects,
int64_t[:] idatetimes,
int64_t[:] itimedeltas,
int n = 0):
cdef Py_ssize_t i
for i in range(n, objects.shape[0]):
val = objects[i]
if val is NaT:
idatetimes[i] = itimedeltas[i] = NPY_NAT
elif is_datetime(val):
return check_datetime(objects, idatetimes, i)
elif is_timedelta(val):
return check_timedelta(objects, itimedeltas, i)
else:
return 'object'
# Default for arrays of NaT will be datetime64?
return 'datetime'
cdef str check_None(bint safe,
object[:] objects,
float64_t[:] floats,
complex128_t[:] complexes,
int n = 0):
cdef:
float64_t fnan = np.nan
Py_ssize_t i
for i in range(n, objects.shape[0]):
val = objects[i]
if val is None:
floats[i] = complexes[i] = fnan
elif util.is_float_object(val):
return check_float(safe, objects, floats, complexes, i)
elif util.is_complex_object(val):
return check_complex(safe, objects, complexes, i)
else:
return 'object'
# QUEST: array full of None will be left as object - correct?
# QUEST: at the same time [None, np.nan] converted to float.
# How about [None, NaT] then? or [None, bool]. Need consistency here.
# Same - [None, 1] is *float* now..
return 'object'
# QUEST: Disable directives for now caues unstable. Enable?
# @cython.boundscheck(False)
# @cython.wraparound(False)
def maybe_convert_objects(ndarray[object] objects, bint try_float=0,
bint safe=0, bint convert_datetime=0,
bint convert_timedelta=0):
"""
Type inference function-- convert object array to proper dtype
"""
# Declaring output templates
# QUEST: doesn't it use excessing memory for unnecessary types?
# so it should be initialized after dtype probing?
# QUEST: do this arrs really needed? Why refilling even one of them -
# maybe use objects.view or something as result after checkings?
cdef:
int n = objects.shape[0]
ndarray[uint8_t] bools = np.empty(n, dtype = np.uint8)
ndarray[int64_t] ints = np.empty(n, dtype = np.int64)
ndarray[uint64_t] uints = np.empty(n, dtype = np.uint64)
ndarray[float64_t] floats = np.empty(n, dtype = np.float64)
ndarray[complex128_t] complexes = np.empty(n, dtype = np.complex128)
if convert_datetime:
datetimes = np.empty(n, dtype='M8[ns]')
idatetimes = datetimes.view(np.int64)
if convert_timedelta:
timedeltas = np.empty(n, dtype='m8[ns]')
itimedeltas = timedeltas.view(np.int64)
# Ensure we are able do probing at all
if n == 0:
return objects
# Type probing - determine type of first element
# and call corresponding check
cdef:
str convert_dtype = 'object'
object val = objects[0]
if val is None:
# QUEST: Or should here 'object' be returned immediatelly?
# cause floats should use np.nan instead
convert_dtype = check_None(safe, objects, floats, complexes)
elif val is NaT:
if convert_datetime and convert_timedelta:
convert_dtype = check_NaT(objects, idatetimes, itimedeltas)
elif convert_datetime:
convert_dtype = check_datetime(objects, idatetimes)
elif convert_timedelta:
convert_dtype = check_timedelta(objects, itimedeltas)
elif is_timedelta(val):
if convert_timedelta:
convert_dtype = check_timedelta(objects, itimedeltas)
elif is_datetime(val):
if convert_datetime:
convert_dtype = check_datetime(objects, idatetimes)
elif util.is_bool_object(val):
convert_dtype = check_bool(objects, bools)
elif util.is_integer_object(val):
convert_dtype = check_integer(safe, objects,
ints, uints, floats, complexes)
elif util.is_float_object(val):
convert_dtype = check_float(safe, objects, floats, complexes)
elif util.is_complex_object(val):
convert_dtype = check_complex(safe, objects, complexes)
# QUEST: Why 'try_float' - not 'try_decimal' as e.g. try_timedelta?
elif try_float and not isinstance(val, str):
pass
# TODO: not done yet. It is not "safe" way to just try float(val)
# # this will convert Decimal objects
# try:
# convert_dtype = check_float(safe, objects, floats, complexes)
# except Exception:
# convert_dtype = 'object'
# OUTPUT
if convert_dtype == 'bool':
# QUEST: is view here needed? need to recheck this
return bools.view(np.bool_)
elif convert_dtype == 'sint':
return ints
elif convert_dtype == 'uint':
return uints
elif convert_dtype == 'float':
return floats
elif convert_dtype == 'complex':
return complexes
elif convert_dtype == 'datetime':
return datetimes
elif convert_dtype == 'timedelta':
return timedeltas
elif convert_dtype == 'datetime_tz':
# we try to coerce datetime w/tz but must all have the same tz
# QUEST: havn't check speed of this - can it be done faster?
# QUEST: DateTimeIndex is returned instead np.ndarray.
if is_datetime_with_singletz_array(objects):
from pandas import DatetimeIndex
return DatetimeIndex(objects)
return objects
```
#### Code logic tests
I've done initial testing with pytest in order to compare outputs of the _old_ and _new_ functions with this test suite:
```python
import pytest
import itertools
import numpy as np
import pandas as pd
import pandas._libs.lib as lib
import pandas.util.testing as tm
from decimal import Decimal
from datetime import datetime, timezone, timedelta
def data_gen(types):
N = 2
data = np.array([0]*N, dtype='object')
for perm in itertools.product(list(range(len(types))), repeat=N):
for i in range(data.shape[0]):
data[i] = types[perm[i]]
yield data.copy()
check_types = [None, np.nan, pd.NaT,
True,
np.iinfo(np.int64).min-1, -1, 1, np.iinfo(np.int64).max+1,
np.iinfo(np.uint64).max, np.iinfo(np.uint64).max+1,
1.1, np.float_(1.1),
1j, np.complex_(1j),
datetime(2000, 1, 1),
datetime(2000, 1, 1, 0, 0, 0, 0, timezone.utc),
np.datetime64('2000-01-01'),
timedelta(365),
np.timedelta64(1, 's'),
# Decimal(1.1),
'object'
]
datas = list(data_gen(check_types))
class Tests:
@pytest.mark.parametrize("data", datas)
@pytest.mark.parametrize("safe", [0, 1])
def test_maybe_convert_objects(self, data, safe):
old = lib.maybe_convert_objects_OLD(data, 1, safe, 1, 1)
new = lib.maybe_convert_objects(data, 1, safe, 1, 1)
print('data:', data, data.dtype,
'\nold:', old, old.dtype,
'\nnew:', new, new.dtype)
if isinstance(old, np.ndarray):
tm.assert_numpy_array_equal(old, new)
else:
tm.assert_index_equal(old, new)
```
_770/800_ tests passed
For now it's simple creates array with 2 values for all the combinations from `check_dtypes`. I'm in progress of solving left 30 and then will increase `N`.
#### Performance tests
Asv benchmarks:
```python
class MaybeConvertObjects:
dtypes = {"bool": True, "sint": -1, "uint": np.iinfo(np.uint64).max,
"float": 1.1, "complex": 1j,
"datetime": datetime(2000, 1, 1), "timedelta": timedelta(365),
"datetime_tz": datetime(2000, 1, 1, 0, 0, 0, 0, timezone.utc),
# "decimal": Decimal(1.1),
"object": "object"}
dtypes_to_insert = list(dtypes.values()) + [None, pd.NaT]
datas = {k: np.array([v] * 10**3, dtype='object')
for k, v in dtypes.items()}
params = [[0, 1], [0, 1], [0, 1],
list(dtypes.keys()),
list(itertools.product(list(range(len(dtypes_to_insert))),
repeat=2))]
param_names = ["safe", "convert_datetime", "convert_timedelta",
"dtype", "insrt_inds"]
def setup(self, safe, convert_datetime, convert_timedelta,
dtype, insrt_inds):
data = self.datas[dtype]
data[0] = self.dtypes_to_insert[insrt_inds[0]]
data[len(data) // 2] = self.dtypes_to_insert[insrt_inds[1]]
# data[2 * len(data) // 3] = self.dtypes_to_insert[insrt_inds[2]]
self.data = data
def time_maybe_convert_objects(self, safe, convert_datetime,
convert_timedelta, dtype, insrt_inds):
lib.maybe_convert_objects(self.data, try_float=0, safe=safe,
convert_datetime=convert_datetime,
convert_timedelta=convert_timedelta)
```
For _4100/4400_ of tests with changed performance the performance increased (what is the correct way to paste here the output of these? or is it redundant?). I'm also in progress of resolving left 300.
In order to continue working on this I need to know if this will be even considered or not. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27417/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27417/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27418 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27418/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27418/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27418/events | https://github.com/pandas-dev/pandas/pull/27418 | 468,730,217 | MDExOlB1bGxSZXF1ZXN0Mjk4MTAyOTA2 | 27,418 | add some type annotations io/formats/format.py | {
"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": "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": "ea91a... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 4 | 2019-07-16T15:43:54Z | 2019-07-22T11:48:22Z | 2019-07-21T01:06:45Z | MEMBER | null | typing not added to all function signatures in io/formats/format.py in this pass to reduce the diff
~~this PR also contains a refactor to simplify the addition of type annotations; `truncate_h` and `tr_col_num` are dependant variables. `truncate_h` can be `True` or `False`. if `True`, `tr_col_num` is an `int` else if `truncate_h` is `False`, `tr_col_num` is `None`~~
~~same applies for `truncate_v` and `tr_row_num`~~
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27418/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27418/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27418.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27418",
"merged_at": "2019-07-21T01:06:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27418.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27418"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27419 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27419/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27419/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27419/events | https://github.com/pandas-dev/pandas/issues/27419 | 468,766,812 | MDU6SXNzdWU0Njg3NjY4MTI= | 27,419 | fillna is broken for Datetime columns [regression] | {
"avatar_url": "https://avatars.githubusercontent.com/u/45396231?v=4",
"events_url": "https://api.github.com/users/vnlitvinov/events{/privacy}",
"followers_url": "https://api.github.com/users/vnlitvinov/followers",
"following_url": "https://api.github.com/users/vnlitvinov/following{/other_user}",
"gists_url": "https://api.github.com/users/vnlitvinov/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vnlitvinov",
"id": 45396231,
"login": "vnlitvinov",
"node_id": "MDQ6VXNlcjQ1Mzk2MjMx",
"organizations_url": "https://api.github.com/users/vnlitvinov/orgs",
"received_events_url": "https://api.github.com/users/vnlitvinov/received_events",
"repos_url": "https://api.github.com/users/vnlitvinov/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vnlitvinov/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vnlitvinov/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vnlitvinov"
} | [
{
"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": "d7e102",
"default": false,
"description": "np.nan, p... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 2 | 2019-07-16T17:05:26Z | 2019-07-17T11:54:25Z | 2019-07-17T11:54:25Z | CONTRIBUTOR | null | In 823af7639b94a39609c06a2228ba9e0f31155724 a call to `block._try_coerce_args()` was incorrectly replaced with call to `block._can_hold_element()` (I think under assumption that all block types have identical implementations of `_try_coerce_args` which is not true).
For Datetime blocks this leads to blowing up with `RecursionError: maximum recursion depth exceeded in comparison`.
Prior to the commit I indicated it worked fine, so I consider this a regression.
#### Small reproducer
```python
import pandas as pd
import numpy as np
from io import StringIO as sio
d1 = pd.read_csv(sio('2010,\n,\n2000\n'),header=None,parse_dates=[0])
f1 = np.dtype('datetime64[ms]').type('1970-01-01').astype('datetime64[ms]')
d1[0].fillna(f1)
```
#### Problem description
When the reproducer is launched, it's output is a long stacktrace caused by `RecursionError`.
#### Expected Output
The sample should not raise.
#### Output of ``pd.show_versions()``
<details>
commit : None
python : 3.6.8.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-47-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 0.25.0rc0+67.g2ed1f28cf
numpy : 1.16.2
pytz : 2018.4
dateutil : 2.6.0
pip : 10.0.1
setuptools : 39.0.1.post20180504
Cython : 0.29.6
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10.1
IPython : None
pandas_datareader: None
bs4 : 4.7.1
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 0.9.0
pytables : None
s3fs : None
scipy : 1.2.1
sqlalchemy : None
tables : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
</details>
#### Proposed solution
Revert the changes to `fillna()` function here: https://github.com/pandas-dev/pandas/commit/823af7639b94a39609c06a2228ba9e0f31155724?diff=unified#diff-8f51ce8697bdff680b3f71b196c582eeL388 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27419/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27419/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27420 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27420/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27420/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27420/events | https://github.com/pandas-dev/pandas/issues/27420 | 468,783,339 | MDU6SXNzdWU0Njg3ODMzMzk= | 27,420 | DataFrame with MultiIndex raises `TypeError` instead of `KeyError` for inexistent keys | {
"avatar_url": "https://avatars.githubusercontent.com/u/22769314?v=4",
"events_url": "https://api.github.com/users/epassaro/events{/privacy}",
"followers_url": "https://api.github.com/users/epassaro/followers",
"following_url": "https://api.github.com/users/epassaro/following{/other_user}",
"gists_url": "https://api.github.com/users/epassaro/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/epassaro",
"id": 22769314,
"login": "epassaro",
"node_id": "MDQ6VXNlcjIyNzY5MzE0",
"organizations_url": "https://api.github.com/users/epassaro/orgs",
"received_events_url": "https://api.github.com/users/epassaro/received_events",
"repos_url": "https://api.github.com/users/epassaro/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/epassaro/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/epassaro/subscriptions",
"type": "User",
"url": "https://api.github.com/users/epassaro"
} | [
{
"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": "20... | 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 | 2019-07-16T17:46:28Z | 2020-10-20T02:08:29Z | 2020-10-20T02:08:29Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
a = {'A': [1, 2, 3, 4], 'B': [5, 6, 7, 8], 'C': [9, 10, 11, 12]}
df = pd.DataFrame.from_records(a, index=['A', 'B'])
df.loc[(1,6)]
```
#### Problem description
When a non existent key `.loc` raises `TypeError`. Is this the intended behavior?
#### Expected Output
Maybe should raise `KeyError`
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.7.final.0
python-bits: 64
OS: Linux
OS-release: 4.18.0-25-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.2
pytest: 4.5.0
pip: 19.0.3
setuptools: 41.0.0
Cython: 0.29.12
numpy: 1.16.4
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 7.6.1
sphinx: 1.5.6
patsy: None
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: 3.5.2
numexpr: 2.6.9
feather: None
matplotlib: 3.1.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: 4.7.1
html5lib: 1.0.1
sqlalchemy: 1.3.5
pymysql: None
psycopg2: None
jinja2: 2.10.1
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/27420/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27420/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27421 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27421/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27421/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27421/events | https://github.com/pandas-dev/pandas/issues/27421 | 468,792,216 | MDU6SXNzdWU0Njg3OTIyMTY= | 27,421 | CI: Compatibility with pytest-azurepipelines | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "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 | 3 | 2019-07-16T18:08:04Z | 2020-10-09T18:26:47Z | 2020-10-09T18:26:47Z | CONTRIBUTOR | null | https://github.com/pandas-dev/pandas/pull/27416#issuecomment-511922995
Failing on the prerelease at https://pypi.org/project/pytest-azurepipelines/1.0.0a1/ | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27421/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27421/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27422 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27422/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27422/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27422/events | https://github.com/pandas-dev/pandas/issues/27422 | 468,829,384 | MDU6SXNzdWU0Njg4MjkzODQ= | 27,422 | BUG: to_datetime with multiple timezones does not coerce if invalid string in input | {
"avatar_url": "https://avatars.githubusercontent.com/u/533142?v=4",
"events_url": "https://api.github.com/users/JosuaKrause/events{/privacy}",
"followers_url": "https://api.github.com/users/JosuaKrause/followers",
"following_url": "https://api.github.com/users/JosuaKrause/following{/other_user}",
"gists_url": "https://api.github.com/users/JosuaKrause/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JosuaKrause",
"id": 533142,
"login": "JosuaKrause",
"node_id": "MDQ6VXNlcjUzMzE0Mg==",
"organizations_url": "https://api.github.com/users/JosuaKrause/orgs",
"received_events_url": "https://api.github.com/users/JosuaKrause/received_events",
"repos_url": "https://api.github.com/users/JosuaKrause/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JosuaKrause/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JosuaKrause/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JosuaKrause"
} | [] | closed | false | null | [] | null | 6 | 2019-07-16T19:39:59Z | 2019-07-16T22:55:20Z | 2019-07-16T21:21:49Z | NONE | null | #### Code Sample
```python
import pandas as pd
se = pd.Series(["2019-01-01 03:00:00-0500", "abc", "2019-01-01 03:00:00-0100"])
assert type(pd.to_datetime(se, errors="coerce").iloc[0]) == str
```
Note that the type of the first element (`"2019-01-01 03:00:00-0500"`) is `str` *after* the "conversion".
```python
import pandas as pd
se1 = pd.Series(["2019-01-01 03:00:00-0500", "abc", "2019-01-01 03:00:00-0100"])
pd.to_datetime(se1, errors="coerce")
# 0 2019-01-01 03:00:00-0500
# 1 abc
# 2 2019-01-01 03:00:00-0100
# dtype: object
se2 = pd.Series(["2019-01-01 03:00:00-0500", "2019-01-01 03:00:00-0100"])
pd.to_datetime(se2, errors="coerce")
# 0 2019-01-01 03:00:00-05:00
# 1 2019-01-01 03:00:00-01:00
# dtype: object
```
#### Problem description
If the input to `to_datetime` contains both dates with multiple timezones and invalid strings *no conversion* (the input strings will be returned) will happen when running with `errors="coerce"`. This is a problem as the (documented) expected output type is a date-like type. Note, that if the incorrect string is not present the dates will convert but the overall dtype will be object.
In previous versions (< 0.24) the function would convert the dates into timezone unaware timestamps which is a far more predictable behavior (the output can easily be converted into the desired timezone).
#### Expected Output
Output in 0.23
```python
import pandas as pd
se1 = pd.Series(["2019-01-01 03:00:00-0500", "abc", "2019-01-01 03:00:00-0100"])
pd.to_datetime(se1, errors="coerce")
# 0 2019-01-01 08:00:00
# 1 NaT
# 2 2019-01-01 04:00:00
# dtype: datetime64[ns]
se2 = pd.Series(["2019-01-01 03:00:00-0500", "2019-01-01 03:00:00-0100"])
pd.to_datetime(se2, errors="coerce")
# 0 2019-01-01 08:00:00
# 1 2019-01-01 04:00:00
# dtype: datetime64[ns]
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.4.final.0
python-bits: 64
OS: Darwin
OS-release: 18.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.2
pytest: 3.7.3
pip: 19.1.1
setuptools: 39.1.0
Cython: 0.29.7
numpy: 1.16.4
scipy: 1.0.0
pyarrow: 0.13.0
xarray: None
IPython: 6.2.1
sphinx: None
patsy: 0.5.0
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: 1.2.1
tables: 3.5.2
numexpr: 2.6.9
feather: None
matplotlib: 2.2.0
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: 4.2.4
bs4: None
html5lib: 1.0.1
sqlalchemy: 1.3.0
pymysql: None
psycopg2: 2.7.4 (dt dec pq3 ext lo64)
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/27422/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27422/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27423 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27423/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27423/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27423/events | https://github.com/pandas-dev/pandas/pull/27423 | 468,849,109 | MDExOlB1bGxSZXF1ZXN0Mjk4MTk5MjI2 | 27,423 | CLN: fix build warning in c_timestamp.pyx | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "207de5... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 4 | 2019-07-16T20:30:10Z | 2019-07-20T21:39:05Z | 2019-07-20T20:36:14Z | NONE | null | ```
pandas/_libs/tslibs/c_timestamp.c: In function ‘__pyx_f_6pandas_5_libs_6tslibs_11c_timestamp_10_Timestamp__get_start_end_field’:
pandas/_libs/tslibs/c_timestamp.c:7257:25: warning: ‘__pyx_t_10’ may be used uninitialized in this function [-Wmaybe-uninitialized]
7257 | __pyx_t_5numpy_int8_t __pyx_t_10[1];
|
```
Retrying fix dropped from https://github.com/pandas-dev/pandas/pull/27371
a review [comment](https://github.com/pandas-dev/pandas/pull/27371#discussion_r303179721) there disliked reintroducing `ndarray` here because the file had been converted to using memoryviews. `get_start_end_field` returns a view of type `npy_bool` so`out` should therefore be either a memoryview or an ndarray, and bool memoryviews will only be supported in cython 0.30
(see cython/cython/pull/2676).
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27423/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27423/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27423.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27423",
"merged_at": "2019-07-20T20:36:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27423.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27423"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27424 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27424/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27424/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27424/events | https://github.com/pandas-dev/pandas/pull/27424 | 468,850,297 | MDExOlB1bGxSZXF1ZXN0Mjk4MjAwMTg5 | 27,424 | Removed ABCs from pandas._typing | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"color": "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-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 9 | 2019-07-16T20:33:16Z | 2019-07-24T16:43:05Z | 2019-07-24T16:42:51Z | MEMBER | null | - [X] closes #27146
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This reveals a few new typing issues so won't pass CI but submitting as draft
Here's one way I think that works to avoid import cycles. Basically any internal imports in pandas._typing need to be set in a TYPE_CHECKING block to prevent their runtime evaluation from causing import cycles.
To illustrate the effectiveness like this if you put something like this at the end of pandas._typing:
```python
def func(obj: FrameOrSeries) -> None:
reveal_type(obj)
```
It would previously give you
```sh
pandas/_typing.py:43: note: Revealed type is 'Any'
```
Whereas now gives:
```sh
pandas/_typing.py:44: note: Revealed type is 'pandas.core.series.Series*'
pandas/_typing.py:44: note: Revealed type is 'pandas.core.frame.DataFrame*'
```
@topper-123 any way to check VSCode to see if this works with code completion?
In the long run this may not be needed with PEP 563:
https://www.python.org/dev/peps/pep-0563/
But I think this hack gets us there in the meantime | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27424/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27424/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27424.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27424",
"merged_at": "2019-07-24T16:42:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27424.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27424"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27425 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27425/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27425/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27425/events | https://github.com/pandas-dev/pandas/pull/27425 | 468,855,307 | MDExOlB1bGxSZXF1ZXN0Mjk4MjA0MjU0 | 27,425 | BUG: fix+test fillna with non-nano datetime64; closes #27419 | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 1 | 2019-07-16T20:45:28Z | 2019-07-17T14:05:18Z | 2019-07-17T11:54:25Z | MEMBER | null | - [x] closes #27419
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27425/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27425/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27425.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27425",
"merged_at": "2019-07-17T11:54:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27425.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27425"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27426 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27426/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27426/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27426/events | https://github.com/pandas-dev/pandas/pull/27426 | 468,883,453 | MDExOlB1bGxSZXF1ZXN0Mjk4MjI3MjI4 | 27,426 | Reallow usecols to reference OOB indices - reverts 25623 | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"color": "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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-07-16T21:58:23Z | 2020-01-16T00:35:03Z | 2019-07-17T11:52:36Z | MEMBER | null | - [x] closes #27252
reverts #25623
@heckeop
@gfyoung I know you asked for a FutureWarning to be raised but I didn't want to mess around with the validation_function in place here so just did a simple revert for sake of time / effort
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27426/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27426/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27426.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27426",
"merged_at": "2019-07-17T11:52:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27426.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27426"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27427 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27427/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27427/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27427/events | https://github.com/pandas-dev/pandas/pull/27427 | 468,911,318 | MDExOlB1bGxSZXF1ZXN0Mjk4MjQ5OTYy | 27,427 | Merged mypy.ini into setup.cfg | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"color": "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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-07-16T23:14:53Z | 2019-10-11T03:40:07Z | 2019-07-17T11:45:08Z | MEMBER | null | Figure the mypy.ini is small enough now don't need a dedicated config file for it | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27427/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27427/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27427.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27427",
"merged_at": "2019-07-17T11:45:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27427.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27427"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27428 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27428/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27428/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27428/events | https://github.com/pandas-dev/pandas/pull/27428 | 468,928,172 | MDExOlB1bGxSZXF1ZXN0Mjk4MjYxOTI5 | 27,428 | CLN/REF: stop allowing iNaT in DatetimeBlock | {
"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": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "207de5... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 4 | 2019-07-17T00:21:26Z | 2019-07-24T00:23:23Z | 2019-07-23T23:55:40Z | MEMBER | null | Sits on top of #27411
xref #16674. The broader goal is de-special-casing code in internals.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27428/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27428/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27428.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27428",
"merged_at": "2019-07-23T23:55:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27428.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27428"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27429 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27429/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27429/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27429/events | https://github.com/pandas-dev/pandas/issues/27429 | 469,033,129 | MDU6SXNzdWU0NjkwMzMxMjk= | 27,429 | cannot join on column with datetime when using the 'on' parameter | {
"avatar_url": "https://avatars.githubusercontent.com/u/7404851?v=4",
"events_url": "https://api.github.com/users/filthysocks/events{/privacy}",
"followers_url": "https://api.github.com/users/filthysocks/followers",
"following_url": "https://api.github.com/users/filthysocks/following{/other_user}",
"gists_url": "https://api.github.com/users/filthysocks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/filthysocks",
"id": 7404851,
"login": "filthysocks",
"node_id": "MDQ6VXNlcjc0MDQ4NTE=",
"organizations_url": "https://api.github.com/users/filthysocks/orgs",
"received_events_url": "https://api.github.com/users/filthysocks/received_events",
"repos_url": "https://api.github.com/users/filthysocks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/filthysocks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/filthysocks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/filthysocks"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] | closed | false | null | [] | null | 3 | 2019-07-17T07:31:20Z | 2019-07-17T18:14:09Z | 2019-07-17T17:55:57Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
left = pd.DataFrame({'date':['2019-01-01'], 'a': [1]})
left['date'] = pd.to_datetime(left['date'], utc=True)
right = pd.DataFrame({'date':['2019-01-01'], 'b': [1]})
right['date'] = pd.to_datetime(right['date'], utc=True)
# execption
left.join(right, on='date')
```
#### Problem description
```
ValueError: You are trying to merge on datetime64[ns, UTC] and int64 columns. If you wish to proceed you should use pd.concat
```
Both column have the same dtype when calling join, somehow the right join colum gets converted to int64. This causes the join to fail.
However, the follwing code works fine:
``` python
# init as above
left = left.set_index('date')
right = right.set_index('date')
left.join(right)
"""
a b
date
2019-01-01 00:00:00+00:00 1 1
"""
```
#### Expected Output
```
date a b
2019-01-01 00:00:00+00:00 1 1
```
#### Output of ``pd.show_versions()``
<details>
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Linux
OS-release: 4.15.0-54-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: de_DE.UTF-8
LOCALE: de_DE.UTF-8
pandas: 0.24.2
pytest: 4.3.1
pip: 10.0.1
setuptools: 39.1.0
Cython: None
numpy: 1.16.4
scipy: None
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10.1
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/27429/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27429/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27430 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27430/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27430/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27430/events | https://github.com/pandas-dev/pandas/issues/27430 | 469,121,889 | MDU6SXNzdWU0NjkxMjE4ODk= | 27,430 | validate ='m:m' in dataframe.merge should have a meaningful purpose | {
"avatar_url": "https://avatars.githubusercontent.com/u/29853829?v=4",
"events_url": "https://api.github.com/users/gitgithan/events{/privacy}",
"followers_url": "https://api.github.com/users/gitgithan/followers",
"following_url": "https://api.github.com/users/gitgithan/following{/other_user}",
"gists_url": "https://api.github.com/users/gitgithan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gitgithan",
"id": 29853829,
"login": "gitgithan",
"node_id": "MDQ6VXNlcjI5ODUzODI5",
"organizations_url": "https://api.github.com/users/gitgithan/orgs",
"received_events_url": "https://api.github.com/users/gitgithan/received_events",
"repos_url": "https://api.github.com/users/gitgithan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gitgithan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gitgithan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gitgithan"
} | [
{
"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": "AD7FA8",
"de... | closed | false | null | [] | null | 5 | 2019-07-17T10:47:50Z | 2021-07-10T18:21:30Z | 2021-07-10T18:21:29Z | NONE | null | #### Code Sample, a copy-pastable example if possible
Currently, in https://github.com/pandas-dev/pandas/blob/master/pandas/core/reshape/merge.py
```python
elif validate in ["many_to_many", "m:m"]:
pass
```
#### Problem description
I was expecting m:m to give me a warning/error if either the left or right merge keys are unique.
Isn't that the purpose of specifying m:m? That is to ensure it is really a many to many merge.
**Note**: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!
**Note**: Many problems can be resolved by simply upgrading `pandas` to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if `master` addresses this issue, but that is not necessary.
For documentation-related issues, you can check the latest versions of the docs on `master` here:
https://pandas-docs.github.io/pandas-docs-travis/
If the issue has not been resolved there, go ahead and file it in the issue tracker.
#### Expected Output
Expected an Error that keys are unique in either left/right/both and it is not a many-to-many merge when validate=m:m is specified.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.24.2
pytest: 4.3.1
pip: 19.0.3
setuptools: 40.8.0
Cython: 0.29.6
numpy: 1.16.2
scipy: 1.2.1
pyarrow: None
xarray: None
IPython: 7.4.0
sphinx: 1.8.5
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2018.9
blosc: None
bottleneck: 1.2.1
tables: 3.5.1
numexpr: 2.6.9
feather: None
matplotlib: 3.0.3
openpyxl: 2.6.1
xlrd: 1.2.0
xlwt: 1.3.0
xlsxwriter: 1.1.5
lxml.etree: 4.3.2
bs4: 4.7.1
html5lib: 1.0.1
sqlalchemy: 1.3.1
pymysql: None
psycopg2: 2.8.3 (dt dec pq3 ext lo64)
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/27430/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27430/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27431 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27431/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27431/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27431/events | https://github.com/pandas-dev/pandas/issues/27431 | 469,247,535 | MDU6SXNzdWU0NjkyNDc1MzU= | 27,431 | Feature request: add option to disable columns.levels autosorting | {
"avatar_url": "https://avatars.githubusercontent.com/u/20364547?v=4",
"events_url": "https://api.github.com/users/MCM-Math/events{/privacy}",
"followers_url": "https://api.github.com/users/MCM-Math/followers",
"following_url": "https://api.github.com/users/MCM-Math/following{/other_user}",
"gists_url": "https://api.github.com/users/MCM-Math/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MCM-Math",
"id": 20364547,
"login": "MCM-Math",
"node_id": "MDQ6VXNlcjIwMzY0NTQ3",
"organizations_url": "https://api.github.com/users/MCM-Math/orgs",
"received_events_url": "https://api.github.com/users/MCM-Math/received_events",
"repos_url": "https://api.github.com/users/MCM-Math/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MCM-Math/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MCM-Math/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MCM-Math"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "207de5",
"default": false,
"description": null,
... | closed | false | null | [] | null | 1 | 2019-07-17T14:25:16Z | 2021-07-10T18:23:32Z | 2021-07-10T18:23:32Z | NONE | null | I am trying to develop general code to access specific columns in the order they are displayed by index. However, columns.levels resorts alphabetically automatically, and doesn't seem to have an option to have it... not do that. It would be useful if there was an option to have it remember the original order, to allow better referencing capabilities. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27431/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27431/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27432 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27432/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27432/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27432/events | https://github.com/pandas-dev/pandas/pull/27432 | 469,274,225 | MDExOlB1bGxSZXF1ZXN0Mjk4NTM5NTAx | 27,432 | PLT: Delegating to plotting backend only plots of Series and DataFrame methods | {
"avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4",
"events_url": "https://api.github.com/users/datapythonista/events{/privacy}",
"followers_url": "https://api.github.com/users/datapythonista/followers",
"following_url": "https://api.github.com/users/datapythonista/following{/other_user}",
"gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/datapythonista",
"id": 10058240,
"login": "datapythonista",
"node_id": "MDQ6VXNlcjEwMDU4MjQw",
"organizations_url": "https://api.github.com/users/datapythonista/orgs",
"received_events_url": "https://api.github.com/users/datapythonista/received_events",
"repos_url": "https://api.github.com/users/datapythonista/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions",
"type": "User",
"url": "https://api.github.com/users/datapythonista"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 1 | 2019-07-17T15:03:44Z | 2019-07-18T13:17:37Z | 2019-07-18T13:17:37Z | MEMBER | null | - [X] xref #26747
- [ ] 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/27432/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27432/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27432.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27432",
"merged_at": "2019-07-18T13:17:37Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27432.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27432"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27433 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27433/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27433/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27433/events | https://github.com/pandas-dev/pandas/issues/27433 | 469,314,773 | MDU6SXNzdWU0NjkzMTQ3NzM= | 27,433 | df.describe.min(), max(), count() etc. produce results inconsistent with describe | {
"avatar_url": "https://avatars.githubusercontent.com/u/23361580?v=4",
"events_url": "https://api.github.com/users/joleenf/events{/privacy}",
"followers_url": "https://api.github.com/users/joleenf/followers",
"following_url": "https://api.github.com/users/joleenf/following{/other_user}",
"gists_url": "https://api.github.com/users/joleenf/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joleenf",
"id": 23361580,
"login": "joleenf",
"node_id": "MDQ6VXNlcjIzMzYxNTgw",
"organizations_url": "https://api.github.com/users/joleenf/orgs",
"received_events_url": "https://api.github.com/users/joleenf/received_events",
"repos_url": "https://api.github.com/users/joleenf/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joleenf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joleenf/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joleenf"
} | [] | closed | false | null | [] | null | 1 | 2019-07-17T16:16:25Z | 2019-07-17T16:22:33Z | 2019-07-17T16:22:33Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
df = pd.DataFrame({'data': []})
print (df.describe())
print ('Dataframe mean: {}'.format(df['data'].describe().mean()))
print ('Dataframe min: {}'.format(df['data'].describe().min()))
print ('Dataframe count: {}'.format(df['data'].describe().count()))
```
#### Problem description
This problem occurred when bringing in data from a file which was filled with NaN data values. It is easy to solve using df.empty first and then checking for min/max if df.empty is false. The unexpected problem was that while df.describe() method properly reported the NaN values in the file, the methods of min, mean, count, etc. applied to the describe method produced the wrong values ( i.e., instead of NaN, the result is 0 and instead of a count of 0, the result is 1).
#### Expected Output
<details>
```print ('Dataframe mean: {}'.format(df['data'].describe().mean()))```
Dataframe mean: NaN
```print ('Dataframe min: {}'.format(df['data'].describe().min()))```
Dataframe min: NaN
```print ('Dataframe count: {}'.format(df['data'].describe().count()))```
Dataframe count: 0
#### Output of ``pd.show_versions()``
</details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Darwin
OS-release: 14.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
LOCALE: en_US.UTF-8
pandas: 0.24.2
pytest: None
pip: 19.1
setuptools: 41.0.1
Cython: None
numpy: 1.16.3
scipy: 1.2.1
pyarrow: None
xarray: 0.12.1
IPython: 7.5.0
sphinx: None
patsy: None
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: 4.3.3
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10.1
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/27433/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27433/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27434 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27434/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27434/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27434/events | https://github.com/pandas-dev/pandas/issues/27434 | 469,336,683 | MDU6SXNzdWU0NjkzMzY2ODM= | 27,434 | Connecting to Kaggle for data. | {
"avatar_url": "https://avatars.githubusercontent.com/u/49919149?v=4",
"events_url": "https://api.github.com/users/VipinJain1/events{/privacy}",
"followers_url": "https://api.github.com/users/VipinJain1/followers",
"following_url": "https://api.github.com/users/VipinJain1/following{/other_user}",
"gists_url": "https://api.github.com/users/VipinJain1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/VipinJain1",
"id": 49919149,
"login": "VipinJain1",
"node_id": "MDQ6VXNlcjQ5OTE5MTQ5",
"organizations_url": "https://api.github.com/users/VipinJain1/orgs",
"received_events_url": "https://api.github.com/users/VipinJain1/received_events",
"repos_url": "https://api.github.com/users/VipinJain1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/VipinJain1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/VipinJain1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/VipinJain1"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] | closed | false | null | [] | null | 2 | 2019-07-17T16:57:54Z | 2019-08-01T03:34:26Z | 2019-07-17T17:00:24Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
project_data = pd.read_csv('https://www.kaggle.com/hanselhansel/donorschoose#train_data.csv')
resource_data = pd.read_csv('https://www.kaggle.com/hanselhansel/donorschoose#Resources.csv')
```
#### Problem description
Anyone one knows if I am passing the right way.
---------------------------------------------------------------------------
ParserError Traceback (most recent call last)
<ipython-input-8-f36897a1d126> in <module>
----> 1 project_data = pd.read_csv('https://www.kaggle.com/devesh8052/donors-choode-dataset#train_data.csv')
2 resource_data = pd.read_csv('https://www.kaggle.com/devesh8052/donors-choode-dataset#Resources.csv')
3 #Limit the data for testing purpose since processing takes few hours for full set..
4
5 project_data = project_data.head(20000)
/opt/conda/lib/python3.6/site-packages/pandas/io/parsers.py in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, skipfooter, doublequote, delim_whitespace, low_memory, memory_map, float_precision)
676 skip_blank_lines=skip_blank_lines)
677
--> 678 return _read(filepath_or_buffer, kwds)
679
680 parser_f.__name__ = name
/opt/conda/lib/python3.6/site-packages/pandas/io/parsers.py in _read(filepath_or_buffer, kwds)
444
445 try:
--> 446 data = parser.read(nrows)
447 finally:
448 parser.close()
/opt/conda/lib/python3.6/site-packages/pandas/io/parsers.py in read(self, nrows)
1034 raise ValueError('skipfooter not supported for iteration')
1035
-> 1036 ret = self._engine.read(nrows)
1037
1038 # May alter columns / col_dict
/opt/conda/lib/python3.6/site-packages/pandas/io/parsers.py in read(self, nrows)
1846 def read(self, nrows=None):
1847 try:
-> 1848 data = self._reader.read(nrows)
1849 except StopIteration:
1850 if self._first_chunk:
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader.read()
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._read_low_memory()
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._read_rows()
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._tokenize_rows()
pandas/_libs/parsers.pyx in pandas._libs.parsers.raise_parser_error()
ParserError: Error tokenizing data. C error: Expected 1 fields in line 6, saw 2
[this should explain **why** the current behaviour is a problem and why the expected output is a better solution.]
**Note**: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!
**Note**: Many problems can be resolved by simply upgrading `pandas` to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if `master` addresses this issue, but that is not necessary.
For documentation-related issues, you can check the latest versions of the docs on `master` here:
https://pandas-docs.github.io/pandas-docs-travis/
If the issue has not been resolved there, go ahead and file it in the issue tracker.
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
</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/27434/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27434/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27435 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27435/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27435/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27435/events | https://github.com/pandas-dev/pandas/issues/27435 | 469,368,371 | MDU6SXNzdWU0NjkzNjgzNzE= | 27,435 | Cannot install pandas 0.24.2 from source with Python 2.7 into an environment without NumPy | {
"avatar_url": "https://avatars.githubusercontent.com/u/72918?v=4",
"events_url": "https://api.github.com/users/didip/events{/privacy}",
"followers_url": "https://api.github.com/users/didip/followers",
"following_url": "https://api.github.com/users/didip/following{/other_user}",
"gists_url": "https://api.github.com/users/didip/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/didip",
"id": 72918,
"login": "didip",
"node_id": "MDQ6VXNlcjcyOTE4",
"organizations_url": "https://api.github.com/users/didip/orgs",
"received_events_url": "https://api.github.com/users/didip/received_events",
"repos_url": "https://api.github.com/users/didip/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/didip/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/didip/subscriptions",
"type": "User",
"url": "https://api.github.com/users/didip"
} | [
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
] | closed | false | null | [] | {
"closed_at": "2020-04-03T17:32:18Z",
"closed_issues": 9,
"created_at": "2019-03-11T13:56:56Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2020-04-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/64",
"id": 4129119,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/64/labels",
"node_id": "MDk6TWlsZXN0b25lNDEyOTExOQ==",
"number": 64,
"open_issues": 0,
"state": "closed",
"title": "0.24.3",
"updated_at": "2020-04-03T17:32:18Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/64"
} | 32 | 2019-07-17T18:09:20Z | 2020-04-03T14:57:32Z | 2019-10-22T01:24:43Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```bash
RuntimeError: Python version >= 3.5 required.
```
#### Problem description
Under this docs: https://pandas.pydata.org/pandas-docs/stable/whatsnew/v0.24.0.html
0.24.x is supposed to be backward compatible to Python 2.
```
The 0.24.x series of releases will be the last to support Python 2. Future feature releases will support Python 3 only. See Plan for dropping Python 2.7 for more details
```
#### Expected Output
0.24.2 should still work on Python 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/27435/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27435/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27436 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27436/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27436/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27436/events | https://github.com/pandas-dev/pandas/pull/27436 | 469,371,508 | MDExOlB1bGxSZXF1ZXN0Mjk4NjEzMzQ1 | 27,436 | BUG: fix+test quantile with empty DataFrame, closes #23925 | {
"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": "eb6420",
"default": false,
"description": "Non-arithmetic algos: va... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 1 | 2019-07-17T18:17:01Z | 2019-07-24T13:20:10Z | 2019-07-24T12:07:14Z | MEMBER | null | - [x] closes #23925
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27436/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27436/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27436.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27436",
"merged_at": "2019-07-24T12:07:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27436.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27436"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27437 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27437/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27437/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27437/events | https://github.com/pandas-dev/pandas/issues/27437 | 469,374,615 | MDU6SXNzdWU0NjkzNzQ2MTU= | 27,437 | Indexing on series where index is output from pd.cut | {
"avatar_url": "https://avatars.githubusercontent.com/u/20798845?v=4",
"events_url": "https://api.github.com/users/kuchenrolle/events{/privacy}",
"followers_url": "https://api.github.com/users/kuchenrolle/followers",
"following_url": "https://api.github.com/users/kuchenrolle/following{/other_user}",
"gists_url": "https://api.github.com/users/kuchenrolle/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kuchenrolle",
"id": 20798845,
"login": "kuchenrolle",
"node_id": "MDQ6VXNlcjIwNzk4ODQ1",
"organizations_url": "https://api.github.com/users/kuchenrolle/orgs",
"received_events_url": "https://api.github.com/users/kuchenrolle/received_events",
"repos_url": "https://api.github.com/users/kuchenrolle/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kuchenrolle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kuchenrolle/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kuchenrolle"
} | [
{
"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": "0e... | open | false | null | [] | null | 2 | 2019-07-17T18:24:13Z | 2021-09-20T18:27:19Z | null | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
data = pd.DataFrame(dict(values=range(20), quintiles=pd.cut(range(20), 5)))
grouped = data.groupby("quintiles")["values"]
samples = grouped.agg(lambda x: list(x.sample(3)))
samples
# quintiles
# (-0.019, 3.8] [3, 2, 1]
# (3.8, 7.6] [7, 4, 6]
# (7.6, 11.4] [8, 10, 11]
# (11.4, 15.2] [15, 14, 12]
# (15.2, 19.0] [17, 16, 19]
# Name: values, dtype: object
samples[0]
# [3, 2, 1]
samples[1]
# [3, 2, 1]
samples[2.3]
# [3, 2, 1]
samples[19]
# [17, 16, 19]
samples.keys()
# CategoricalIndex([(-0.019, 3.8], (3.8, 7.6], (7.6, 11.4], (11.4, 15.2],
# (15.2, 19.0]],
# categories=[(-0.019, 3.8], (3.8, 7.6], (7.6, 11.4], (11.4, 15.2], (15.2, 19.0]], ordered=True, name='quintiles', dtype='category')
```
#### Problem description
Indexing a series object that has pd.cut() intervals as its index results in membership test of the provided index on the intervals, which I found interesting, but it was very unexpected. Is this intentional and documented somewhere? When I give the labels names (labels=list("abcde") in pd.cut), this doesn't happen anymore.
#### Expected Output
I expectived it to fall back on .iloc[].
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Linux
OS-release: 3.10.0-957.12.2.el7.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8
LOCALE: en_GB.UTF-8
pandas: 0.24.2
pytest: 4.4.1
pip: 19.1.1
setuptools: 41.0.1
Cython: 0.29.6
numpy: 1.16.3
scipy: 1.2.1
pyarrow: None
xarray: 0.12.1
IPython: 7.4.0
sphinx: None
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.1.0
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: 4.3.3
bs4: 4.7.1
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/27437/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27437/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27438 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27438/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27438/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27438/events | https://github.com/pandas-dev/pandas/pull/27438 | 469,385,906 | MDExOlB1bGxSZXF1ZXN0Mjk4NjIzNzYw | 27,438 | BUG: maybe_convert_objects mixed datetimes and timedeltas | {
"avatar_url": "https://avatars.githubusercontent.com/u/19474336?v=4",
"events_url": "https://api.github.com/users/BeforeFlight/events{/privacy}",
"followers_url": "https://api.github.com/users/BeforeFlight/followers",
"following_url": "https://api.github.com/users/BeforeFlight/following{/other_user}",
"gists_url": "https://api.github.com/users/BeforeFlight/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/BeforeFlight",
"id": 19474336,
"login": "BeforeFlight",
"node_id": "MDQ6VXNlcjE5NDc0MzM2",
"organizations_url": "https://api.github.com/users/BeforeFlight/orgs",
"received_events_url": "https://api.github.com/users/BeforeFlight/received_events",
"repos_url": "https://api.github.com/users/BeforeFlight/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/BeforeFlight/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BeforeFlight/subscriptions",
"type": "User",
"url": "https://api.github.com/users/BeforeFlight"
} | [
{
"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"
},
{
"c... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 18 | 2019-07-17T18:47:51Z | 2019-07-25T19:56:41Z | 2019-07-24T12:05:48Z | CONTRIBUTOR | null | - [X] corresponding [discussion](https://github.com/pandas-dev/pandas/issues/27417#issuecomment-512014358) 27417
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
In order to stick to `maybe_convert_objects` realization it was needed to introduce `Seen().nat_` param. Since we want to distinguish following situations: were seen `NaT` or `datetime` or `timedelta`
NOTE: in current realization array full of `NaT` will be converted to `np.datetime64`. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27438/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27438/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27438.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27438",
"merged_at": "2019-07-24T12:05:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27438.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27438"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27439 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27439/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27439/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27439/events | https://github.com/pandas-dev/pandas/issues/27439 | 469,423,730 | MDU6SXNzdWU0Njk0MjM3MzA= | 27,439 | [Feature request] Add a "filter" method to Index and Series | {
"avatar_url": "https://avatars.githubusercontent.com/u/9061708?v=4",
"events_url": "https://api.github.com/users/jolespin/events{/privacy}",
"followers_url": "https://api.github.com/users/jolespin/followers",
"following_url": "https://api.github.com/users/jolespin/following{/other_user}",
"gists_url": "https://api.github.com/users/jolespin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jolespin",
"id": 9061708,
"login": "jolespin",
"node_id": "MDQ6VXNlcjkwNjE3MDg=",
"organizations_url": "https://api.github.com/users/jolespin/orgs",
"received_events_url": "https://api.github.com/users/jolespin/received_events",
"repos_url": "https://api.github.com/users/jolespin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jolespin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jolespin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jolespin"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
] | closed | false | null | [] | null | 4 | 2019-07-17T20:18:34Z | 2021-07-10T18:29:57Z | 2021-07-10T18:29:57Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
# Function
def _filter(self, func):
return self[list(map(func, self))]
# Set the attribute
setattr(pd.Index, "filter", _filter)
index = pd.Index(["iris_1", "notiris_1", "iris_2", "other_thing"])
# New way
func = lambda x:x.startswith("iris")
print("New way:", index.filter(func))
# Old way
print("Old way:", index[index.map(func)])
# New way: Index(['iris_1', 'iris_2'], dtype='object')
# Old way: Index(['iris_1', 'iris_2'], dtype='object')
# Set the attribute
setattr(pd.Series, "filter", _filter)
series = pd.Series(list("imagine_more_complex_stuff_here_instead"))
# New way
func = lambda x:x in ["o", "_"]
print("New way:", series.filter(func))
# Old way
print("Old way:", series[series.map(func)])
# New way: 7 _
# 9 o
# 12 _
# 14 o
# 20 _
# 26 _
# 31 _
# dtype: object
# Old way: 7 _
# 9 o
# 12 _
# 14 o
# 20 _
# 26 _
# 31 _
# dtype: object
```
#### Problem description
II always find myself writing really verbose code to filter my pandas indices or series. I love the map method and would like to extend this concept to include `filter`. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27439/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27439/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27440 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27440/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27440/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27440/events | https://github.com/pandas-dev/pandas/pull/27440 | 469,463,513 | MDExOlB1bGxSZXF1ZXN0Mjk4NjgyNzQw | 27,440 | CLN: Trim unused/unnecessary code | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "207de5... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 1 | 2019-07-17T21:50:07Z | 2019-07-18T14:32:11Z | 2019-07-18T10:56: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/27440/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27440/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27440.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27440",
"merged_at": "2019-07-18T10:56:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27440.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27440"
} | |
https://api.github.com/repos/pandas-dev/pandas/issues/27441 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27441/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27441/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27441/events | https://github.com/pandas-dev/pandas/issues/27441 | 469,484,956 | MDU6SXNzdWU0Njk0ODQ5NTY= | 27,441 | Add 'key' keyword argument to max/min methods, akin to python's builtin max/min | {
"avatar_url": "https://avatars.githubusercontent.com/u/79941?v=4",
"events_url": "https://api.github.com/users/Strilanc/events{/privacy}",
"followers_url": "https://api.github.com/users/Strilanc/followers",
"following_url": "https://api.github.com/users/Strilanc/following{/other_user}",
"gists_url": "https://api.github.com/users/Strilanc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Strilanc",
"id": 79941,
"login": "Strilanc",
"node_id": "MDQ6VXNlcjc5OTQx",
"organizations_url": "https://api.github.com/users/Strilanc/orgs",
"received_events_url": "https://api.github.com/users/Strilanc/received_events",
"repos_url": "https://api.github.com/users/Strilanc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Strilanc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Strilanc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Strilanc"
} | [] | closed | false | null | [] | null | 4 | 2019-07-17T22:48:56Z | 2019-07-17T23:08:14Z | 2019-07-17T23:08:14Z | NONE | null | See https://docs.python.org/3/library/functions.html#max
Specifying a `key=` function F to use indicates you want to return the `val` with the largest `F(val)`, as opposed to returning the largest val or returning the largest F(val).
The following code should work:
```
>>> pd.DataFrame([1, 3, 5, 7]).max(key=lambda e: e % 3)
5
```
For the same reason that this works:
```
>>> max([1, 3, 5, 7], key=lambda e: e % 3)
5
```
Currently, it is necessary to use workarounds such as create temporary copies of the output of the function:
```
>>> df = pd.DataFrame([1, 3, 5, 7])
>>> k = df.apply(lambda e: e % 3).idxmax()
>>> df[0][k]
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/27441/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27441/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27442 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27442/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27442/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27442/events | https://github.com/pandas-dev/pandas/issues/27442 | 469,492,865 | MDU6SXNzdWU0Njk0OTI4NjU= | 27,442 | Give pandas.core.groupby.generic.DataFrameGroupBy __str__/_repr_pretty_/__repr__ methods | {
"avatar_url": "https://avatars.githubusercontent.com/u/79941?v=4",
"events_url": "https://api.github.com/users/Strilanc/events{/privacy}",
"followers_url": "https://api.github.com/users/Strilanc/followers",
"following_url": "https://api.github.com/users/Strilanc/following{/other_user}",
"gists_url": "https://api.github.com/users/Strilanc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Strilanc",
"id": 79941,
"login": "Strilanc",
"node_id": "MDQ6VXNlcjc5OTQx",
"organizations_url": "https://api.github.com/users/Strilanc/orgs",
"received_events_url": "https://api.github.com/users/Strilanc/received_events",
"repos_url": "https://api.github.com/users/Strilanc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Strilanc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Strilanc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Strilanc"
} | [
{
"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,
... | open | false | null | [] | null | 5 | 2019-07-17T23:13:12Z | 2021-07-10T18:30:33Z | null | NONE | null | Current behavior:
```
>>> df = pd.DataFrame({'a': [1, 1, 3], 'b': [9, 8, 7]})
>>> df.groupby('a')
<pandas.core.groupby.generic.DataFrameGroupBy object at 0x7fd3d5a7b470>
```
Desired behavior (example, not exact):
```
>>> df = pd.DataFrame({'a': [1, 1, 3], 'b': [9, 8, 7]})
>>> df.groupby('a')
group a=1
a b
0 1 9
1 1 8
group a=3
a b
2 3 7
``` | {
"+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/27442/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27442/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27443 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27443/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27443/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27443/events | https://github.com/pandas-dev/pandas/pull/27443 | 469,530,530 | MDExOlB1bGxSZXF1ZXN0Mjk4NzI2ODM2 | 27,443 | TST: Add test for operations on DataFrame with Interval CategoricalIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/6498024?v=4",
"events_url": "https://api.github.com/users/another-green/events{/privacy}",
"followers_url": "https://api.github.com/users/another-green/followers",
"following_url": "https://api.github.com/users/another-green/following{/other_user}",
"gists_url": "https://api.github.com/users/another-green/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/another-green",
"id": 6498024,
"login": "another-green",
"node_id": "MDQ6VXNlcjY0OTgwMjQ=",
"organizations_url": "https://api.github.com/users/another-green/orgs",
"received_events_url": "https://api.github.com/users/another-green/received_events",
"repos_url": "https://api.github.com/users/another-green/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/another-green/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/another-green/subscriptions",
"type": "User",
"url": "https://api.github.com/users/another-green"
} | [
{
"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",
"d... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 2 | 2019-07-18T01:43:53Z | 2019-07-23T22:06:19Z | 2019-07-23T22:06:16Z | CONTRIBUTOR | null | - [x] closes #27415
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27443/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27443/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27443.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27443",
"merged_at": "2019-07-23T22:06:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27443.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27443"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27444 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27444/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27444/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27444/events | https://github.com/pandas-dev/pandas/pull/27444 | 469,544,767 | MDExOlB1bGxSZXF1ZXN0Mjk4NzM2MjYy | 27,444 | CLN: simplify maybe_convert_objects, soft_convert_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": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "207de5... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 2 | 2019-07-18T02:46:26Z | 2019-07-20T23:52:50Z | 2019-07-20T23:49:48Z | MEMBER | null | Block.replace has code for dispatching to either maybe_convert_objects or soft_convert_objects, but the former is only reached from the tests. So rip that out and use soft_convert_objects.
Both of the functions have branches that are unreachable, so rip those out, along with adding types and validation. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27444/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27444/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27444.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27444",
"merged_at": "2019-07-20T23:49:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27444.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27444"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27445 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27445/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27445/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27445/events | https://github.com/pandas-dev/pandas/pull/27445 | 469,545,970 | MDExOlB1bGxSZXF1ZXN0Mjk4NzM3MTcz | 27,445 | BUG: avoid incorrectly inheriting 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": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or b... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 5 | 2019-07-18T02:51:43Z | 2019-07-26T17:21:17Z | 2019-07-26T17:21:05Z | MEMBER | null | This has caused problems in a number of local branches, but I don't have a good test case on master. Suggestions welcome. Still though, the failure mode is pretty clear, so this fixes it. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27445/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27445/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27445.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27445",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/27445.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27445"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27446 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27446/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27446/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27446/events | https://github.com/pandas-dev/pandas/issues/27446 | 469,566,261 | MDU6SXNzdWU0Njk1NjYyNjE= | 27,446 | Is the internal twosigma refactor of window.pyx planned for merging in pandas? | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [] | closed | false | null | [] | null | 4 | 2019-07-18T04:35:00Z | 2019-07-19T03:43:07Z | 2019-07-18T19:57:57Z | NONE | null | I've been thinking of improvements to pandas rolling window functionality. Namely, allowing users to supply their own indexers and allowing numba JIT'd kernels to be passed to apply/transform.
I [floated](](https://github.com/pandas-dev/pandas/pull/27403#discussion_r304165649)) the idea of a window.pyx refactor, and was told that "others are working on it". I've seen no issue for this on pandas-dev/pandas, but there's apperently an effort going privately at Twosigma to do a major redesign of this part of pandas.
Of course they're free to develop whatever they want internally, but if this is meant for inclusion in pandas, why is the design not being discussed here? and if it's an internal effort only (perfectly fine), why should their efforts influence efforts by contributors such as myself?
I'd kindly to like to have this clarified before I waste time working on my own PR.
There seems to be an intention to push [some bits](https://github.com/twosigma/pandas/pull/3#pullrequestreview-258851617) to pandas, but not others ?
> jreback: I would do this versus pandas/master. Best to push whatever we can there
> in small uncontroversial bits.
See https://github.com/pandas-dev/pandas/pull/27305, and https://github.com/twosigma/pandas/issues/4
cc @jreback , @mroeschke
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27446/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27446/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27447 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27447/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27447/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27447/events | https://github.com/pandas-dev/pandas/pull/27447 | 469,571,737 | MDExOlB1bGxSZXF1ZXN0Mjk4NzU2NjY1 | 27,447 | WIP: treat list of namedtuples like list of dict in DataFrame() | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [] | closed | false | null | [] | null | 0 | 2019-07-18T05:03:33Z | 2019-07-20T18:40:49Z | 2019-07-20T18:31:37Z | NONE | null | Retrying in a new PR. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27447/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27447/timeline | null | 1 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27447.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27447",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/27447.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27447"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27448 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27448/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27448/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27448/events | https://github.com/pandas-dev/pandas/pull/27448 | 469,595,251 | MDExOlB1bGxSZXF1ZXN0Mjk4Nzc0Mjg3 | 27,448 | PERF: restore performance for unsorted CategoricalDtype comparison | {
"avatar_url": "https://avatars.githubusercontent.com/u/440095?v=4",
"events_url": "https://api.github.com/users/qwhelan/events{/privacy}",
"followers_url": "https://api.github.com/users/qwhelan/followers",
"following_url": "https://api.github.com/users/qwhelan/following{/other_user}",
"gists_url": "https://api.github.com/users/qwhelan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/qwhelan",
"id": 440095,
"login": "qwhelan",
"node_id": "MDQ6VXNlcjQ0MDA5NQ==",
"organizations_url": "https://api.github.com/users/qwhelan/orgs",
"received_events_url": "https://api.github.com/users/qwhelan/received_events",
"repos_url": "https://api.github.com/users/qwhelan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/qwhelan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/qwhelan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/qwhelan"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "e11d21",
"default"... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 1 | 2019-07-18T06:39:11Z | 2019-07-18T10:53:56Z | 2019-07-18T10:53:29Z | CONTRIBUTOR | null | Fixes a performance regression introduced in #26403 very shortly before `0.25.0rc0` was cut, which can be seen [here](https://qwhelan.github.io/pandas/#indexing.CategoricalIndexIndexing.time_getitem_slice?machine=T470&num_cpu=4&os=Linux%205.0.0-20-generic&ram=20305904)

When comparing `CategoricalDtype`s with `ordered=False` (the default), a hash is currently done that is relatively slow even for a small number of categories. If we check if the categories happen to be the same and in the same order, we see a significant speedup in the equal case. The `.equals()` function pre-exits, so overhead in the non-equal case should be minimal.
`asv` results:
```
before after ratio
[a4c19e7a] [6810ff2f]
<unsorted_cats~1> <unsorted_cats>
- 179±0.4μs 25.6±0.4μs 0.14 indexing.CategoricalIndexIndexing.time_getitem_slice('monotonic_decr')
- 179±2μs 25.2±1μs 0.14 indexing.CategoricalIndexIndexing.time_getitem_slice('monotonic_incr')
- 180±0.4μs 25.1±0.3μs 0.14 indexing.CategoricalIndexIndexing.time_getitem_slice('non_monotonic')
```
- [ ] 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/27448/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27448/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27448.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27448",
"merged_at": "2019-07-18T10:53:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27448.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27448"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27449 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27449/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27449/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27449/events | https://github.com/pandas-dev/pandas/issues/27449 | 469,661,011 | MDU6SXNzdWU0Njk2NjEwMTE= | 27,449 | Usage of .loc with output of drop_dupilcates() returned DatetimeIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/20794273?v=4",
"events_url": "https://api.github.com/users/Dremet/events{/privacy}",
"followers_url": "https://api.github.com/users/Dremet/followers",
"following_url": "https://api.github.com/users/Dremet/following{/other_user}",
"gists_url": "https://api.github.com/users/Dremet/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Dremet",
"id": 20794273,
"login": "Dremet",
"node_id": "MDQ6VXNlcjIwNzk0Mjcz",
"organizations_url": "https://api.github.com/users/Dremet/orgs",
"received_events_url": "https://api.github.com/users/Dremet/received_events",
"repos_url": "https://api.github.com/users/Dremet/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Dremet/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dremet/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Dremet"
} | [] | closed | false | null | [] | null | 1 | 2019-07-18T09:21:13Z | 2019-07-18T09:26:36Z | 2019-07-18T09:26:11Z | NONE | null | Basically I want to get rid of duplicated DatetimeIndex items. I do not understand why this does not work using the output of "drop_duplicates()".
I am using pandas 0.24.2
This shows that drop_duplicates() in the loc statement does not work although it does work with the boolean approach.
```python
import pandas as pd
df1 = pd.DataFrame(index=pd.date_range("2018-01-01", periods=3))
df2 = pd.DataFrame(index=pd.date_range("2018-01-03", periods=3))
df3 = df1.append(df2)
df3 = df3.loc[df3.index.drop_duplicates(), :]
print(df3)
# Empty DataFrame
# Columns: []
# Index: [2018-01-01 00:00:00, 2018-01-02 00:00:00, 2018-01-03 00:00:00, 2018-01-03 00:00:00, 2018-01-04 00:00:00, 2018-01-05 00:00:00]
print(df3.loc[~df3.index.duplicated(), :])
# Empty DataFrame
# Columns: []
# Index: [2018-01-01 00:00:00, 2018-01-02 00:00:00, 2018-01-03 00:00:00, 2018-01-04 00:00:00, 2018-01-05 00:00:00]
print(df3.index.drop_duplicates())
# DatetimeIndex(['2018-01-01', '2018-01-02', '2018-01-03', '2018-01-04',
# '2018-01-05'],
# dtype='datetime64[ns]', freq=None)
```
drop_duplicates() returns the correct indexes, but does not work as expected in .loc.
So, first thing I thought is that I can not use an index to select rows and that I instead need to always use boolean lists/arrays/…. Then, I checked types and tried to use an index range, which works, surprisingly:
```python
print(type(df3.index.drop_duplicates()))
# <class 'pandas.core.indexes.datetimes.DatetimeIndex'>
```
```python
print(type(df3.index[2:4]))
# <class 'pandas.core.indexes.datetimes.DatetimeIndex'>
```
```python
print(df3.loc[df3.index[1:3],:])
# Empty DataFrame
# Columns: []
# Index: [2018-01-02 00:00:00, 2018-01-03 00:00:00, 2018-01-03 00:00:00]
```
So, I can use .loc to get certain indexes, but although the type is the same, I can not use the output of drop_duplicates(), which is not what I expected.
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Darwin
OS-release: 17.7.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.2
pytest: 4.4.1
pip: 19.1
setuptools: 41.0.1
Cython: None
numpy: 1.16.3
scipy: 1.2.1
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10.1
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/27449/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27449/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27450 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27450/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27450/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27450/events | https://github.com/pandas-dev/pandas/issues/27450 | 469,686,451 | MDU6SXNzdWU0Njk2ODY0NTE= | 27,450 | Why read_sas is converting strings to float? | {
"avatar_url": "https://avatars.githubusercontent.com/u/17984266?v=4",
"events_url": "https://api.github.com/users/SqrtPapere/events{/privacy}",
"followers_url": "https://api.github.com/users/SqrtPapere/followers",
"following_url": "https://api.github.com/users/SqrtPapere/following{/other_user}",
"gists_url": "https://api.github.com/users/SqrtPapere/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SqrtPapere",
"id": 17984266,
"login": "SqrtPapere",
"node_id": "MDQ6VXNlcjE3OTg0MjY2",
"organizations_url": "https://api.github.com/users/SqrtPapere/orgs",
"received_events_url": "https://api.github.com/users/SqrtPapere/received_events",
"repos_url": "https://api.github.com/users/SqrtPapere/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SqrtPapere/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SqrtPapere/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SqrtPapere"
} | [
{
"color": "5319e7",
"default": false,
"description": "SAS: read_sas",
"id": 258745163,
"name": "IO SAS",
"node_id": "MDU6TGFiZWwyNTg3NDUxNjM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SAS"
},
{
"color": "207de5",
"default": false,
"description"... | closed | false | null | [] | null | 12 | 2019-07-18T10:15:02Z | 2019-07-23T18:16:20Z | 2019-07-23T16:48:34Z | NONE | null | #### Code Sample
```python
import pandas as pd
df = pd.read_sas('test.sas7bdat', format='sas7bdat', encoding='utf-8')
```
#### Problem description
I am trying to read a `.sas7bdat` file using `read_sas` and I am having a hard time because the module is converting strings values that look like a number into `float`.
For example, if I have a telephone number like `'348386789'` and I read it with the code I posted the output obtained is `348386789.0`.
I noticed the same problem in the `read_csv` function but there you can use the argument `dtype` to manually set the type for each column (es. dtype={'number': str)}).
#### Expected Output
`'348386789'`
#### Output of ``pd.show_versions()``
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.2.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.24.2
pytest: None
pip: 19.1.1
setuptools: 41.0.0
Cython: None
numpy: 1.16.3
scipy: None
pyarrow: 0.13.0
xarray: None
IPython: 7.4.0
sphinx: 2.1.2
patsy: None
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: 3.5.2
numexpr: 2.6.9
feather: 0.4.0
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: 4.3.4
bs4: None
html5lib: None
sqlalchemy: 1.3.5
pymysql: None
psycopg2: None
jinja2: 2.10.1
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/27450/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27450/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27451 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27451/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27451/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27451/events | https://github.com/pandas-dev/pandas/issues/27451 | 469,703,094 | MDU6SXNzdWU0Njk3MDMwOTQ= | 27,451 | `Dataframe.sample()` isn't validating `frac` | {
"avatar_url": "https://avatars.githubusercontent.com/u/225259?v=4",
"events_url": "https://api.github.com/users/ddebernardy/events{/privacy}",
"followers_url": "https://api.github.com/users/ddebernardy/followers",
"following_url": "https://api.github.com/users/ddebernardy/following{/other_user}",
"gists_url": "https://api.github.com/users/ddebernardy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ddebernardy",
"id": 225259,
"login": "ddebernardy",
"node_id": "MDQ6VXNlcjIyNTI1OQ==",
"organizations_url": "https://api.github.com/users/ddebernardy/orgs",
"received_events_url": "https://api.github.com/users/ddebernardy/received_events",
"repos_url": "https://api.github.com/users/ddebernardy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ddebernardy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ddebernardy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ddebernardy"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 7171206... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 2 | 2019-07-18T10:55:17Z | 2019-11-08T01:03:24Z | 2019-11-08T01:03:24Z | NONE | null | Minor/trivial bug:
https://github.com/pandas-dev/pandas/blob/master/pandas/core/generic.py#L4960
Shouldn't `sample()` check that `frac` is between 0 and 1 somewhere?
Doc improvement suggestion:
Could anyone confirm that `replace=True|False` means allowing|disallowing sampling the same row more than once?
Methinks the docs could use an update to make what `replace` does clearer for newcomers - or at least for those who aren't familiar with `numpy`. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27451/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27451/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27452 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27452/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27452/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27452/events | https://github.com/pandas-dev/pandas/issues/27452 | 469,707,237 | MDU6SXNzdWU0Njk3MDcyMzc= | 27,452 | .merge() does not preserve the row-order at the output dataframe | {
"avatar_url": "https://avatars.githubusercontent.com/u/32899037?v=4",
"events_url": "https://api.github.com/users/PoeteMaudit/events{/privacy}",
"followers_url": "https://api.github.com/users/PoeteMaudit/followers",
"following_url": "https://api.github.com/users/PoeteMaudit/following{/other_user}",
"gists_url": "https://api.github.com/users/PoeteMaudit/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/PoeteMaudit",
"id": 32899037,
"login": "PoeteMaudit",
"node_id": "MDQ6VXNlcjMyODk5MDM3",
"organizations_url": "https://api.github.com/users/PoeteMaudit/orgs",
"received_events_url": "https://api.github.com/users/PoeteMaudit/received_events",
"repos_url": "https://api.github.com/users/PoeteMaudit/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/PoeteMaudit/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/PoeteMaudit/subscriptions",
"type": "User",
"url": "https://api.github.com/users/PoeteMaudit"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "009800",
"de... | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 2 | 2019-07-18T11:05:24Z | 2019-07-18T11:15:32Z | 2019-07-18T11:15:08Z | NONE | null | Have a look here:
https://stackoverflow.com/q/57092373/9024698 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27452/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27452/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27453 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27453/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27453/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27453/events | https://github.com/pandas-dev/pandas/issues/27453 | 469,710,225 | MDU6SXNzdWU0Njk3MTAyMjU= | 27,453 | Right merge not preserve order | {
"avatar_url": "https://avatars.githubusercontent.com/u/10682573?v=4",
"events_url": "https://api.github.com/users/jesrael/events{/privacy}",
"followers_url": "https://api.github.com/users/jesrael/followers",
"following_url": "https://api.github.com/users/jesrael/following{/other_user}",
"gists_url": "https://api.github.com/users/jesrael/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jesrael",
"id": 10682573,
"login": "jesrael",
"node_id": "MDQ6VXNlcjEwNjgyNTcz",
"organizations_url": "https://api.github.com/users/jesrael/orgs",
"received_events_url": "https://api.github.com/users/jesrael/received_events",
"repos_url": "https://api.github.com/users/jesrael/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jesrael/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jesrael/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jesrael"
} | [
{
"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, Stac... | closed | false | null | [] | {
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
} | 4 | 2019-07-18T11:12:41Z | 2020-03-26T12:45:38Z | 2020-03-26T12:45:38Z | NONE | null | Base by [SO question](https://stackoverflow.com/q/57092373/2901002):
Merge with right join not preserve order of columns:
columns = ['A', 'B', 'C']
data_1 = [[2, 5, 3, 5], [8, 2, 4, 1], [6, 5, 9, 1]]
data_1 = np.array(data_1).T
df_1 = pd.DataFrame(data=data_1, columns=columns)
print (df_1)
A B C
0 2 8 6
1 5 2 5
2 3 4 9
3 5 1 1
columns = ['A', 'B', 'C']
data_2 = [[2, 5, 3, 5], [7, 1, 3, 0], [np.nan, np.nan, np.nan, np.nan]]
data_2 = np.array(data_2).T
df_2 = pd.DataFrame(data=data_2, columns=columns)
print (df_2)
A B C
0 2.0 7.0 NaN
1 5.0 1.0 NaN
2 3.0 3.0 NaN
3 5.0 0.0 NaN
#right join NOT preserve order
df1 = df_1.merge(df_2[['A', 'B']], on=['A', 'B'], how='right')
print (df1)
A B C
0 5 1 1.0
1 2 7 NaN
2 3 3 NaN
3 5 0 NaN
Correct order for right join:
A B C
0 2 7 NaN
1 5 1 1
2 3 3 NaN
3 5 0 NaN
#left join wpreserve order correct
df2 = df_1.merge(df_2[['A', 'B']], on=['A', 'B'], how='left')
print (df2)
A B C
0 2 8 6
1 5 2 5
2 3 4 9
3 5 1 1
----
print (pd.show_versions())
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: en
LOCALE: None.None
pandas: 0.24.2
pytest: 4.3.1
pip: 19.0.3
setuptools: 40.8.0
Cython: 0.29.6
numpy: 1.16.2
scipy: 1.2.1
pyarrow: None
xarray: None
IPython: 7.4.0
sphinx: 1.8.5
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2018.9
blosc: None
bottleneck: 1.2.1
tables: 3.5.1
numexpr: 2.6.9
feather: None
matplotlib: 3.0.3
openpyxl: 2.6.1
xlrd: 1.2.0
xlwt: 1.3.0
xlsxwriter: 1.1.5
lxml.etree: 4.3.2
bs4: 4.7.1
html5lib: 1.0.1
sqlalchemy: 1.3.1
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
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/27453/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27453/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27454 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27454/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27454/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27454/events | https://github.com/pandas-dev/pandas/issues/27454 | 469,738,644 | MDU6SXNzdWU0Njk3Mzg2NDQ= | 27,454 | pd.to_datetime() flaw mixed behavior yielding inconsistant results | {
"avatar_url": "https://avatars.githubusercontent.com/u/44897925?v=4",
"events_url": "https://api.github.com/users/go2sree/events{/privacy}",
"followers_url": "https://api.github.com/users/go2sree/followers",
"following_url": "https://api.github.com/users/go2sree/following{/other_user}",
"gists_url": "https://api.github.com/users/go2sree/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/go2sree",
"id": 44897925,
"login": "go2sree",
"node_id": "MDQ6VXNlcjQ0ODk3OTI1",
"organizations_url": "https://api.github.com/users/go2sree/orgs",
"received_events_url": "https://api.github.com/users/go2sree/received_events",
"repos_url": "https://api.github.com/users/go2sree/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/go2sree/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/go2sree/subscriptions",
"type": "User",
"url": "https://api.github.com/users/go2sree"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] | closed | false | null | [] | null | 1 | 2019-07-18T12:21:11Z | 2019-07-18T16:55:53Z | 2019-07-18T16:55:48Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
str1='05-01-2019 00:37'
date1=pd.to_datetime(str1).date()
print(date1)
# output 2019-05-01
str2='15-01-2019 00:37'
date2=pd.to_datetime(str2).date()
print(date2)
# output 2019-01-15
```
#### Problem description
pd.to_datetime( ) is giving inconsistant out put, in the first piece of code where 01 is month and 05 is date after conversion these values have interchanged 01 as date and 05 as month.
but for similar code where the string value has 15 as date and 01 as month after conversion remained the same as expected.
I have tried .astype(‘datetime64’) and this also yielded the same wrong values as above code



Is this a known Issue and please provide workaround
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27454/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27454/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27455 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27455/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27455/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27455/events | https://github.com/pandas-dev/pandas/pull/27455 | 469,825,394 | MDExOlB1bGxSZXF1ZXN0Mjk4OTU5NTQw | 27,455 | Pinned date and fixed contributors directive | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"color": "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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 1 | 2019-07-18T15:07:13Z | 2019-07-18T15:56:41Z | 2019-07-18T15:56:36Z | MEMBER | null | @TomAugspurger | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27455/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27455/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27455.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27455",
"merged_at": "2019-07-18T15:56:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27455.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27455"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27456 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27456/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27456/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27456/events | https://github.com/pandas-dev/pandas/issues/27456 | 469,870,854 | MDU6SXNzdWU0Njk4NzA4NTQ= | 27,456 | issues with overlapping multi index intervals | {
"avatar_url": "https://avatars.githubusercontent.com/u/29493960?v=4",
"events_url": "https://api.github.com/users/mahdirajabi96/events{/privacy}",
"followers_url": "https://api.github.com/users/mahdirajabi96/followers",
"following_url": "https://api.github.com/users/mahdirajabi96/following{/other_user}",
"gists_url": "https://api.github.com/users/mahdirajabi96/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mahdirajabi96",
"id": 29493960,
"login": "mahdirajabi96",
"node_id": "MDQ6VXNlcjI5NDkzOTYw",
"organizations_url": "https://api.github.com/users/mahdirajabi96/orgs",
"received_events_url": "https://api.github.com/users/mahdirajabi96/received_events",
"repos_url": "https://api.github.com/users/mahdirajabi96/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mahdirajabi96/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mahdirajabi96/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mahdirajabi96"
} | [
{
"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 s... | open | false | null | [] | null | 13 | 2019-07-18T16:33:22Z | 2020-04-27T00:16:45Z | null | NONE | null | Scenario 1: single-level indexing, which works fine:
import pandas as pd # pandas version 0.25.0, python version: 3.6.6
idx = pd.IntervalIndex.from_arrays([1,3,1,2],
[3,4,2,4])
df = pd.DataFrame({'Value':[1,2,3,4]},index=idx)
which returns:
df =
Value
(1,3] 1
(3,4] 2
(1,2] 3
(2,4] 4
query results:
df.loc[1.5] =
Value
(1,3] 1
(1,2] 3
Scenario 2: Multi-level indexing:
idx1 = pd.MultiIndex.from_arrays([
pd.Index(['label1','label1','label2','label2']),
pd.IntervalIndex.from_arrays([1,3,1,2],
[3,4,2,4])
])
idx2 = pd.MultiIndex.from_arrays([
pd.Index(['label1','label1','label2','label2']),
pd.IntervalIndex.from_arrays([1,2,1,2],
[2,4,2,4])
])
df1 = pd.DataFrame({'Value':[1,2,3,4]},index=idx1) #with overlapping intervals
df2 = pd.DataFrame({'Value':[1,2,3,4]},index=idx2) #without overlapping intervals
which returns:
df1 =
Value
label1 (1,3] 1
label1 (3,4] 2
label2 (1,2] 3
label2 (2,4] 4
df2 =
Value
label1 (1,2] 1
label1 (2,4] 2
label2 (1,2] 3
label2 (2,4] 4
query method 1: works fine on both df1 and df2 but is slow
df1.Value.loc['label1'].loc[1.5]
1
query method 2: works only with df2, doesn't work with df1, is 10 times faster than query method 1
df2.Value.loc[('label1',1.5)]
1
df1.Value.loc[('label1',1.5)]
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance)
2889 try:
-> 2890 return self._engine.get_loc(key)
2891 except KeyError:
pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc()
pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc()
pandas\_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()
pandas\_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()
KeyError: 1.5
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)
<ipython-input-12-ef83c1160165> in <module>()
11 display(df)
12 print(df.loc['label1'].loc[1.5])
---> 13 print(df.loc[('label1',1.5)])
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\indexing.py in __getitem__(self, key)
1402 except (KeyError, IndexError, AttributeError):
1403 pass
-> 1404 return self._getitem_tuple(key)
1405 else:
1406 # we by definition only have the 0th axis
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\indexing.py in _getitem_tuple(self, tup)
789 def _getitem_tuple(self, tup):
790 try:
--> 791 return self._getitem_lowerdim(tup)
792 except IndexingError:
793 pass
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\indexing.py in _getitem_lowerdim(self, tup)
945 return section
946 # This is an elided recursive call to iloc/loc/etc'
--> 947 return getattr(section, self.name)[new_key]
948
949 raise IndexingError("not applicable")
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\indexing.py in __getitem__(self, key)
1402 except (KeyError, IndexError, AttributeError):
1403 pass
-> 1404 return self._getitem_tuple(key)
1405 else:
1406 # we by definition only have the 0th axis
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\indexing.py in _getitem_tuple(self, tup)
789 def _getitem_tuple(self, tup):
790 try:
--> 791 return self._getitem_lowerdim(tup)
792 except IndexingError:
793 pass
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\indexing.py in _getitem_lowerdim(self, tup)
913 for i, key in enumerate(tup):
914 if is_label_like(key) or isinstance(key, tuple):
--> 915 section = self._getitem_axis(key, axis=i)
916
917 # we have yielded a scalar ?
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\indexing.py in _getitem_axis(self, key, axis)
1823 # fall thru to straight lookup
1824 self._validate_key(key, axis)
-> 1825 return self._get_label(key, axis=axis)
1826
1827
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\indexing.py in _get_label(self, label, axis)
155 raise IndexingError("no slices here, handle elsewhere")
156
--> 157 return self.obj._xs(label, axis=axis)
158
159 def _get_loc(self, key: int, axis: int):
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\generic.py in xs(self, key, axis, level, drop_level)
3728
3729 if axis == 1:
-> 3730 return self[key]
3731
3732 self._consolidate_inplace()
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\frame.py in __getitem__(self, key)
2973 if self.columns.nlevels > 1:
2974 return self._getitem_multilevel(key)
-> 2975 indexer = self.columns.get_loc(key)
2976 if is_integer(indexer):
2977 indexer = [indexer]
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance)
2890 return self._engine.get_loc(key)
2891 except KeyError:
-> 2892 return self._engine.get_loc(self._maybe_cast_indexer(key))
2893 indexer = self.get_indexer([key], method=method, tolerance=tolerance)
2894 if indexer.ndim > 1 or indexer.size > 1:
pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc()
pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc()
pandas\_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()
pandas\_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()
KeyError: 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/27456/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27456/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27457 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27457/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27457/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27457/events | https://github.com/pandas-dev/pandas/issues/27457 | 469,906,466 | MDU6SXNzdWU0Njk5MDY0NjY= | 27,457 | missing.cpython-35m-x86_64 | {
"avatar_url": "https://avatars.githubusercontent.com/u/7442071?v=4",
"events_url": "https://api.github.com/users/alex067/events{/privacy}",
"followers_url": "https://api.github.com/users/alex067/followers",
"following_url": "https://api.github.com/users/alex067/following{/other_user}",
"gists_url": "https://api.github.com/users/alex067/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alex067",
"id": 7442071,
"login": "alex067",
"node_id": "MDQ6VXNlcjc0NDIwNzE=",
"organizations_url": "https://api.github.com/users/alex067/orgs",
"received_events_url": "https://api.github.com/users/alex067/received_events",
"repos_url": "https://api.github.com/users/alex067/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alex067/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alex067/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alex067"
} | [] | closed | false | null | [] | null | 5 | 2019-07-18T17:47:32Z | 2019-07-23T17:16:33Z | 2019-07-22T17:46:56Z | NONE | null | Every once in a while, one of my scripts are failing and initially I thought it was due to a memory leak somewhere. After reading the error carefully, it looks like it's from a missing dependency:
```
7fecaeb6d000-7fecaeb7f000 r-xp 00000000 08:04 3021138 /home/lib/python3.5/site-packages/pandas/_libs/missing.cpython-35m-x86_64-linux-gnu.so
7fecaeb7f000-7fecaed7f000 ---p 00012000 08:04 3021138 /home/lib/python3.5/site-packages/pandas/_libs/missing.cpython-35m-x86_64-linux-gnu.so
7fecaed7f000-7fecaed81000 rw-p 00012000 08:04 3021138 /home/lib/python3.5/site-packages/pandas/_libs/missing.cpython-35m-x86_64Aborted
```
In the library directory for pandas, in _libs, there is a file titled: missing.cpython-35m-x86_64-linux-gnu.so
I can just guess this is some low level dependency that probably didn't get installed when pandas was initially installed.
I updated pandas to ensure it's on the latest version, I believe 0.24?
At this point should I just uninstall & reinstall pandas? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27457/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27457/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27458 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27458/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27458/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27458/events | https://github.com/pandas-dev/pandas/issues/27458 | 469,935,227 | MDU6SXNzdWU0Njk5MzUyMjc= | 27,458 | Feature Request: Binomial Standard Deviation? | {
"avatar_url": "https://avatars.githubusercontent.com/u/4303236?v=4",
"events_url": "https://api.github.com/users/pmlandwehr/events{/privacy}",
"followers_url": "https://api.github.com/users/pmlandwehr/followers",
"following_url": "https://api.github.com/users/pmlandwehr/following{/other_user}",
"gists_url": "https://api.github.com/users/pmlandwehr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pmlandwehr",
"id": 4303236,
"login": "pmlandwehr",
"node_id": "MDQ6VXNlcjQzMDMyMzY=",
"organizations_url": "https://api.github.com/users/pmlandwehr/orgs",
"received_events_url": "https://api.github.com/users/pmlandwehr/received_events",
"repos_url": "https://api.github.com/users/pmlandwehr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pmlandwehr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pmlandwehr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pmlandwehr"
} | [] | closed | false | null | [] | null | 4 | 2019-07-18T18:56:07Z | 2019-07-19T00:06:51Z | 2019-07-18T23:28:41Z | NONE | null | #### Problem description
We often work with large quantities of simulated data, and it would be convenient if we could get binomial standard deviation with a `.binom_std()` method (or with an optional argument to `.std()`. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27458/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27458/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27459 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27459/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27459/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27459/events | https://github.com/pandas-dev/pandas/pull/27459 | 469,962,150 | MDExOlB1bGxSZXF1ZXN0Mjk5MDY5MjU3 | 27,459 | Fix #27451 (doc + validation) | {
"avatar_url": "https://avatars.githubusercontent.com/u/225259?v=4",
"events_url": "https://api.github.com/users/ddebernardy/events{/privacy}",
"followers_url": "https://api.github.com/users/ddebernardy/followers",
"following_url": "https://api.github.com/users/ddebernardy/following{/other_user}",
"gists_url": "https://api.github.com/users/ddebernardy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ddebernardy",
"id": 225259,
"login": "ddebernardy",
"node_id": "MDQ6VXNlcjIyNTI1OQ==",
"organizations_url": "https://api.github.com/users/ddebernardy/orgs",
"received_events_url": "https://api.github.com/users/ddebernardy/received_events",
"repos_url": "https://api.github.com/users/ddebernardy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ddebernardy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ddebernardy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ddebernardy"
} | [
{
"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": "ffa0ff",
"default": false,
"description": "Incorrect or improved... | closed | false | null | [] | null | 6 | 2019-07-18T19:59:28Z | 2019-09-05T17:50:27Z | 2019-09-05T17:50:27Z | NONE | null | - [X ] closes #27451
- [ X] 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/27459/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27459/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27459.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27459",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/27459.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27459"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27460 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27460/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27460/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27460/events | https://github.com/pandas-dev/pandas/issues/27460 | 470,041,588 | MDU6SXNzdWU0NzAwNDE1ODg= | 27,460 | REF: share code between pd.array and Series constructor | {
"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": "d4c5f9",
"default": false,
"de... | open | false | null | [] | null | 0 | 2019-07-18T23:25:25Z | 2019-07-23T19:38:12Z | null | MEMBER | null | I've noticed a couple of places in the code where we do runtime imports of Series just to do `values = Series(values)._values`. It would be nice to avoid that.
This probably also means moving parts of internals.construction to somewhere like `arrays.array_`. In particular I think this would require moving sanitize_array and _try_cast. Since sanitize_array is imported by other modules, this would be nice to have non-internals anyway.
Finally there are some functions in dtype.cast that might make more sense alongside sanitize_array, e.g. construct_1d_object_array_from_listlike | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27460/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27460/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27461 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27461/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27461/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27461/events | https://github.com/pandas-dev/pandas/pull/27461 | 470,081,705 | MDExOlB1bGxSZXF1ZXN0Mjk5MTQ1ODQ4 | 27,461 | CLN: avoid runtime imports | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 4 | 2019-07-19T00:57:27Z | 2019-07-22T14:08:08Z | 2019-07-22T11:52:32Z | MEMBER | null | Edits to lib.is_scalar are to put slower python-space checks later so they may get short-circuited.
Everything else should be self-explanatory. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27461/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27461/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27461.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27461",
"merged_at": "2019-07-22T11:52:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27461.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27461"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27462 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27462/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27462/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27462/events | https://github.com/pandas-dev/pandas/issues/27462 | 470,089,334 | MDU6SXNzdWU0NzAwODkzMzQ= | 27,462 | ENH: allow EA to register types for is_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": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "6138b5",
"default": false,
"description": "Extendin... | open | false | null | [] | null | 2 | 2019-07-19T01:17:32Z | 2021-07-10T18:32:41Z | null | MEMBER | null | https://github.com/pandas-dev/pandas/pull/27461#discussion_r305168936
> i think we need. way for EA to hook into this for an EA scalar
> eg an IPaddress from cyberpandas could register a scalar i think
Before we move on this, I think we need to clarify in which situations we care about `lib.is_scalar(x)` vs the simpler `np.ndim(x) == 0` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27462/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27462/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27463 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27463/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27463/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27463/events | https://github.com/pandas-dev/pandas/pull/27463 | 470,098,895 | MDExOlB1bGxSZXF1ZXN0Mjk5MTU0NDQ4 | 27,463 | Remove .. versionadded:: 0.18 | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [
{
"color": "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-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 4 | 2019-07-19T01:50:26Z | 2019-07-20T20:26:12Z | 2019-07-20T19:20:06Z | CONTRIBUTOR | null | Removed ``.. versionadded:: 0.18.0`` and related text blocks. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27463/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27463/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27463.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27463",
"merged_at": "2019-07-20T19:20:06Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27463.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27463"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27464 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27464/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27464/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27464/events | https://github.com/pandas-dev/pandas/issues/27464 | 470,118,010 | MDU6SXNzdWU0NzAxMTgwMTA= | 27,464 | Bug in DataFrame.rfloordiv when alignment for different columns and index. | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "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": ... | closed | false | null | [] | {
"closed_at": "2019-08-22T19:23:14Z",
"closed_issues": 145,
"created_at": "2019-06-30T19:32:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-08-21T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/65",
"id": 4452219,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels",
"node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==",
"number": 65,
"open_issues": 0,
"state": "closed",
"title": "0.25.1",
"updated_at": "2019-08-22T19:52:56Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65"
} | 1 | 2019-07-19T03:19:10Z | 2019-08-20T17:45:06Z | 2019-08-20T17:45:06Z | CONTRIBUTOR | null | I think that `.loc[0, 'A']` should be inf.
```python
In [36]: a = pd.DataFrame({"A": [0, 1, 2], 'B': [1.1, None, 1.1]})
In [37]: b = pd.DataFrame({"A": [1.1, 1.2, 1.3]}, index=[0, 2, 3])
In [38]: a.rfloordiv(b, fill_value=1)
Out[38]:
A B
0 NaN 0.0
1 1.0 NaN
2 0.0 0.0
3 1.0 NaN
```
to match
```python
In [49]: a.rfloordiv(1.1, fill_value=1)
Out[49]:
A B
0 inf 1.0
1 1.0 1.0
2 0.0 1.0
```
cc @jbrockmendel | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27464/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27464/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27465 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27465/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27465/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27465/events | https://github.com/pandas-dev/pandas/pull/27465 | 470,128,671 | MDExOlB1bGxSZXF1ZXN0Mjk5MTc3MTY0 | 27,465 | CLN: remove unused parts of skiplist (most of it) | {
"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-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 17 | 2019-07-19T04:13:50Z | 2019-09-11T15:36:20Z | 2019-09-11T02:02:07Z | MEMBER | null | As a follow-up I'll take a look at either removing the now-empty .pyx file or trying to port the c file to pyx | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27465/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27465/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27465.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27465",
"merged_at": "2019-09-11T02:02:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27465.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27465"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27466 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27466/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27466/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27466/events | https://github.com/pandas-dev/pandas/pull/27466 | 470,131,999 | MDExOlB1bGxSZXF1ZXN0Mjk5MTc5ODU5 | 27,466 | CLN: remove unused row_bool_subset | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": ... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 6 | 2019-07-19T04:29:29Z | 2020-04-05T17:36:18Z | 2019-07-20T19:29:22Z | MEMBER | null | @jreback can you confirm my hunch that the `result.ndim == 2` block in groupby.ops was for Panel?
Tracing back the blame, row_bool_subset was introduced [here](https://github.com/pandas-dev/pandas/commit/b15ae85e1f647821755d35bedd6143ad1e9c3678) in 2012 to close #152 and it started being called only for result.ndim == 2 [here](https://github.com/pandas-dev/pandas/commit/9bfdc3c037e926143e708463d76fcdae3fb709f2) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27466/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27466/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27466.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27466",
"merged_at": "2019-07-20T19:29:22Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27466.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27466"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27467 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27467/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27467/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27467/events | https://github.com/pandas-dev/pandas/pull/27467 | 470,132,462 | MDExOlB1bGxSZXF1ZXN0Mjk5MTgwMjQz | 27,467 | Groupby transform cleanups | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"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": "AD7FA8",
"default": false,
"description": null,
"id": ... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 6 | 2019-07-19T04:31:40Z | 2019-07-25T23:45:09Z | 2019-07-25T22:09:45Z | NONE | null | - [x] whatsnew
Related #27389 (several issues there)
closes #27486 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27467/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27467/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27467.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27467",
"merged_at": "2019-07-25T22:09:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27467.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27467"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27468 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27468/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27468/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27468/events | https://github.com/pandas-dev/pandas/issues/27468 | 470,150,449 | MDU6SXNzdWU0NzAxNTA0NDk= | 27,468 | BUG: Groupby.transform('ngroup') fails | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"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,
... | open | false | null | [] | null | 0 | 2019-07-19T05:53:17Z | 2019-07-22T21:13:33Z | null | NONE | null | Adding tests for #27467 surfaced some bugs:
```python
from pandas import *
df = DataFrame(dict(a=[0, 0, 0, 1, 1, 1], b=range(6)))
g = df.groupby(np.repeat([0,1], 3))
# ok
print(g.ngroup())
#fails
g.transform('ngroup')
AttributeError: ("'Series' object has no attribute 'ngroup'", 'occurred at index a')
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27468/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27468/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27469 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27469/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27469/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27469/events | https://github.com/pandas-dev/pandas/issues/27469 | 470,150,886 | MDU6SXNzdWU0NzAxNTA4ODY= | 27,469 | BUG: Groupby.transform('size') fails for multicolumn frame | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"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,
... | open | false | null | [] | null | 0 | 2019-07-19T05:54:53Z | 2019-07-23T15:02:19Z | null | NONE | null | Adding tests for #27467 surfaced some bugs:
```python
from pandas import *
df = DataFrame(dict(a=[0, 0, 0, 1, 1, 1], b=range(6)))
g = df.groupby(np.repeat([0,1], 3))
# ok
print(g.size())
#fails
g.transform('size')
TypeError: Transform function invalid for data types
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27469/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27469/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27470 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27470/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27470/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27470/events | https://github.com/pandas-dev/pandas/issues/27470 | 470,151,786 | MDU6SXNzdWU0NzAxNTE3ODY= | 27,470 | BUG: Groupby.quantile segfaults for quantile > 1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"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": "36ede0",
"default": false,
"description": "Non-Recoverable... | closed | false | null | [] | {
"closed_at": "2019-08-22T19:23:14Z",
"closed_issues": 145,
"created_at": "2019-06-30T19:32:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-08-21T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/65",
"id": 4452219,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels",
"node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==",
"number": 65,
"open_issues": 0,
"state": "closed",
"title": "0.25.1",
"updated_at": "2019-08-22T19:52:56Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65"
} | 2 | 2019-07-19T05:58:13Z | 2019-08-12T17:56:47Z | 2019-08-12T17:56:47Z | NONE | null | Adding tests for #27467 surfaced some bugs:
```python
from pandas import *
df = DataFrame(dict(a=[0, 0, 0, 1, 1, 1], b=range(6)))
g = df.groupby(np.repeat([0,1], 3))
# ok
g.quantile(50)
<segfault>
```
quantile accepts floats in `[0,1]` or arrays of floats. It appears not to validate the range though. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27470/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27470/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27471 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27471/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27471/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27471/events | https://github.com/pandas-dev/pandas/issues/27471 | 470,154,272 | MDU6SXNzdWU0NzAxNTQyNzI= | 27,471 | missing pandas.core.config in v0.25 | {
"avatar_url": "https://avatars.githubusercontent.com/u/6035284?v=4",
"events_url": "https://api.github.com/users/Borda/events{/privacy}",
"followers_url": "https://api.github.com/users/Borda/followers",
"following_url": "https://api.github.com/users/Borda/following{/other_user}",
"gists_url": "https://api.github.com/users/Borda/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Borda",
"id": 6035284,
"login": "Borda",
"node_id": "MDQ6VXNlcjYwMzUyODQ=",
"organizations_url": "https://api.github.com/users/Borda/orgs",
"received_events_url": "https://api.github.com/users/Borda/received_events",
"repos_url": "https://api.github.com/users/Borda/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Borda/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Borda/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Borda"
} | [] | closed | false | null | [] | null | 10 | 2019-07-19T06:07:29Z | 2019-07-22T16:11:46Z | 2019-07-19T06:25:41Z | NONE | null | ### Problem description
I need a print table with several columns by default for automatic test purposes while the default number of columns changed from version v0.23. I was using a simple check
```python
if 'display.max_columns' in pandas.core.config._registered_options:
pandas.set_option('display.max_columns', 20)
```
but this was broken from v0.25 since the config is missing
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'pandas.core' has no attribute 'config'
```
I have checked the [release notes](https://pandas-docs.github.io/pandas-docs-travis/whatsnew/v0.25.0.html) but I dd not find any info about moving this property...
### Code Sample
```python
.core.config._registered_options
```
### Expected Output
Extending the columns to be shown
### Output of ``pd.show_versions()``
```
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.8.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-54-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 0.25.0
numpy : 1.15.4
pytz : 2018.7
dateutil : 2.7.5
pip : 19.1.1
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27471/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27471/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27472 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27472/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27472/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27472/events | https://github.com/pandas-dev/pandas/issues/27472 | 470,155,214 | MDU6SXNzdWU0NzAxNTUyMTQ= | 27,472 | BUG: Groupby.transform('cumcount') fails | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"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": "0e8a16",
"default": true,
"description": null,
"id": 7... | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/57047354?v=4",
"events_url": "https://api.github.com/users/saehuihwang/events{/privacy}",
"followers_url": "https://api.github.com/users/saehuihwang/followers",
"following_url": "https://api.github.com/users/saehuihwang/following{/other_user}",
"gists_url": "https://api.github.com/users/saehuihwang/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/saehuihwang",
"id": 57047354,
"login": "saehuihwang",
"node_id": "MDQ6VXNlcjU3MDQ3MzU0",
"organizations_url": "https://api.github.com/users/saehuihwang/orgs",
"received_events_url": "https://api.github.com/users/saehuihwang/received_events",
"repos_url": "https://api.github.com/users/saehuihwang/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/saehuihwang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/saehuihwang/subscriptions",
"type": "User",
"url": "https://api.github.com/users/saehuihwang"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/57047354?v=4",
"events_url": "https://api.github.com/users/saehuihwang/events{/privacy}",
"followers_url": "https://api.github.com/users/saehuihwang/followers",
"following_url": "https://api.github.com/users/saehuihwang/following{/other_user}"... | {
"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"
} | 6 | 2019-07-19T06:10:48Z | 2021-07-22T18:05:00Z | 2021-07-22T18:05:00Z | NONE | null | Adding tests for #27467 surfaced some bugs:
```python
from pandas import *
df = DataFrame(dict(a=[0, 0, 0, 1, 1, 1], b=range(6)))
g = df.groupby(np.repeat([0,1], 3))
# ok
g.cumcount()
# fails
g.transform('cumcount')
AttributeError: ("'Series' object has no attribute 'cumcount'", 'occurred at index a')
```
`cumcount` is a cythonized 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/27472/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27472/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27473 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27473/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27473/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27473/events | https://github.com/pandas-dev/pandas/pull/27473 | 470,163,656 | MDExOlB1bGxSZXF1ZXN0Mjk5MjA0ODU4 | 27,473 | BUG: quantile segfaults on invalid quantile values | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"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": "36ede0",
"default": false,
"description": "Non-Recoverable... | closed | false | null | [] | {
"closed_at": "2019-08-22T19:23:14Z",
"closed_issues": 145,
"created_at": "2019-06-30T19:32:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-08-21T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/65",
"id": 4452219,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels",
"node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==",
"number": 65,
"open_issues": 0,
"state": "closed",
"title": "0.25.1",
"updated_at": "2019-08-22T19:52:56Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65"
} | 9 | 2019-07-19T06:39:46Z | 2019-08-07T16:29:08Z | 2019-07-31T14:18:01Z | NONE | null | - [x] closes #27470
- [ ] waiting for #27584 to be resolved (move `check_percentiles` out of `NDFrame`)
- [ ] waiting for #27526 to be resolved (#20405 cythonized `Groupby.quantile` with functionality regression)
- [ ] 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/27473/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27473/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27473.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27473",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/27473.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27473"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27474 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27474/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27474/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27474/events | https://github.com/pandas-dev/pandas/pull/27474 | 470,220,790 | MDExOlB1bGxSZXF1ZXN0Mjk5MjQ5Mzk4 | 27,474 | DOC: Fix typos in docstrings for functions referring. | {
"avatar_url": "https://avatars.githubusercontent.com/u/2830900?v=4",
"events_url": "https://api.github.com/users/bingyao/events{/privacy}",
"followers_url": "https://api.github.com/users/bingyao/followers",
"following_url": "https://api.github.com/users/bingyao/following{/other_user}",
"gists_url": "https://api.github.com/users/bingyao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bingyao",
"id": 2830900,
"login": "bingyao",
"node_id": "MDQ6VXNlcjI4MzA5MDA=",
"organizations_url": "https://api.github.com/users/bingyao/orgs",
"received_events_url": "https://api.github.com/users/bingyao/received_events",
"repos_url": "https://api.github.com/users/bingyao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bingyao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bingyao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bingyao"
} | [
{
"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-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 0 | 2019-07-19T09:09:50Z | 2019-07-19T11:55:20Z | 2019-07-19T11:55:20Z | CONTRIBUTOR | null | Fixed two typos in docstrings for functions referring. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27474/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27474/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27474.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27474",
"merged_at": "2019-07-19T11:55:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27474.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27474"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27475 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27475/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27475/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27475/events | https://github.com/pandas-dev/pandas/pull/27475 | 470,224,662 | MDExOlB1bGxSZXF1ZXN0Mjk5MjUyNTE5 | 27,475 | Make a fastpath conditional on `data is None` | {
"avatar_url": "https://avatars.githubusercontent.com/u/223833?v=4",
"events_url": "https://api.github.com/users/vanschelven/events{/privacy}",
"followers_url": "https://api.github.com/users/vanschelven/followers",
"following_url": "https://api.github.com/users/vanschelven/following{/other_user}",
"gists_url": "https://api.github.com/users/vanschelven/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vanschelven",
"id": 223833,
"login": "vanschelven",
"node_id": "MDQ6VXNlcjIyMzgzMw==",
"organizations_url": "https://api.github.com/users/vanschelven/orgs",
"received_events_url": "https://api.github.com/users/vanschelven/received_events",
"repos_url": "https://api.github.com/users/vanschelven/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vanschelven/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vanschelven/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vanschelven"
} | [] | closed | false | null | [] | null | 0 | 2019-07-19T09:18:25Z | 2019-07-19T09:52:13Z | 2019-07-19T09:52:13Z | NONE | null | As per the pre-existing comment in the code: this is a fastpath for the
case `data is None`. Better include an if-statement to make sure this
condition actually holds.
When this if-statement is not present, failure occurs at a later point
in the code when an empty index is used, because that later code expects data
to be array-like, but we convert to a scalar here.
====
NOTE: this is a "shoot from the hip" (completely untested) PR as it stands.
I hope it can contribute towards a solution nonetheless, but it needs at least
tests
- [x] closes #26469
- [ ] 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/27475/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27475/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27475.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27475",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/27475.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27475"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27476 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27476/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27476/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27476/events | https://github.com/pandas-dev/pandas/issues/27476 | 470,325,544 | MDU6SXNzdWU0NzAzMjU1NDQ= | 27,476 | BUG: Missing documentation for read_spss() | {
"avatar_url": "https://avatars.githubusercontent.com/u/264640?v=4",
"events_url": "https://api.github.com/users/isantolin/events{/privacy}",
"followers_url": "https://api.github.com/users/isantolin/followers",
"following_url": "https://api.github.com/users/isantolin/following{/other_user}",
"gists_url": "https://api.github.com/users/isantolin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/isantolin",
"id": 264640,
"login": "isantolin",
"node_id": "MDQ6VXNlcjI2NDY0MA==",
"organizations_url": "https://api.github.com/users/isantolin/orgs",
"received_events_url": "https://api.github.com/users/isantolin/received_events",
"repos_url": "https://api.github.com/users/isantolin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/isantolin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/isantolin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/isantolin"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 7171206... | 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"
} | 4 | 2019-07-19T13:30:37Z | 2019-08-12T21:16:39Z | 2019-07-26T20:58:46Z | CONTRIBUTOR | null | #### Problem description
New added feature read_spss() #26537 doesn´t still have any kind of documentation about it http://pandas-docs.github.io/pandas-docs-travis/user_guide/io.html | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27476/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27476/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27477 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27477/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27477/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27477/events | https://github.com/pandas-dev/pandas/issues/27477 | 470,372,484 | MDU6SXNzdWU0NzAzNzI0ODQ= | 27,477 | Run a User Survey | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [] | closed | false | null | [] | null | 14 | 2019-07-19T15:03:53Z | 2019-08-08T19:28:51Z | 2019-08-08T16:14:32Z | CONTRIBUTOR | null | It'd be nice to run a survey to better understand what our users want from the library.
We can ask things like
* What version of pandas are you using?
* Is pandas stable enough?
* What APIs are you using (e.g. which `read_` methods)?
* What features would you like (additional readers, etc.)?
I plan to put together a form sometime in the next couple weeks. If there are questions you'd like to see included, please post them here.
See https://github.com/dask/dask/issues/4748 and https://t.co/OGrIjTLC2G for inspiration. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27477/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27477/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27478 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27478/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27478/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27478/events | https://github.com/pandas-dev/pandas/pull/27478 | 470,375,673 | MDExOlB1bGxSZXF1ZXN0Mjk5Mzc1MTUx | 27,478 | Add a Roadmap | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "DDDDDD",
"default": false,
"description": "Administrative tasks related to the pandas project",
"id": 32933285,
"name": "Admin",
"node_id": "MDU6TGFiZWwzMjkzMzI4NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Admin"
}
] | closed | false | null | [] | {
"closed_at": "2019-08-22T19:23:14Z",
"closed_issues": 145,
"created_at": "2019-06-30T19:32:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-08-21T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/65",
"id": 4452219,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels",
"node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==",
"number": 65,
"open_issues": 0,
"state": "closed",
"title": "0.25.1",
"updated_at": "2019-08-22T19:52:56Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65"
} | 33 | 2019-07-19T15:10:58Z | 2019-08-01T20:50:46Z | 2019-08-01T18:04:12Z | CONTRIBUTOR | null | This PR adds a roadmap document. This is useful when pursing funding; we can point to a list of known items that we'd like to do if we had the person time (and funding) to tackle them.
Let's have two discussions
1. Do we want this? Roadmaps tend to go stale. How can we keep this up to date?
2. If so, what items should go on it? I've mostly picked from https://docs.google.com/document/d/151ct8jcZWwh7XStptjbLsda6h2b3C0IuiH_hfZnUA58/edit#heading=h.qm48l6dargmd plus a couple pet peeves of mine.
cc @pandas-dev/pandas-core | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27478/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27478/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27478.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27478",
"merged_at": "2019-08-01T18:04:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27478.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27478"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27479 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27479/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27479/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27479/events | https://github.com/pandas-dev/pandas/issues/27479 | 470,404,495 | MDU6SXNzdWU0NzA0MDQ0OTU= | 27,479 | deregister_matplotlib_converters() in 0.25 incorrectly removes Matplotlib converters | {
"avatar_url": "https://avatars.githubusercontent.com/u/6197628?v=4",
"events_url": "https://api.github.com/users/dstansby/events{/privacy}",
"followers_url": "https://api.github.com/users/dstansby/followers",
"following_url": "https://api.github.com/users/dstansby/following{/other_user}",
"gists_url": "https://api.github.com/users/dstansby/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dstansby",
"id": 6197628,
"login": "dstansby",
"node_id": "MDQ6VXNlcjYxOTc2Mjg=",
"organizations_url": "https://api.github.com/users/dstansby/orgs",
"received_events_url": "https://api.github.com/users/dstansby/received_events",
"repos_url": "https://api.github.com/users/dstansby/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dstansby/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dstansby/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dstansby"
} | [
{
"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": "e11d21",
"default": false,
"description": "Fu... | closed | false | null | [] | {
"closed_at": "2019-08-22T19:23:14Z",
"closed_issues": 145,
"created_at": "2019-06-30T19:32:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-08-21T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/65",
"id": 4452219,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels",
"node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==",
"number": 65,
"open_issues": 0,
"state": "closed",
"title": "0.25.1",
"updated_at": "2019-08-22T19:52:56Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65"
} | 9 | 2019-07-19T16:01:42Z | 2019-08-20T14:26:50Z | 2019-08-20T14:26:49Z | CONTRIBUTOR | null | Consider
```python
import matplotlib.units as munits
import pandas as pd
pd.plotting.deregister_matplotlib_converters()
print(pd.__version__)
for key in munits.registry:
print(key, '\t', munits.registry[key])
```
`deregister_matplotlib_converters()` should only remove `pandas` converters, and not any other converters in the MPL units registry, but in pandas 0.25 it removes some of the Matplotlib converters.
#### Problem description
For pandas 0.24 this prints:
```
0.24.2
<class 'decimal.Decimal'> <matplotlib.units.DecimalConverter object at 0x1135515f8>
<class 'datetime.datetime'> <matplotlib.dates.DateConverter object at 0x11ed79cc0>
<class 'datetime.date'> <matplotlib.dates.DateConverter object at 0x11ed79c88>
<class 'numpy.datetime64'> <matplotlib.dates.DateConverter object at 0x11ed79c50>
```
But for pandas 0.25 it gives
```
0.25.0
<class 'decimal.Decimal'> <matplotlib.units.DecimalConverter object at 0x1133cd588>
```
This means `pandas.plotting.deregister_matplotlib_converters` is removing some of the built in matplotlib converters from the units registry when it shouldn't be; this is causing some of our tests to break upstream (xref https://github.com/matplotlib/matplotlib/issues/14859)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27479/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27479/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27480 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27480/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27480/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27480/events | https://github.com/pandas-dev/pandas/pull/27480 | 470,411,751 | MDExOlB1bGxSZXF1ZXN0Mjk5Mzk3MjIy | 27,480 | Use Matplotlib built-in converters for python date(time)s | {
"avatar_url": "https://avatars.githubusercontent.com/u/6197628?v=4",
"events_url": "https://api.github.com/users/dstansby/events{/privacy}",
"followers_url": "https://api.github.com/users/dstansby/followers",
"following_url": "https://api.github.com/users/dstansby/following{/other_user}",
"gists_url": "https://api.github.com/users/dstansby/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dstansby",
"id": 6197628,
"login": "dstansby",
"node_id": "MDQ6VXNlcjYxOTc2Mjg=",
"organizations_url": "https://api.github.com/users/dstansby/orgs",
"received_events_url": "https://api.github.com/users/dstansby/received_events",
"repos_url": "https://api.github.com/users/dstansby/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dstansby/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dstansby/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dstansby"
} | [] | closed | false | null | [] | null | 2 | 2019-07-19T16:12:55Z | 2019-07-19T17:39:01Z | 2019-07-19T17:39:01Z | CONTRIBUTOR | null | In Matplotlib we have and maintain unit converters for the python build in datetime objects and `np.datetime64`, so there is no need to provide another converter. This would fix https://github.com/pandas-dev/pandas/issues/27479 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27480/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27480/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27480.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27480",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/27480.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27480"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27481 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27481/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27481/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27481/events | https://github.com/pandas-dev/pandas/pull/27481 | 470,467,527 | MDExOlB1bGxSZXF1ZXN0Mjk5NDMwMjc5 | 27,481 | Correctly re-instate Matplotlib converters | {
"avatar_url": "https://avatars.githubusercontent.com/u/6197628?v=4",
"events_url": "https://api.github.com/users/dstansby/events{/privacy}",
"followers_url": "https://api.github.com/users/dstansby/followers",
"following_url": "https://api.github.com/users/dstansby/following{/other_user}",
"gists_url": "https://api.github.com/users/dstansby/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dstansby",
"id": 6197628,
"login": "dstansby",
"node_id": "MDQ6VXNlcjYxOTc2Mjg=",
"organizations_url": "https://api.github.com/users/dstansby/orgs",
"received_events_url": "https://api.github.com/users/dstansby/received_events",
"repos_url": "https://api.github.com/users/dstansby/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dstansby/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dstansby/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dstansby"
} | [
{
"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": "2019-08-22T19:23:14Z",
"closed_issues": 145,
"created_at": "2019-06-30T19:32:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-08-21T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/65",
"id": 4452219,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels",
"node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==",
"number": 65,
"open_issues": 0,
"state": "closed",
"title": "0.25.1",
"updated_at": "2019-08-22T19:52:56Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65"
} | 10 | 2019-07-19T18:06:00Z | 2019-08-21T16:34:46Z | 2019-08-20T14:26:50Z | CONTRIBUTOR | null | Fixes https://github.com/pandas-dev/pandas/issues/27479. Converters should only be cached to be re-instated if they are original, and not pandas converters.
I'm struggling to write a test for this; I think it requires a clean state with no pandas imports, so one can check what was in the units registry before pandas was imported. I think this means a new test file with no pandas imports at the top, but maybe someone has a better idea? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27481/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27481/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27481.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27481",
"merged_at": "2019-08-20T14:26:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27481.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27481"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27482 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27482/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27482/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27482/events | https://github.com/pandas-dev/pandas/issues/27482 | 470,486,169 | MDU6SXNzdWU0NzA0ODYxNjk= | 27,482 | pd.isnull() raises AttributeError on Pandas type objects | {
"avatar_url": "https://avatars.githubusercontent.com/u/10007066?v=4",
"events_url": "https://api.github.com/users/bribass/events{/privacy}",
"followers_url": "https://api.github.com/users/bribass/followers",
"following_url": "https://api.github.com/users/bribass/following{/other_user}",
"gists_url": "https://api.github.com/users/bribass/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bribass",
"id": 10007066,
"login": "bribass",
"node_id": "MDQ6VXNlcjEwMDA3MDY2",
"organizations_url": "https://api.github.com/users/bribass/orgs",
"received_events_url": "https://api.github.com/users/bribass/received_events",
"repos_url": "https://api.github.com/users/bribass/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bribass/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bribass/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bribass"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,... | closed | false | null | [] | {
"closed_at": "2019-08-22T19:23:14Z",
"closed_issues": 145,
"created_at": "2019-06-30T19:32:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-08-21T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/65",
"id": 4452219,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels",
"node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==",
"number": 65,
"open_issues": 0,
"state": "closed",
"title": "0.25.1",
"updated_at": "2019-08-22T19:52:56Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65"
} | 1 | 2019-07-19T18:48:00Z | 2019-08-20T14:00:09Z | 2019-08-20T14:00:09Z | NONE | null | ```python
import pandas as pd
x = pd.Series([1,2,3,4])
xt = type(x)
pd.isnull(xt)
## Traceback (most recent call last):
## File "<input>", line 1, in <module>
## File "/home/bbassett/venv37/lib/python3.7/site-packages/pandas/core/dtypes/missing.py", line 122, in isna
## return _isna(obj)
## File "/home/bbassett/venv37/lib/python3.7/site-packages/pandas/core/dtypes/missing.py", line 145, in _isna_new
## return _isna_ndarraylike(obj)
## File "/home/bbassett/venv37/lib/python3.7/site-packages/pandas/core/dtypes/missing.py", line 225, in _isna_ndarraylike
## dtype = values.dtype
## AttributeError: 'property' object has no attribute 'dtype'
y = pd.DataFrame({"col": [1,2,3,4]})
yt = type(y)
pd.isnull(yt)
## Traceback (most recent call last):
## File "<input>", line 1, in <module>
## File "/home/bbassett/venv37/lib/python3.7/site-packages/pandas/core/dtypes/missing.py", line 122, in isna
## return _isna(obj)
## File "/home/bbassett/venv37/lib/python3.7/site-packages/pandas/core/dtypes/missing.py", line 147, in _isna_new
## return obj._constructor(obj._data.isna(func=isna))
## AttributeError: 'NoneType' object has no attribute 'isna'
```
#### Problem description
I'm using a list comprehension and `pd.isnull()` to remove empty items from a list (`[x for x in l if not pd.isnull(x)]`). When one of my users passes a pandas `type` object to this logic, it gums up the works by raising an AttributeError. This logic works as expected with `type` objects from Python's builtins:
```python
import pandas as pd
z = "This is a test."
zt = type(z)
pd.isnull(zt)
## False
```
#### Expected Output
Both calls to `pd.isnull()` above should return `False`. The type objects are not null/`None`/`NaN`/missing.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.3.final.0
python-bits : 64
OS : Linux
OS-release : 4.19.0-5-amd64
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 0.25.0
numpy : 1.16.4
pytz : 2019.1
dateutil : 2.8.0
pip : 19.1.1
setuptools : 41.0.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27482/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27482/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27483 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27483/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27483/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27483/events | https://github.com/pandas-dev/pandas/issues/27483 | 470,512,961 | MDU6SXNzdWU0NzA1MTI5NjE= | 27,483 | Add a "Best Practices" document | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | open | false | null | [] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 4 | 2019-07-19T19:53:15Z | 2019-12-31T12:34:12Z | null | CONTRIBUTOR | null | I'd like to have a document that describes how we think people should write pandas code.
This introduces a bit of friction when documenting something, since you'll need to decide "does it go in best practices or the user guide?" But I think the idea of a "best practices" document with opinionated, short examples and prose, linking back to the user guide and API docs, is valuable.
I've started a notebook at https://mybinder.org/v2/gh/TomAugspurger/pandas-best-practices/master?filepath=Best%20Practices.ipynb
Are there any sections you would add / remove?
Would you structure it differently?
(tangentially, I'd like to explore how we can incorporate binder into our documentation). | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27483/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27483/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27484 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27484/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27484/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27484/events | https://github.com/pandas-dev/pandas/issues/27484 | 470,545,359 | MDU6SXNzdWU0NzA1NDUzNTk= | 27,484 | IndexError in repr of series objects containing complex numbers with negative imaginary parts | {
"avatar_url": "https://avatars.githubusercontent.com/u/28623?v=4",
"events_url": "https://api.github.com/users/DRMacIver/events{/privacy}",
"followers_url": "https://api.github.com/users/DRMacIver/followers",
"following_url": "https://api.github.com/users/DRMacIver/following{/other_user}",
"gists_url": "https://api.github.com/users/DRMacIver/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DRMacIver",
"id": 28623,
"login": "DRMacIver",
"node_id": "MDQ6VXNlcjI4NjIz",
"organizations_url": "https://api.github.com/users/DRMacIver/orgs",
"received_events_url": "https://api.github.com/users/DRMacIver/received_events",
"repos_url": "https://api.github.com/users/DRMacIver/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DRMacIver/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DRMacIver/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DRMacIver"
} | [
{
"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": "00980... | closed | false | null | [] | {
"closed_at": "2019-08-22T19:23:14Z",
"closed_issues": 145,
"created_at": "2019-06-30T19:32:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-08-21T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/65",
"id": 4452219,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels",
"node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==",
"number": 65,
"open_issues": 0,
"state": "closed",
"title": "0.25.1",
"updated_at": "2019-08-22T19:52:56Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65"
} | 1 | 2019-07-19T20:55:42Z | 2019-07-25T15:58:18Z | 2019-07-25T15:58:18Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
from pandas import Series
print(Series([-1j]))
```
#### Problem description
This raises the following error:
```
Traceback (most recent call last):
File "foo.py", line 3, in <module>
print(Series([-1j]))
File "/home/david/.pyenv/versions/3.7.4/lib/python3.7/site-packages/pandas/core/series.py", line 1611, in __repr__
length=show_dimensions,
File "/home/david/.pyenv/versions/3.7.4/lib/python3.7/site-packages/pandas/core/series.py", line 1677, in to_string
result = formatter.to_string()
File "/home/david/.pyenv/versions/3.7.4/lib/python3.7/site-packages/pandas/io/formats/format.py", line 312, in to_string
fmt_values = self._get_formatted_values()
File "/home/david/.pyenv/versions/3.7.4/lib/python3.7/site-packages/pandas/io/formats/format.py", line 299, in _get_formatted_values
values_to_format, None, float_format=self.float_format, na_rep=self.na_rep
File "/home/david/.pyenv/versions/3.7.4/lib/python3.7/site-packages/pandas/io/formats/format.py", line 1032, in format_array
return fmt_obj.get_result()
File "/home/david/.pyenv/versions/3.7.4/lib/python3.7/site-packages/pandas/io/formats/format.py", line 1063, in get_result
fmt_values = self._format_strings()
File "/home/david/.pyenv/versions/3.7.4/lib/python3.7/site-packages/pandas/io/formats/format.py", line 1288, in _format_strings
return list(self.get_result_as_array())
File "/home/david/.pyenv/versions/3.7.4/lib/python3.7/site-packages/pandas/io/formats/format.py", line 1252, in get_result_as_array
formatted_values = format_values_with(float_format)
File "/home/david/.pyenv/versions/3.7.4/lib/python3.7/site-packages/pandas/io/formats/format.py", line 1234, in format_values_with
return _trim_zeros_complex(values, na_rep)
File "/home/david/.pyenv/versions/3.7.4/lib/python3.7/site-packages/pandas/io/formats/format.py", line 1597, in _trim_zeros_complex
return ["".join(separate_and_trim(x, na_rep)) for x in str_complexes]
File "/home/david/.pyenv/versions/3.7.4/lib/python3.7/site-packages/pandas/io/formats/format.py", line 1597, in <listcomp>
return ["".join(separate_and_trim(x, na_rep)) for x in str_complexes]
File "/home/david/.pyenv/versions/3.7.4/lib/python3.7/site-packages/pandas/io/formats/format.py", line 1594, in separate_and_trim
+ ["j"]
IndexError: list index out of range
```
#### Expected Output
This should print something like the following:
```
0 0.0-1.0j
dtype: complex128
```
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Linux
OS-release : 4.4.0-17134-Microsoft
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 0.25.0
numpy : 1.16.4
pytz : 2019.1
dateutil : 2.8.0
pip : 19.0.3
setuptools : 40.8.0
Cython : None
pytest : 5.0.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.6.1
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27484/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27484/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27485 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27485/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27485/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27485/events | https://github.com/pandas-dev/pandas/issues/27485 | 470,596,348 | MDU6SXNzdWU0NzA1OTYzNDg= | 27,485 | ASV Benchmark for read_excel | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"color": "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": "0e8a16",
"default": true,
"des... | 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 | 2019-07-19T22:40:38Z | 2019-09-05T17:10:54Z | 2019-09-05T17:10:54Z | MEMBER | null | Right now we don't benchmark performance of read_excel across the various engines (xlrd, openpyxl and odfpy) so would gladly accept contributions to improve benchmark coverage on those | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27485/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27485/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27486 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27486/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27486/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27486/events | https://github.com/pandas-dev/pandas/issues/27486 | 470,609,302 | MDU6SXNzdWU0NzA2MDkzMDI= | 27,486 | BUG: Groupby.transform(name) should only accept valid names | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"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": "AD7FA8",
"default": false,
"description": null,
"id": ... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 3 | 2019-07-19T23:56:22Z | 2019-07-25T22:09:45Z | 2019-07-25T22:09:45Z | NONE | null | https://github.com/pandas-dev/pandas/pull/27467#discussion_r305439508
Examples:
- `g.transform('invalid_name')`
- `g.transform('agg')`, attribute exists but isn't appropriate agg/transformation.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27486/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27486/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27487 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27487/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27487/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27487/events | https://github.com/pandas-dev/pandas/issues/27487 | 470,628,937 | MDU6SXNzdWU0NzA2Mjg5Mzc= | 27,487 | REF: Define ExtensionDtype subclasses in consistent locations | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
}
] | closed | false | null | [] | null | 2 | 2019-07-20T03:19:22Z | 2019-11-05T22:10:58Z | 2019-11-05T22:10:58Z | MEMBER | null | `CategoricalDtype`, `DatetimeTZDtype`, `PeriodDtype`, and `IntervalDtype` are defined in `core.dtypes.dtypes`. `_IntegerDtype`, `PandasDtype`, and `SparseDtype` are defined in `core.arrays.*`. We should be consistent about where these are defined.
My hobby horse right now is the dependency structure. `core.dtypes` is _almost_ independent of the rest of `core`, and the code would be appreciably easier to reason about if that separation were strict. To make that work we would need to either
a) move SparseDType etc into `core.dtypes.dtypes` and deal with the handful of imports that the Dtype classes require
b) move CategoricalDType etc over to the `core.array` modules and find a way to avoid the need for these DType classes in `dtypes.common` functions.
a) sounds significantly easier to me. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27487/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27487/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27488 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27488/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27488/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27488/events | https://github.com/pandas-dev/pandas/pull/27488 | 470,630,211 | MDExOlB1bGxSZXF1ZXN0Mjk5NTMzNzI3 | 27,488 | API: Add entrypoint for plotting | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "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": "2019-08-22T19:23:14Z",
"closed_issues": 145,
"created_at": "2019-06-30T19:32:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-08-21T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/65",
"id": 4452219,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels",
"node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==",
"number": 65,
"open_issues": 0,
"state": "closed",
"title": "0.25.1",
"updated_at": "2019-08-22T19:52:56Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65"
} | 15 | 2019-07-20T03:36:53Z | 2019-07-25T20:21:50Z | 2019-07-25T17:18:13Z | CONTRIBUTOR | null | Libraries, including pandas, register backends via entrypoints.
xref #26747
cc @datapythonista @jakevdp @philippjfr | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27488/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27488/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27488.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27488",
"merged_at": "2019-07-25T17:18:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27488.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27488"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27489 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27489/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27489/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27489/events | https://github.com/pandas-dev/pandas/pull/27489 | 470,656,446 | MDExOlB1bGxSZXF1ZXN0Mjk5NTUxNTY0 | 27,489 | PERF: speed up IntervalIndex._intersection_non_unique by ~50x | {
"avatar_url": "https://avatars.githubusercontent.com/u/440095?v=4",
"events_url": "https://api.github.com/users/qwhelan/events{/privacy}",
"followers_url": "https://api.github.com/users/qwhelan/followers",
"following_url": "https://api.github.com/users/qwhelan/following{/other_user}",
"gists_url": "https://api.github.com/users/qwhelan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/qwhelan",
"id": 440095,
"login": "qwhelan",
"node_id": "MDQ6VXNlcjQ0MDA5NQ==",
"organizations_url": "https://api.github.com/users/qwhelan/orgs",
"received_events_url": "https://api.github.com/users/qwhelan/received_events",
"repos_url": "https://api.github.com/users/qwhelan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/qwhelan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/qwhelan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/qwhelan"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 2 | 2019-07-20T09:39:05Z | 2019-07-20T17:00:50Z | 2019-07-20T16:41:02Z | CONTRIBUTOR | null | I've been backfilling `asv` data and noticed the following regression in `IntervalIndexMethod.time_intersection_both_duplicate` (see [here](https://qwhelan.github.io/pandas/#index_object.IntervalIndexMethod.time_intersection_both_duplicate?machine=T470-W10&os=Linux%204.4.0-17134-Microsoft&ram=20822880&p-param1=100000&commits=83eb2428-cdc07fde)):

This regression was missed as the benchmark was added in #26711, which was after introduction in #26225.
This PR both simplifies the `IntervalIndex._intersection_non_unique` logic (now equivalent to `MultiIndex._intersection_non_unique`) and provides a `~50x` speedup:
```
before after ratio
[9bab81e0] [2848036e]
<interval_non_unique_intersection~1> <interval_non_unique_intersection>
- 12.6±0.1ms 725±30μs 0.06 index_object.IntervalIndexMethod.time_intersection_both_duplicate(1000)
- 4.96±0s 96.7±6ms 0.02 index_object.IntervalIndexMethod.time_intersection_both_duplicate(100000)
```
The new numbers are about `10x` faster than the old baseline.
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27489/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27489/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27489.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27489",
"merged_at": "2019-07-20T16:41:02Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27489.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27489"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27490 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27490/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27490/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27490/events | https://github.com/pandas-dev/pandas/issues/27490 | 470,683,892 | MDU6SXNzdWU0NzA2ODM4OTI= | 27,490 | Timestamp unit is not respected | {
"avatar_url": "https://avatars.githubusercontent.com/u/11860098?v=4",
"events_url": "https://api.github.com/users/david-cortes/events{/privacy}",
"followers_url": "https://api.github.com/users/david-cortes/followers",
"following_url": "https://api.github.com/users/david-cortes/following{/other_user}",
"gists_url": "https://api.github.com/users/david-cortes/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/david-cortes",
"id": 11860098,
"login": "david-cortes",
"node_id": "MDQ6VXNlcjExODYwMDk4",
"organizations_url": "https://api.github.com/users/david-cortes/orgs",
"received_events_url": "https://api.github.com/users/david-cortes/received_events",
"repos_url": "https://api.github.com/users/david-cortes/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/david-cortes/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/david-cortes/subscriptions",
"type": "User",
"url": "https://api.github.com/users/david-cortes"
} | [
{
"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,
... | open | false | null | [] | null | 2 | 2019-07-20T15:05:50Z | 2021-03-09T20:46:01Z | null | CONTRIBUTOR | null | Timestamps always get returned in nanoseconds regardless of the unit I specify:
```python
import numpy as np, pandas as pd
np.datetime64("2018-01-01").astype("datetime64[s]").astype(int)
>>> 1514764800
pd.Series(np.datetime64("2018-01-01")).astype("datetime64[s]")
```
```
0 2018-01-01
dtype: datetime64[ns]
```
```python
pd.Series(np.datetime64("2018-01-01")).astype("datetime64[s]").astype(int)
```
```
0 1514764800000000000
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/27490/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27490/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27491 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27491/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27491/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27491/events | https://github.com/pandas-dev/pandas/pull/27491 | 470,694,163 | MDExOlB1bGxSZXF1ZXN0Mjk5NTc3MTc0 | 27,491 | DOC: setup 1.0.0 docs | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 0 | 2019-07-20T16:57:06Z | 2019-07-20T20:07:00Z | 2019-07-20T20:07:00Z | CONTRIBUTOR | 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/27491/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27491/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27491.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27491",
"merged_at": "2019-07-20T20:07:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27491.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27491"
} | |
https://api.github.com/repos/pandas-dev/pandas/issues/27492 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27492/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27492/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27492/events | https://github.com/pandas-dev/pandas/issues/27492 | 470,694,636 | MDU6SXNzdWU0NzA2OTQ2MzY= | 27,492 | RLS: 1.0.0 | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "006b75",
"default": false,
"description": null,
"id": 131473665,
"name": "Release",
"node_id": "MDU6TGFiZWwxMzE0NzM2NjU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Release"
}
] | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 26 | 2019-07-20T17:02:30Z | 2020-01-30T12:34:23Z | 2020-01-30T12:17:42Z | CONTRIBUTOR | null | discussion for 1.0.
We are focusing all deprecation removals and we should try to release by September 2019. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27492/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27492/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27493 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27493/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27493/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27493/events | https://github.com/pandas-dev/pandas/issues/27493 | 470,700,988 | MDU6SXNzdWU0NzA3MDA5ODg= | 27,493 | BUG: .loc behavior for multiindex containing IntervalIndex level | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"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 s... | closed | false | null | [] | null | 0 | 2019-07-20T18:15:31Z | 2019-08-02T15:35:09Z | 2019-08-02T15:35:09Z | NONE | null | <del>Supersedes #27456</del>
#27456 has been updated. closing as duplicate. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27493/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27493/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27494 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27494/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27494/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27494/events | https://github.com/pandas-dev/pandas/pull/27494 | 470,702,928 | MDExOlB1bGxSZXF1ZXN0Mjk5NTgzMDgz | 27,494 | ENH: treat list of namedtuples like list of dict in DataFrame() | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"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 | [] | null | 2 | 2019-07-20T18:40:11Z | 2019-07-31T14:25:53Z | 2019-07-31T14:25:47Z | NONE | null | Following discussion in https://github.com/pandas-dev/pandas/pull/27309 about unifying "list of records" behavior across the board.
- [X] closes #27329
- [ ] tests added / passed
- [X] whatsnew entry
- [ ] double check performance impact and update docs accordingly if needed. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27494/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27494/timeline | null | 1 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27494.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27494",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/27494.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27494"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27495 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27495/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27495/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27495/events | https://github.com/pandas-dev/pandas/pull/27495 | 470,725,625 | MDExOlB1bGxSZXF1ZXN0Mjk5NTk4Mzkx | 27,495 | PERF: speed up MultiIndex.is_monotonic by 50x | {
"avatar_url": "https://avatars.githubusercontent.com/u/440095?v=4",
"events_url": "https://api.github.com/users/qwhelan/events{/privacy}",
"followers_url": "https://api.github.com/users/qwhelan/followers",
"following_url": "https://api.github.com/users/qwhelan/following{/other_user}",
"gists_url": "https://api.github.com/users/qwhelan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/qwhelan",
"id": 440095,
"login": "qwhelan",
"node_id": "MDQ6VXNlcjQ0MDA5NQ==",
"organizations_url": "https://api.github.com/users/qwhelan/orgs",
"received_events_url": "https://api.github.com/users/qwhelan/received_events",
"repos_url": "https://api.github.com/users/qwhelan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/qwhelan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/qwhelan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/qwhelan"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "207de5",
"default"... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 1 | 2019-07-20T23:54:04Z | 2019-07-23T22:04:28Z | 2019-07-23T22:04:24Z | CONTRIBUTOR | null | The current logic for `MultiIndex.is_monotonic` relies on `np.lexsort()` on `MultiIndex._values`. While the result is cached, this is slow as it triggers the creation of `._values`, needs to perform an `O(n log(n))` sort, as well as populate the hashmap of a transient `Index`.
This PR significantly speeds up this check by directly operating on `.codes` when `.levels` are individually sorted. This means we can leverage `libalgos.is_lexsorted()` which is `O(n)` (but has the downside of needing `int64` when `MultiIndex` compacts levels).
```
before after ratio
[5bd57f90] [3320dded]
- 31.9±0.9ms 627±50μs 0.02 index_cached_properties.IndexCache.time_is_monotonic_decreasing('MultiIndex')
- 29.6±0.7ms 528±80μs 0.02 index_cached_properties.IndexCache.time_is_monotonic('MultiIndex')
- 29.9±1ms 524±90μs 0.02 index_cached_properties.IndexCache.time_is_monotonic_increasing('MultiIndex')
```
- [ ] closes #27099
- [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/27495/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27495/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27495.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27495",
"merged_at": "2019-07-23T22:04:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27495.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27495"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27496 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27496/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27496/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27496/events | https://github.com/pandas-dev/pandas/issues/27496 | 470,727,506 | MDU6SXNzdWU0NzA3Mjc1MDY= | 27,496 | Lost timezone information after groupby transform | {
"avatar_url": "https://avatars.githubusercontent.com/u/50842911?v=4",
"events_url": "https://api.github.com/users/billy-doyle/events{/privacy}",
"followers_url": "https://api.github.com/users/billy-doyle/followers",
"following_url": "https://api.github.com/users/billy-doyle/following{/other_user}",
"gists_url": "https://api.github.com/users/billy-doyle/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/billy-doyle",
"id": 50842911,
"login": "billy-doyle",
"node_id": "MDQ6VXNlcjUwODQyOTEx",
"organizations_url": "https://api.github.com/users/billy-doyle/orgs",
"received_events_url": "https://api.github.com/users/billy-doyle/received_events",
"repos_url": "https://api.github.com/users/billy-doyle/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/billy-doyle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/billy-doyle/subscriptions",
"type": "User",
"url": "https://api.github.com/users/billy-doyle"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data d... | closed | false | null | [] | null | 2 | 2019-07-21T00:18:14Z | 2019-07-22T15:27:40Z | 2019-07-22T15:27:40Z | NONE | null | #### Code Sample, a copy-pastable example if possible
Similar issue as #24198 in pandas 0.25.0
```python
import pandas as pd
df = pd.DataFrame({'time': [pd.Timestamp('2010-07-15 03:14:45'),
pd.Timestamp('2010-11-19 18:47:06')],
'timezone': ['Etc/GMT+4', 'US/Eastern']})
df['time_tz'] = (df.groupby(['timezone'])['time']
.transform(lambda x: x.dt.tz_localize(x.name, ambiguous='NaT')))
df['time_tz_desired'] = (df.groupby(['timezone'])['time']
.apply(lambda x: x.dt.tz_localize(x.name, ambiguous='NaT')))
print(df)
```
#### Problem description
The timezone in the transform should be preserved but it is not.
For the apply the datetime returned is an object type
`df.info()` shows
```
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 2 entries, 0 to 1
Data columns (total 4 columns):
time 2 non-null datetime64[ns]
timezone 2 non-null object
time_tz 2 non-null datetime64[ns]
time_tz_desired 2 non-null object
dtypes: datetime64[ns](2), object(2)
memory usage: 192.0+ bytes
```
#### Expected Output
Should preserve timezone
```python
df.groupby(['timezone'])['time'].transform(lambda x: x.dt.tz_localize(x.name, ambiguous='NaT'))
```
And should return datetime
```python
df.groupby(['timezone'])['time'].apply(lambda x: x.dt.tz_localize(x.name, ambiguous='NaT'))
```
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.3.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 0.25.0
numpy : 1.16.3
pytz : 2019.1
dateutil : 2.8.0
pip : 19.1.1
setuptools : 40.8.0
Cython : 0.29.10
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.3.4
html5lib : 1.0.1
pymysql : 0.9.3
psycopg2 : 2.8.2 (dt dec pq3 ext lo64)
jinja2 : 2.10.1
IPython : 7.5.0
pandas_datareader: None
bs4 : 4.7.1
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.3.4
matplotlib : 3.0.3
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.3.0
sqlalchemy : 1.3.3
tables : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27496/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27496/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27497 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27497/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27497/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27497/events | https://github.com/pandas-dev/pandas/issues/27497 | 470,730,443 | MDU6SXNzdWU0NzA3MzA0NDM= | 27,497 | Nanosecond resolution in time indexing | {
"avatar_url": "https://avatars.githubusercontent.com/u/4721335?v=4",
"events_url": "https://api.github.com/users/p5a0u9l/events{/privacy}",
"followers_url": "https://api.github.com/users/p5a0u9l/followers",
"following_url": "https://api.github.com/users/p5a0u9l/following{/other_user}",
"gists_url": "https://api.github.com/users/p5a0u9l/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/p5a0u9l",
"id": 4721335,
"login": "p5a0u9l",
"node_id": "MDQ6VXNlcjQ3MjEzMzU=",
"organizations_url": "https://api.github.com/users/p5a0u9l/orgs",
"received_events_url": "https://api.github.com/users/p5a0u9l/received_events",
"repos_url": "https://api.github.com/users/p5a0u9l/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/p5a0u9l/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/p5a0u9l/subscriptions",
"type": "User",
"url": "https://api.github.com/users/p5a0u9l"
} | [] | closed | false | null | [] | null | 6 | 2019-07-21T01:13:35Z | 2019-11-02T21:56:03Z | 2019-11-02T21:56:03Z | NONE | null | I have a dataframe with `DatetimeIndex`. I note the following difference of behavior in `0.24.2` against `0.25.0`.
For equivalent Timestamp indices, `0.25.0` returns an empty Series, while `0.24.2` returns one value.
```python
print(start)
Timestamp('2019-06-24 16:56:11.200999936')
print(stop)
Timestamp('2019-06-24 16:56:11.200999936')
# pandas 0.24.2
df2.loc[start:stop, ["time"]]
time
time
2019-06-24 16:56:11.201 NaT
# pandas 0.25
df2.loc[start:stop, "time"]
Series([], Name: time, dtype: datetime64[ns])
```
I expect this is actually a good thing as before, indicated above, time indexes didn't respect upper-bound exclusivity and now they do.
### Question 1
I looked through release notes for `0.25.0` and didn't find anything mentioning this particular behavior change. Is this upper-bound exclusivity expected for DatetimeIndex frame slicing?
### Question 2
Sometimes I want to ensure a slice is upper-bound inclusive. To adapt, I'm attempting to add a nanosecond to the `stop` variable above.
```python
ipdb> df2.loc[start:stop + pd.Timedelta(nanoseconds=1), ["time"]]
Empty DataFrame
Columns: [time]
Index: []
```
But this returns an empty dataframe. It doesn't produce the expected behavior until I set `nanoseconds=70`.
Is this actually expected? What is the mechanism for producing a distinct Timestamp slice? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27497/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27497/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27498 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27498/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27498/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27498/events | https://github.com/pandas-dev/pandas/issues/27498 | 470,733,345 | MDU6SXNzdWU0NzA3MzMzNDU= | 27,498 | Investigate whether re-encoding MultiIndex levels is beneficial | {
"avatar_url": "https://avatars.githubusercontent.com/u/440095?v=4",
"events_url": "https://api.github.com/users/qwhelan/events{/privacy}",
"followers_url": "https://api.github.com/users/qwhelan/followers",
"following_url": "https://api.github.com/users/qwhelan/following{/other_user}",
"gists_url": "https://api.github.com/users/qwhelan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/qwhelan",
"id": 440095,
"login": "qwhelan",
"node_id": "MDQ6VXNlcjQ0MDA5NQ==",
"organizations_url": "https://api.github.com/users/qwhelan/orgs",
"received_events_url": "https://api.github.com/users/qwhelan/received_events",
"repos_url": "https://api.github.com/users/qwhelan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/qwhelan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/qwhelan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/qwhelan"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "207de5",
"default"... | closed | false | null | [] | {
"closed_at": "2020-10-31T15:14:04Z",
"closed_issues": 94,
"created_at": "2020-09-26T01:36:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-10-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/78",
"id": 5919858,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels",
"node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==",
"number": 78,
"open_issues": 0,
"state": "closed",
"title": "1.1.4",
"updated_at": "2020-11-25T22:43:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78"
} | 0 | 2019-07-21T02:09:24Z | 2020-10-27T12:51:13Z | 2020-10-27T12:51:13Z | CONTRIBUTOR | null | Follow up for #27495, where we handle the common case of `MultiIndex` being created from helper functions that ensure the levels are sorted. In order to handle the case of `MultiIndex(codes=..., labels=...)` and labels being individually unsorted, we likely need to re-encode that level. If that is performant, it would allow deleting a non-performant base case in `MultiIndex.is_monotonic` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27498/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27498/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27499 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27499/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27499/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27499/events | https://github.com/pandas-dev/pandas/pull/27499 | 470,740,065 | MDExOlB1bGxSZXF1ZXN0Mjk5NjA4MzI4 | 27,499 | REF: de-privatize dtypes.concat functions | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "207de5... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 1 | 2019-07-21T04:09:01Z | 2019-07-22T21:30:50Z | 2019-07-22T21:14:54Z | MEMBER | null | Preliminary to possibly finding new homes for some of these functions that don't really fit in core.dtypes (discussed briefly at the sprint). xref #25273 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27499/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27499/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27499.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27499",
"merged_at": "2019-07-22T21:14:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27499.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27499"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27500 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27500/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27500/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27500/events | https://github.com/pandas-dev/pandas/issues/27500 | 470,759,731 | MDU6SXNzdWU0NzA3NTk3MzE= | 27,500 | crosstabs doesn't work with margin and normalize together | {
"avatar_url": "https://avatars.githubusercontent.com/u/4449948?v=4",
"events_url": "https://api.github.com/users/min2bro/events{/privacy}",
"followers_url": "https://api.github.com/users/min2bro/followers",
"following_url": "https://api.github.com/users/min2bro/following{/other_user}",
"gists_url": "https://api.github.com/users/min2bro/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/min2bro",
"id": 4449948,
"login": "min2bro",
"node_id": "MDQ6VXNlcjQ0NDk5NDg=",
"organizations_url": "https://api.github.com/users/min2bro/orgs",
"received_events_url": "https://api.github.com/users/min2bro/received_events",
"repos_url": "https://api.github.com/users/min2bro/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/min2bro/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/min2bro/subscriptions",
"type": "User",
"url": "https://api.github.com/users/min2bro"
} | [
{
"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, Stac... | closed | false | null | [] | {
"closed_at": "2019-08-22T19:23:14Z",
"closed_issues": 145,
"created_at": "2019-06-30T19:32:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-08-21T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/65",
"id": 4452219,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels",
"node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==",
"number": 65,
"open_issues": 0,
"state": "closed",
"title": "0.25.1",
"updated_at": "2019-08-22T19:52:56Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65"
} | 2 | 2019-07-21T09:05:28Z | 2019-08-06T15:45:31Z | 2019-08-06T15:45:31Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
df = pd.DataFrame({"A": ["foo", "foo", "foo", "foo", "foo",
"bar", "bar", "bar", "bar"],
"B": ["one", "one", "one", "two", "two",
"one", "one", "two", "two"],
"C": ["small", "large", "large", "small",
"small", "large", "small", "small",
"large"],
"D": [1, 2, 2, 3, 3, 4, 5, 6, 7],
"E": [2, 4, 5, 5, 6, 6, 8, 9, 9]})
pd.crosstab([df.A,df.B],df.C,margins=True,margins_name='Sub-Total',normalize=0)
```
#### Problem description
pandas.Crosstab:
As per the Documentation, For parameter normalize If margins is True, will also normalize margin values. However when I give normalize as True and margins as True with margin_names as a string then it throws following exception:
KeyError: "['Sub-Total'] not found in axis"
where Sub-Total is the margins_name String.
#### Expected Output
Normalize value of the Margin rows and columns
#### Output of ``pd.show_versions()``
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.3.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.24.2
pytest: 3.2.1
pip: 18.0
setuptools: 39.1.0
Cython: 0.26.1
numpy: 1.15.4
scipy: 1.0.0
pyarrow: 0.8.0
xarray: 0.10.7
IPython: 6.1.0
sphinx: 1.6.3
patsy: 0.4.1
dateutil: 2.6.1
pytz: 2017.2
blosc: None
bottleneck: 1.2.1
tables: 3.4.2
numexpr: 2.6.2
feather: None
matplotlib: 2.1.0
openpyxl: 2.4.8
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 1.0.2
lxml.etree: 4.1.0
bs4: 4.6.0
html5lib: 0.9999999
sqlalchemy: 1.1.13
pymysql: None
psycopg2: 2.7.5 (dt dec pq3 ext lo64)
jinja2: 2.9.6
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
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/27500/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27500/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27501 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27501/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27501/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27501/events | https://github.com/pandas-dev/pandas/issues/27501 | 470,763,287 | MDU6SXNzdWU0NzA3NjMyODc= | 27,501 | pd.to_csv gives '__init__() got an unexpected keyword argument 'tupleize_cols'` | {
"avatar_url": "https://avatars.githubusercontent.com/u/29777378?v=4",
"events_url": "https://api.github.com/users/vciulei/events{/privacy}",
"followers_url": "https://api.github.com/users/vciulei/followers",
"following_url": "https://api.github.com/users/vciulei/following{/other_user}",
"gists_url": "https://api.github.com/users/vciulei/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vciulei",
"id": 29777378,
"login": "vciulei",
"node_id": "MDQ6VXNlcjI5Nzc3Mzc4",
"organizations_url": "https://api.github.com/users/vciulei/orgs",
"received_events_url": "https://api.github.com/users/vciulei/received_events",
"repos_url": "https://api.github.com/users/vciulei/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vciulei/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vciulei/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vciulei"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] | closed | false | null | [] | null | 4 | 2019-07-21T09:50:24Z | 2019-08-21T15:53:02Z | 2019-07-21T16:15:02Z | NONE | null | Hi, I have an issue which might be related to this:
I'm running the following basic code:
<code>`dfMain.to_csv('./January_filtered_International_WE.csv')` </code>
which used to run normally until yesterday. Yesterday morning I upgraded to `pandas 0.25.0` while running code and now I cannot write a 500k rows (single-level indexed) dataframe to a csv. I can mention that I left Jupyter Notebook running in order to do some processing, so this morning when I opened it I had the dataFrame already, processed.
Versions (using Windows 10)
Jupyter Notebook : 5.7.8 (Edit: 6.0.0 - upgraded with Administrator permissions - errors still persist)
Python : 3.6.7
Pandas : 0.25.0
I would like to save my DataFrame in a fast and efficient manner as I will load it several times in the future. I do not want to close the notebook as this will delete the dataFrame.
I tried:
- downgrading to `Pandas 0.24.2` (previous version used) but still getting the `__init__() got an unexpected keyword argument 'tupleize_cols'`
- use `pd.to_pickle` but got a `memoryError`
- use `pd.to_hdf` but got a `memoryError`
- using msgbox instead but apparently it does not support DataFrames (got an error)
- upgrade Jupyter notebook, but got the following error:
`ERROR: ipython 5.8.0 has requirement prompt-toolkit<2.0.0,>=1.0.4, but
you'll have prompt-toolkit 2.0.9 which is incompatible`
- so naturally I did pip install prompt-toolkit 1.0.16 but then got this message:
_`ERROR: jupyter-console 6.0.0 has requirement prompt-toolkit<2.1.0,>=2.0.0, but you'll have prompt-toolkit 1.0.16 which is incompatible.`_
Edit:
With Admin privileges it managed to upgrade Jupyter.
As an alternative I went into PyCharm and took a random `DataFrame.to_csv` and it worked. This makes me think the issue is with Jupyter Notebook.
P.S.: Any help on how to save the DataFrame (~12 GB) is also appreciated! | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27501/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27501/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27502 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27502/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27502/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27502/events | https://github.com/pandas-dev/pandas/issues/27502 | 470,781,354 | MDU6SXNzdWU0NzA3ODEzNTQ= | 27,502 | MultiIndex with Period level is really slow | {
"avatar_url": "https://avatars.githubusercontent.com/u/6732831?v=4",
"events_url": "https://api.github.com/users/akdor1154/events{/privacy}",
"followers_url": "https://api.github.com/users/akdor1154/followers",
"following_url": "https://api.github.com/users/akdor1154/following{/other_user}",
"gists_url": "https://api.github.com/users/akdor1154/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/akdor1154",
"id": 6732831,
"login": "akdor1154",
"node_id": "MDQ6VXNlcjY3MzI4MzE=",
"organizations_url": "https://api.github.com/users/akdor1154/orgs",
"received_events_url": "https://api.github.com/users/akdor1154/received_events",
"repos_url": "https://api.github.com/users/akdor1154/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/akdor1154/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akdor1154/subscriptions",
"type": "User",
"url": "https://api.github.com/users/akdor1154"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "eb6420",
"default"... | open | false | null | [] | null | 2 | 2019-07-21T13:23:41Z | 2019-07-22T04:43:52Z | null | NONE | null | A MultiIndex with a Period level is multiple levels of magnitude slower to join than a same-sized single Period index, or the same sized MultiIndex with Dates instead of Periods.
In this benchmark, I construct a the multiindexes and single index referred to above by making a date/period range, and adding it to a single-value dummy column to make a trivial multiindex.
Benchmark code:
```python
import pandas as pd
from datetime import date
import numpy as np
from timeit import timeit
from numpy.random import random_integers, random_sample
periods = pd.period_range(date(2019,1,1), date(2020,1,1), freq='min')
dates = pd .date_range(date(2019,1,1), date(2020,1,1), freq='min')
people = [1]
singlePeriodIndex = periods
multiPeriodIndex = pd.MultiIndex.from_product([periods, people])
multiDateIndex = pd.MultiIndex.from_product([dates, people])
print(f"singlePeriodIndex size: {len(singlePeriodIndex)}")
print(f"multiPeriodIndex size: {len(multiPeriodIndex)}")
print(f"mnultiDateIndex size: {len(multiDateIndex)}")
indexSize = len(singlePeriodIndex)
Counts = random_integers(0, 100, size=indexSize)
TotalSales = random_sample(size=indexSize) * 1000
def join_two_frames(index: pd.Index):
data = pd.DataFrame(data={'Counts': Counts}, index=index)
data2 = pd.DataFrame(data={'TotalSales': TotalSales}, index=index)
return data.join(data2)
print(f" Time for 3 × single period index: {timeit(lambda: join_two_frames(singlePeriodIndex), number=3)}s")
print(f" Time for 3 × multi period index: {timeit(lambda: join_two_frames(multiPeriodIndex), number=3)}s")
print(f" Time for 3 × multi date index: {timeit(lambda: join_two_frames(multiDateIndex), number=3)}s")
```
```
# results from my PC:
singlePeriodIndex size: 525601
multiPeriodIndex size: 525601
mnultiDateIndex size: 525601
Time for 3 × single period index: 0.07404399762210523s
Time for 3 × multi period index: 203.1650731925208s
Time for 3 × multi date index: 0.20330959270341964s
```
This is on my Windows 10 PC, but I observed similar on an Ubuntu PC running the same versions of libraries as below (my env is set up by pipenv).
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.4.final.0
python-bits : 32
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 69 Stepping 1, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en_GB.UTF-8
LOCALE : None.None
pandas : 0.25.0
numpy : 1.16.4
pytz : 2019.1
dateutil : 2.8.0
pip : 19.1.1
setuptools : 41.0.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10.1
IPython : 7.6.1
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.3.0
sqlalchemy : None
tables : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
```
</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/27502/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27502/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27503 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27503/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27503/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27503/events | https://github.com/pandas-dev/pandas/pull/27503 | 470,789,116 | MDExOlB1bGxSZXF1ZXN0Mjk5NjQxMzcw | 27,503 | TST: reenable some old quantile tests | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"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-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 2 | 2019-07-21T14:42:02Z | 2019-08-02T14:44:29Z | 2019-07-31T14:07:09Z | NONE | null | These disabled tests now pass on 3.7. Let's see what CI says. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27503/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27503/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27503.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27503",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/27503.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27503"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27504 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27504/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27504/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27504/events | https://github.com/pandas-dev/pandas/pull/27504 | 470,795,862 | MDExOlB1bGxSZXF1ZXN0Mjk5NjQ1OTk4 | 27,504 | ENH: Add Series.set_index | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
] | closed | false | null | [] | null | 4 | 2019-07-21T15:47:56Z | 2019-08-02T14:44:05Z | 2019-07-31T14:16:13Z | NONE | null | - [X] closes #27058, #21684
- [X] whatsnew entry
- [x] append and list of levels (like `DataFrame.set_index` has)
- [ ] tests added / passed
Help users method-chain all the things. This is modeled closely on the original support for Arrays added in 2011 by Wes Mckinney in
553bacc7abe341991e4d043a5c17521902c7f127 `ENH: can pass external arrays in lieu of column names to DataFrame.set_index`
This is also how `DataFrame.set_index` behaves (though poorly documented), modulo support for column keys which don't apply here.
related discussion #24046, and end of https://github.com/pandas-dev/pandas/issues/14829#issuecomment-404884912, https://github.com/pandas-dev/pandas/issues/12392 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27504/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27504/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27504.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27504",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/27504.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27504"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27505 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27505/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27505/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27505/events | https://github.com/pandas-dev/pandas/pull/27505 | 470,796,856 | MDExOlB1bGxSZXF1ZXN0Mjk5NjQ2NjUw | 27,505 | Update issue template | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [] | closed | false | null | [] | null | 3 | 2019-07-21T15:58:52Z | 2019-08-02T14:43:34Z | 2019-07-21T17:08:57Z | NONE | 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/27505/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27505/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27505.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27505",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/27505.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27505"
} | |
https://api.github.com/repos/pandas-dev/pandas/issues/27506 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27506/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27506/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27506/events | https://github.com/pandas-dev/pandas/issues/27506 | 470,800,423 | MDU6SXNzdWU0NzA4MDA0MjM= | 27,506 | ensure_int_or_float Surprising Behavior with Int64 / ExtensionArrays | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"color": "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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2019-07-21T16:38:49Z | 2021-04-19T13:51:57Z | 2021-04-19T13:51:57Z | MEMBER | null | Unearthed as part of #27424
```python
>>> import pandas as pd
>>> from pandas.core.dtypes.common import ensure_int_or_float
>>> ensure_int_or_float(pd.Series(range(3), dtype='Int64'))
0 0
1 1
2 2
dtype: int64
# Directly against PandasArray now
>>> ensure_int_or_float(pd.Series(range(3), dtype='Int64').array)
array([0., 1., 2.]) # returns float
```
When the underlying array gets passed to ensure_int_or_float they don't return integer as expected. The issue here is due to the fact that the `astype` signature doesn't have `casting` as a parameter like other types going through `ensure_int_or_float` do | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27506/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27506/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27507 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27507/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27507/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27507/events | https://github.com/pandas-dev/pandas/pull/27507 | 470,809,388 | MDExOlB1bGxSZXF1ZXN0Mjk5NjU1MTU3 | 27,507 | remove last references to v0.18 in docs and code | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [
{
"color": "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-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 1 | 2019-07-21T18:18:53Z | 2019-07-22T12:08:28Z | 2019-07-22T12:07:10Z | CONTRIBUTOR | null | - [x] xref #27463
Somehow all the changes didn't get added to #27463, so here's a follow-up.
I've also removed a reference to 0.17 in style.ipynb which also makes the styler api non-provisional. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27507/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27507/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27507.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27507",
"merged_at": "2019-07-22T12:07:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27507.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27507"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27508 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27508/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27508/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27508/events | https://github.com/pandas-dev/pandas/pull/27508 | 470,811,698 | MDExOlB1bGxSZXF1ZXN0Mjk5NjU2NDYz | 27,508 | remove references to v0.19 in docs and code | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [
{
"color": "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-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 1 | 2019-07-21T18:41:29Z | 2019-07-23T09:11:06Z | 2019-07-22T12:08:40Z | CONTRIBUTOR | null | - [x] xref #27507
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27508/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27508/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27508.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27508",
"merged_at": "2019-07-22T12:08:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27508.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27508"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27509 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27509/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27509/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27509/events | https://github.com/pandas-dev/pandas/issues/27509 | 470,812,918 | MDU6SXNzdWU0NzA4MTI5MTg= | 27,509 | Add 'nice' date-time x-axis labels for non-regular time series plots | {
"avatar_url": "https://avatars.githubusercontent.com/u/296686?v=4",
"events_url": "https://api.github.com/users/robintw/events{/privacy}",
"followers_url": "https://api.github.com/users/robintw/followers",
"following_url": "https://api.github.com/users/robintw/following{/other_user}",
"gists_url": "https://api.github.com/users/robintw/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/robintw",
"id": 296686,
"login": "robintw",
"node_id": "MDQ6VXNlcjI5NjY4Ng==",
"organizations_url": "https://api.github.com/users/robintw/orgs",
"received_events_url": "https://api.github.com/users/robintw/received_events",
"repos_url": "https://api.github.com/users/robintw/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/robintw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/robintw/subscriptions",
"type": "User",
"url": "https://api.github.com/users/robintw"
} | [
{
"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": "8AE234",
"default": false,
"description": null,
... | open | false | null | [] | null | 1 | 2019-07-21T18:55:32Z | 2021-07-10T18:39:22Z | null | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
import numpy as np
df1 = pd.DataFrame({'a':np.arange(5)},
index=pd.DatetimeIndex(['2019-07-01 12:00:00',
'2019-07-01 17:00:00',
'2019-07-02 03:00:00',
'2019-07-02 16:00:00',
'2019-07-04 13:00:00']))
# First plot - not nice x-axis labels
df1.plot()
df2 = df1.resample('1H').ffill()
# Second plot - lovely x-axis labels
df2.plot()
```
#### Problem description
The first plot created by the code above is:

The x-axis labels here aren't formatted as nicely as they could be.
However, when the data is resampled to a regular frequency and plotted, you get the plot below:

This has lovely x-axis label formatting, with multiple levels, and is very clear.
I've had a look at the code, and it seems that it is using a major formatter of `pd.plotting._converter.TimeSeries_DateFormatter`, but this seems to require data with a `freq` (ie. regularly spaced time series).
Is there any way to add this lovely formatting for non-regular time series data? Either as a default, or as something that can be done manually by the user.
#### Expected Output
The ideal expected output is the same x-axis labels for both plots.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.1.final.0
python-bits: 64
OS: Darwin
OS-release: 16.7.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8
LOCALE: en_GB.UTF-8
pandas: 0.24.2
pytest: 4.3.1
pip: 19.0.3
setuptools: 40.8.0
Cython: None
numpy: 1.16.2
scipy: None
pyarrow: None
xarray: None
IPython: 7.1.1
sphinx: None
patsy: None
dateutil: 2.8.0
pytz: 2018.9
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.3
openpyxl: None
xlrd: 1.2.0
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</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/27509/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27509/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/27510 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27510/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27510/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27510/events | https://github.com/pandas-dev/pandas/pull/27510 | 470,824,285 | MDExOlB1bGxSZXF1ZXN0Mjk5NjY0ODgx | 27,510 | BUG: Retain tz transformation in groupby.transform | {
"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,
... | closed | false | null | [] | {
"closed_at": "2019-08-22T19:23:14Z",
"closed_issues": 145,
"created_at": "2019-06-30T19:32:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-08-21T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/65",
"id": 4452219,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels",
"node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==",
"number": 65,
"open_issues": 0,
"state": "closed",
"title": "0.25.1",
"updated_at": "2019-08-22T19:52:56Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65"
} | 0 | 2019-07-21T21:00:49Z | 2019-07-22T16:47:29Z | 2019-07-22T15:27:40Z | MEMBER | null | - [x] closes #27496
- [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/27510/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27510/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27510.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27510",
"merged_at": "2019-07-22T15:27:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27510.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27510"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27511 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27511/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27511/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27511/events | https://github.com/pandas-dev/pandas/pull/27511 | 470,848,009 | MDExOlB1bGxSZXF1ZXN0Mjk5NjgyMDAw | 27,511 | BUG: display.precision of negative complex numbers | {
"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": "ededed",
"default": false,
"description": "__repr__ of pandas objec... | closed | false | null | [] | {
"closed_at": "2019-08-22T19:23:14Z",
"closed_issues": 145,
"created_at": "2019-06-30T19:32:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-08-21T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/65",
"id": 4452219,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels",
"node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==",
"number": 65,
"open_issues": 0,
"state": "closed",
"title": "0.25.1",
"updated_at": "2019-08-22T19:52:56Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65"
} | 5 | 2019-07-22T00:58:27Z | 2019-07-25T20:06:59Z | 2019-07-25T15:58:18Z | MEMBER | null | - [x] closes #27484
- [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/27511/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27511/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27511.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27511",
"merged_at": "2019-07-25T15:58:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27511.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27511"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/27512 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/27512/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/27512/comments | https://api.github.com/repos/pandas-dev/pandas/issues/27512/events | https://github.com/pandas-dev/pandas/pull/27512 | 470,848,532 | MDExOlB1bGxSZXF1ZXN0Mjk5NjgyMzkx | 27,512 | more type hints for io/formats/format.py | {
"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": "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": "ea91a... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 3 | 2019-07-22T01:02:12Z | 2019-07-24T23:33:10Z | 2019-07-24T11:58:30Z | MEMBER | null | another pass to follow-on from #27418 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/27512/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/27512/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/27512.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/27512",
"merged_at": "2019-07-24T11:58:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/27512.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27512"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.