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/31916
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31916/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31916/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31916/events
|
https://github.com/pandas-dev/pandas/pull/31916
| 563,842,291
|
MDExOlB1bGxSZXF1ZXN0Mzc0MTc5Mzcy
| 31,916
|
EHN: fix unsigned int type problem of the result diff()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/42794484?v=4",
"events_url": "https://api.github.com/users/zzapzzap/events{/privacy}",
"followers_url": "https://api.github.com/users/zzapzzap/followers",
"following_url": "https://api.github.com/users/zzapzzap/following{/other_user}",
"gists_url": "https://api.github.com/users/zzapzzap/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zzapzzap",
"id": 42794484,
"login": "zzapzzap",
"node_id": "MDQ6VXNlcjQyNzk0NDg0",
"organizations_url": "https://api.github.com/users/zzapzzap/orgs",
"received_events_url": "https://api.github.com/users/zzapzzap/received_events",
"repos_url": "https://api.github.com/users/zzapzzap/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zzapzzap/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zzapzzap/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zzapzzap"
}
|
[] |
closed
| false
| null |
[] | null | 2
| 2020-02-12T08:45:37Z
| 2020-02-19T07:05:17Z
| 2020-02-13T01:58:27Z
|
NONE
| null |
An unexpected output type(float64) occurs to diff() when using uint
type. So fix it by restoring original dtype after storing it
Fixes #28909
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
What do you think about this problem with the code? @jreback
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31916/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31916/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31916.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31916",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31916.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31916"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31917
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31917/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31917/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31917/events
|
https://github.com/pandas-dev/pandas/issues/31917
| 563,895,631
|
MDU6SXNzdWU1NjM4OTU2MzE=
| 31,917
|
`to_json` of Series with period dtype results in AttributeError
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/194147?v=4",
"events_url": "https://api.github.com/users/gerrymanoim/events{/privacy}",
"followers_url": "https://api.github.com/users/gerrymanoim/followers",
"following_url": "https://api.github.com/users/gerrymanoim/following{/other_user}",
"gists_url": "https://api.github.com/users/gerrymanoim/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gerrymanoim",
"id": 194147,
"login": "gerrymanoim",
"node_id": "MDQ6VXNlcjE5NDE0Nw==",
"organizations_url": "https://api.github.com/users/gerrymanoim/orgs",
"received_events_url": "https://api.github.com/users/gerrymanoim/received_events",
"repos_url": "https://api.github.com/users/gerrymanoim/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gerrymanoim/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gerrymanoim/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gerrymanoim"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
},
{
"color": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
}
] |
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"
}
| 1
| 2020-02-12T10:20:28Z
| 2020-07-10T13:57:42Z
| null |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
test = pd.Series(pd.period_range('1/1/2011', freq='B', periods=3))
test.to_json(None, orient='table')
```
Leads to:
```
~/miniconda3/envs/qgrid/lib/python3.7/site-packages/pandas/core/generic.py in to_json(self, path_or_buf, orient, date_format, double_precision, force_ascii, date_unit, default_handler, lines, compression, index, indent)
2362 compression=compression,
2363 index=index,
-> 2364 indent=indent,
2365 )
2366
~/miniconda3/envs/qgrid/lib/python3.7/site-packages/pandas/io/json/_json.py in to_json(path_or_buf, obj, orient, date_format, double_precision, force_ascii, date_unit, default_handler, lines, compression, index, indent)
83 default_handler=default_handler,
84 index=index,
---> 85 indent=indent,
86 ).write()
87
~/miniconda3/envs/qgrid/lib/python3.7/site-packages/pandas/io/json/_json.py in __init__(self, obj, orient, date_format, double_precision, ensure_ascii, date_unit, index, default_handler, indent)
289 raise ValueError(msg)
290
--> 291 self.schema = build_table_schema(obj, index=self.index)
292
293 # NotImplemented on a column MultiIndex
~/miniconda3/envs/qgrid/lib/python3.7/site-packages/pandas/io/json/_table_schema.py in build_table_schema(data, index, primary_key, version)
251 if data.ndim > 1:
252 for column, s in data.items():
--> 253 fields.append(convert_pandas_type_to_json_field(s))
254 else:
255 fields.append(convert_pandas_type_to_json_field(data))
~/miniconda3/envs/qgrid/lib/python3.7/site-packages/pandas/io/json/_table_schema.py in convert_pandas_type_to_json_field(arr, dtype)
115 field["ordered"] = ordered
116 elif is_period_dtype(arr):
--> 117 field["freq"] = arr.freqstr
118 elif is_datetime64tz_dtype(arr):
119 if hasattr(arr, "dt"):
~/miniconda3/envs/qgrid/lib/python3.7/site-packages/pandas/core/generic.py in __getattr__(self, name)
5272 if self._info_axis._can_hold_identifiers_and_holds_name(name):
5273 return self[name]
-> 5274 return object.__getattribute__(self, name)
5275
5276 def __setattr__(self, name: str, value) -> None:
AttributeError: 'Series' object has no attribute 'freqstr'
```
This issue also crops up in dataframes where a column is a period Series and `orient='table'`.
#### Problem description
I can't find anything that says this would be unsupported.
#### Expected Output
Json string of series representation.
#### Output of ``pd.show_versions()``
<details>
pd.show_versions()
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Darwin
OS-release : 18.7.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.2.0.post20200210
Cython : None
pytest : 5.3.5
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.12.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.3.5
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31917/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31917/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31918
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31918/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31918/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31918/events
|
https://github.com/pandas-dev/pandas/pull/31918
| 563,901,773
|
MDExOlB1bGxSZXF1ZXN0Mzc0MjI3OTc3
| 31,918
|
BUG: fix parquet roundtrip with unsigned integer dtypes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "parquet, feather",
"id": 685114413,
"name": "IO Parquet",
"node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet"
},
{
"color": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 2
| 2020-02-12T10:30:30Z
| 2020-02-12T15:14:59Z
| 2020-02-12T15:04:32Z
|
MEMBER
| null |
Closes #31896
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31918/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31918/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31918.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31918",
"merged_at": "2020-02-12T15:04:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31918.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31918"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31919
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31919/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31919/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31919/events
|
https://github.com/pandas-dev/pandas/issues/31919
| 563,921,255
|
MDU6SXNzdWU1NjM5MjEyNTU=
| 31,919
|
ohlc documentation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/30231949?v=4",
"events_url": "https://api.github.com/users/dequadras/events{/privacy}",
"followers_url": "https://api.github.com/users/dequadras/followers",
"following_url": "https://api.github.com/users/dequadras/following{/other_user}",
"gists_url": "https://api.github.com/users/dequadras/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dequadras",
"id": 30231949,
"login": "dequadras",
"node_id": "MDQ6VXNlcjMwMjMxOTQ5",
"organizations_url": "https://api.github.com/users/dequadras/orgs",
"received_events_url": "https://api.github.com/users/dequadras/received_events",
"repos_url": "https://api.github.com/users/dequadras/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dequadras/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dequadras/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dequadras"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] |
closed
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 2
| 2020-02-12T11:01:38Z
| 2020-02-15T18:07:32Z
| 2020-02-15T18:07:32Z
|
CONTRIBUTOR
| null |
The documentation for ohlc is missleading. In https://pandas.pydata.org/pandas-docs/stable/reference/groupby.html The following doc appears, which probably references the docstring in the code.

A sentence like `Computes open, high, low and close values, excluding missing values` is probably more complete.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31919/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31919/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31920
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31920/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31920/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31920/events
|
https://github.com/pandas-dev/pandas/issues/31920
| 563,937,349
|
MDU6SXNzdWU1NjM5MzczNDk=
| 31,920
|
pd.read_csv does not recognize scientific notation if 'decimal' attribute is set with engine=python
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/21868012?v=4",
"events_url": "https://api.github.com/users/onnoeberhard/events{/privacy}",
"followers_url": "https://api.github.com/users/onnoeberhard/followers",
"following_url": "https://api.github.com/users/onnoeberhard/following{/other_user}",
"gists_url": "https://api.github.com/users/onnoeberhard/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/onnoeberhard",
"id": 21868012,
"login": "onnoeberhard",
"node_id": "MDQ6VXNlcjIxODY4MDEy",
"organizations_url": "https://api.github.com/users/onnoeberhard/orgs",
"received_events_url": "https://api.github.com/users/onnoeberhard/received_events",
"repos_url": "https://api.github.com/users/onnoeberhard/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/onnoeberhard/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/onnoeberhard/subscriptions",
"type": "User",
"url": "https://api.github.com/users/onnoeberhard"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "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
| 2020-02-12T11:30:37Z
| 2021-01-03T16:36:21Z
| 2021-01-03T16:36:21Z
|
CONTRIBUTOR
| null |
Contents of 'abc.tsv':
```
a b
1,2 3,5E-1
1,2e2 3,5
```
Code:
```python
>>> import pandas as pd
>>> pd.read_csv('abc.tsv', '\t', decimal=',')
a b
0 1.2 0.35
1 120.0 3.50
>>> pd.read_csv('abc.tsv', '\t', decimal=',', engine='python')
a b
0 1.2 3,5E-1
1 1,2e2 3.5
```
#### Problem description
The outputs of the two read_csv commands above should be the same. In this case an obvious "solution" is to just use the C-engine, however I have to process a file where I need to use a regular expression as the delimiter.
#### Expected Output
```python
>>> pd.read_csv('abc.tsv', '\t', decimal=',', engine='python')
a b
0 1.2 0.35
1 120.0 3.50
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Darwin
OS-release : 19.2.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : en_US.UTF-8
LANG : None
LOCALE : en_US.UTF-8
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.2.0.post20200210
Cython : 0.29.15
pytest : 5.3.5
hypothesis : 5.4.1
sphinx : 2.4.0
blosc : None
feather : None
xlsxwriter : 1.2.7
lxml.etree : 4.5.0
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.12.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : 1.3.1
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.1.3
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.3.5
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.13
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.7
numba : 0.48.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31920/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31920/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31921
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31921/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31921/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31921/events
|
https://github.com/pandas-dev/pandas/pull/31921
| 563,974,982
|
MDExOlB1bGxSZXF1ZXN0Mzc0Mjg3MDU1
| 31,921
|
Backport PR #31794 on branch 1.0.x (BUG: Avoid casting Int to object in Categorical.from_codes)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 0
| 2020-02-12T12:42:34Z
| 2020-02-12T13:14:08Z
| 2020-02-12T13:14:08Z
|
NONE
| null |
Backport PR #31794: BUG: Avoid casting Int to object in Categorical.from_codes
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31921/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31921/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31921.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31921",
"merged_at": "2020-02-12T13:14:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31921.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31921"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31922
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31922/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31922/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31922/events
|
https://github.com/pandas-dev/pandas/issues/31922
| 563,982,550
|
MDU6SXNzdWU1NjM5ODI1NTA=
| 31,922
|
BUG: segmentation fault with pd.NA and np.ndarray.__contains__
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 7
| 2020-02-12T12:56:45Z
| 2020-11-19T00:32:30Z
| 2020-11-19T00:32:30Z
|
MEMBER
| null |
Testing for membership in an ndarray segfaults:
```
In [1]: pd.NA in np.array(["a"], dtype=object)
Segmentation fault (core dumped)
```
Now, this might be something that needs to be fixed in numpy, as for plain lists it "works":
```
In [3]: pd.NA in ['a']
...
TypeError: boolean value of NA is ambiguous
```
but numpy might not expect an error instead of True/False.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31922/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31922/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31923
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31923/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31923/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31923/events
|
https://github.com/pandas-dev/pandas/pull/31923
| 563,991,863
|
MDExOlB1bGxSZXF1ZXN0Mzc0MzAxMDM3
| 31,923
|
Backport PR #31773 on branch 1.0.x (BUG: fix StringArray/PandasArray setitem with slice)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 0
| 2020-02-12T13:14:06Z
| 2020-02-12T13:49:09Z
| 2020-02-12T13:49:09Z
|
NONE
| null |
Backport PR #31773: BUG: fix StringArray/PandasArray setitem with 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/31923/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31923/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31923.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31923",
"merged_at": "2020-02-12T13:49:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31923.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31923"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31924
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31924/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31924/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31924/events
|
https://github.com/pandas-dev/pandas/issues/31924
| 563,999,881
|
MDU6SXNzdWU1NjM5OTk4ODE=
| 31,924
|
Pandas negative timedelta is 1 day off
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4095082?v=4",
"events_url": "https://api.github.com/users/tuxcell/events{/privacy}",
"followers_url": "https://api.github.com/users/tuxcell/followers",
"following_url": "https://api.github.com/users/tuxcell/following{/other_user}",
"gists_url": "https://api.github.com/users/tuxcell/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tuxcell",
"id": 4095082,
"login": "tuxcell",
"node_id": "MDQ6VXNlcjQwOTUwODI=",
"organizations_url": "https://api.github.com/users/tuxcell/orgs",
"received_events_url": "https://api.github.com/users/tuxcell/received_events",
"repos_url": "https://api.github.com/users/tuxcell/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tuxcell/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tuxcell/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tuxcell"
}
|
[
{
"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
| 2020-02-12T13:28:13Z
| 2020-02-12T15:46:48Z
| 2020-02-12T15:46:48Z
|
NONE
| null |
#### Code Sample:
```python
import datetime
import pandas as pd
a=pd.to_datetime('2017-04-03T14:06:00+01:00')
b=pd.to_datetime('2017-04-03T14:00:00+01:00')
print(a-b)
print(b-a)
#Timedelta('0 days 00:06:00')
#Timedelta('-1 days +23:54:00')
```
#### Problem description
Two timestamps obtained from Pandas "to_datetime" and having a time delta of 6 minutes, will have a strange result when the difference is negative.
#### Expected Output
#### Timedelta('0 days -00:06:00')
<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: Linux
OS-release: 4.15.0-76-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.3.1
pip: 19.0.3
setuptools: 40.8.0
Cython: 0.29.6
numpy: 1.16.1
scipy: 1.2.1
pyarrow: 0.14.0
xarray: None
IPython: 7.3.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.7.6.1 (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/31924/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31924/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31925
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31925/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31925/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31925/events
|
https://github.com/pandas-dev/pandas/issues/31925
| 564,007,092
|
MDU6SXNzdWU1NjQwMDcwOTI=
| 31,925
|
pandas.DataFrame.reindex_like throws if called from a derived class instance
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7210568?v=4",
"events_url": "https://api.github.com/users/lguyot/events{/privacy}",
"followers_url": "https://api.github.com/users/lguyot/followers",
"following_url": "https://api.github.com/users/lguyot/following{/other_user}",
"gists_url": "https://api.github.com/users/lguyot/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lguyot",
"id": 7210568,
"login": "lguyot",
"node_id": "MDQ6VXNlcjcyMTA1Njg=",
"organizations_url": "https://api.github.com/users/lguyot/orgs",
"received_events_url": "https://api.github.com/users/lguyot/received_events",
"repos_url": "https://api.github.com/users/lguyot/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lguyot/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lguyot/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lguyot"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 7
| 2020-02-12T13:40:15Z
| 2020-03-11T21:51:40Z
| 2020-03-11T21:51:40Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
import pandas.testing as pdt
class MyDataFrame(pd.DataFrame):
pass
mdf = MyDataFrame()
df = pd.DataFrame()
# In DataFrame.reindex_like, the derived class is compared to
# the base class. The following line will throw
# 'AssertionError: <class 'pandas.core.frame.DataFrame'>'
mdf.reindex_like(df)
# In pdt.assert_frame_equal,
# check_like=True triggers a call to DataFrame.reindex_like.
# The following line will throw the same
# 'AssertionError: <class 'pandas.core.frame.DataFrame'>'
pdt.assert_frame_equal(mdf, df, check_like=True)
```
#### Problem description
The method `reindex_like` throws an `AssertionError` when the caller is an instance of a derived class of `pandas.DataFrame`.
#### Expected Output
No exception thrown.
#### Output of ``pd.show_versions()``
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.9.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-65-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : fr_FR.UTF-8
LOCALE : fr_FR.UTF-8
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 9.0.1
setuptools : 39.0.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : 0.999999999
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.12.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31925/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31925/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31926
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31926/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31926/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31926/events
|
https://github.com/pandas-dev/pandas/pull/31926
| 564,061,802
|
MDExOlB1bGxSZXF1ZXN0Mzc0MzU5MjU0
| 31,926
|
Backport PR #31877 on branch 1.0.x (BUG: fix infer_dtype for StringDtype)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 0
| 2020-02-12T15:05:41Z
| 2020-02-12T15:54:22Z
| 2020-02-12T15:54:22Z
|
NONE
| null |
Backport PR #31877: BUG: fix infer_dtype for StringDtype
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31926/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31926/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31926.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31926",
"merged_at": "2020-02-12T15:54:22Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31926.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31926"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31927
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31927/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31927/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31927/events
|
https://github.com/pandas-dev/pandas/issues/31927
| 564,065,657
|
MDU6SXNzdWU1NjQwNjU2NTc=
| 31,927
|
Construction of Categorical from array with pd.NA failing
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
},
{
"color": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 2
| 2020-02-12T15:11:38Z
| 2020-02-23T14:57:08Z
| 2020-02-23T14:57:08Z
|
MEMBER
| null |
So creating a Categorical from an array with pd.NA fails:
```
In [10]: pd.Categorical(np.array(["a", "b", pd.NA], dtype=object))
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
~/scipy/pandas/pandas/core/arrays/categorical.py in __init__(self, values, categories, ordered, dtype, fastpath)
354 try:
--> 355 codes, categories = factorize(values, sort=True)
356 except TypeError:
~/scipy/pandas/pandas/core/algorithms.py in factorize(values, sort, na_sentinel, size_hint)
635 codes, uniques = _factorize_array(
--> 636 values, na_sentinel=na_sentinel, size_hint=size_hint, na_value=na_value
637 )
~/scipy/pandas/pandas/core/algorithms.py in _factorize_array(values, na_sentinel, size_hint, na_value)
483 table = hash_klass(size_hint or len(values))
--> 484 uniques, codes = table.factorize(values, na_sentinel=na_sentinel, na_value=na_value)
485
~/scipy/pandas/pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.factorize()
~/scipy/pandas/pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable._unique()
~/scipy/pandas/pandas/_libs/missing.pyx in pandas._libs.missing.NAType.__bool__()
TypeError: boolean value of NA is ambiguous
```
while from a list actually "works":
```
In [11]: pd.Categorical(["a", "b", pd.NA])
Out[11]:
[a, b, NaN]
Categories (2, object): [a, b]
```
This also means that creating a Categorical from a StringArray with missing values won't work (with the same error as above).
I am only not sure if it should work (at least before we can have a "string" dtype index as the categories of the created Categorical).
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31927/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31927/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31928
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31928/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31928/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31928/events
|
https://github.com/pandas-dev/pandas/pull/31928
| 564,067,006
|
MDExOlB1bGxSZXF1ZXN0Mzc0MzYzNDM5
| 31,928
|
Backport PR #31918 on branch 1.0.x (BUG: fix parquet roundtrip with unsigned integer dtypes)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 0
| 2020-02-12T15:13:37Z
| 2020-02-12T15:57:04Z
| 2020-02-12T15:57:04Z
|
NONE
| null |
Backport PR #31918: BUG: fix parquet roundtrip with unsigned integer dtypes
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31928/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31928/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31928.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31928",
"merged_at": "2020-02-12T15:57:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31928.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31928"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31929
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31929/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31929/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31929/events
|
https://github.com/pandas-dev/pandas/issues/31929
| 564,077,445
|
MDU6SXNzdWU1NjQwNzc0NDU=
| 31,929
|
BUG: pd.Timestamp constructor fails if tzinfo is specified
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1377457?v=4",
"events_url": "https://api.github.com/users/pganssle/events{/privacy}",
"followers_url": "https://api.github.com/users/pganssle/followers",
"following_url": "https://api.github.com/users/pganssle/following{/other_user}",
"gists_url": "https://api.github.com/users/pganssle/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pganssle",
"id": 1377457,
"login": "pganssle",
"node_id": "MDQ6VXNlcjEzNzc0NTc=",
"organizations_url": "https://api.github.com/users/pganssle/orgs",
"received_events_url": "https://api.github.com/users/pganssle/received_events",
"repos_url": "https://api.github.com/users/pganssle/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pganssle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pganssle/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pganssle"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
] |
open
| false
| null |
[] | null | 0
| 2020-02-12T15:29:21Z
| 2021-07-28T05:35:20Z
| null |
CONTRIBUTOR
| null |
The constructor for `pd.Timestamp` has both a `tz=` and `tzinfo=` argument, presumably because `pd.Timestamp` is trying to *both* support the `datetime.datetime` interface and its own constructor. There is evidently logic in the constructor to prevent both `tz` and `tzinfo` being specified, but it seems something has gone wrong, because constructing an aware `pd.Timestamp` by components and including `tzinfo` *always* raises an exception, see:
```python
import pandas as pd
from datetime import timezone
pd.Timestamp(2020, 1, 1, tzinfo=timezone.utc)
```
This raises the following exception:
```
>>> pd.Timestamp(2020, 12, 31, tzinfo=timezone.utc)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-18-9d882de0a384> in <module>
----> 1 pd.Timestamp(2020, 12, 31, tzinfo=timezone.utc)
pandas/_libs/tslibs/timestamps.pyx in pandas._libs.tslibs.timestamps.Timestamp.__new__()
ValueError: Can provide at most one of tz, tzinfo
```
Despite the fact that only `tzinfo` was specified. This seems to only occur when you are using the "per-component" specification, as passing a `datetime` or epoch time as the first component allows you to specify the time zone using `tzinfo`:
```python
pd.Timestamp(0, tzinfo=timezone.utc) # Works
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31929/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31929/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31930
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31930/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31930/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31930/events
|
https://github.com/pandas-dev/pandas/issues/31930
| 564,081,678
|
MDU6SXNzdWU1NjQwODE2Nzg=
| 31,930
|
pd.Timestamp constructor ignores missing arguments
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1377457?v=4",
"events_url": "https://api.github.com/users/pganssle/events{/privacy}",
"followers_url": "https://api.github.com/users/pganssle/followers",
"following_url": "https://api.github.com/users/pganssle/following{/other_user}",
"gists_url": "https://api.github.com/users/pganssle/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pganssle",
"id": 1377457,
"login": "pganssle",
"node_id": "MDQ6VXNlcjEzNzc0NTc=",
"organizations_url": "https://api.github.com/users/pganssle/orgs",
"received_events_url": "https://api.github.com/users/pganssle/received_events",
"repos_url": "https://api.github.com/users/pganssle/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pganssle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pganssle/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pganssle"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
] |
open
| false
| null |
[] | null | 9
| 2020-02-12T15:35:43Z
| 2020-04-02T05:16:14Z
| null |
CONTRIBUTOR
| null |
As part of the discussions in #31563, I came across these strange semantics in `pd.Timestamp`, where it is apparently legal to over-specify a `pd.Timestamp` by specifying both a `datetime` (or another `Timestamp`) *and* pass the by-component construction values, and any irrelevant arguments are *ignored*:
```python
>>> pd.Timestamp(datetime(2020, 12, 31),
year=1, month=1, day=1,
hour=23, minute=59, second=59, microsecond=999999)
Timestamp('2020-12-31 00:00:00')
```
The signature for the function is:
```
pd.Timestamp(
ts_input=<object object at 0x7fd988a10760>,
freq=None,
tz=None,
unit=None,
year=None,
month=None,
day=None,
hour=None,
minute=None,
second=None,
microsecond=None,
nanosecond=None,
tzinfo=None,
)
```
There's actually a decent amount of redundant information in there, because `pd.Timestamp` is attempting to have its own constructor *in addition to being constructable like a datetime. Properly, there are two overloaded constructors here (note that I'm not sure if `nanosecond` belongs to both or just one):
```
pd.Timestamp(ts_input, freq, tz, unit[, nanosecond?])
pd.Timestamp(year, month, day
[, hour, minute, second, microsecond, nanosecond, tzinfo])
```
I think that ideally the correct behavior would be to throw an error if you mix and match between the two, which is at least done in the case of specifying both `tz` and `tzinfo`:
```
>>> pd.Timestamp(datetime.now(), tz=timezone.utc, tzinfo=timezone.utc)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-17-d80c9ce6a89d> in <module>
----> 1 pd.Timestamp(datetime.now(), tz=timezone.utc, tzinfo=timezone.utc)
pandas/_libs/tslibs/timestamps.pyx in pandas._libs.tslibs.timestamps.Timestamp.__new__()
ValueError: Can provide at most one of tz, tzinfo
```
Though confusingly this also fails if you specify `tzinfo` *at all* in the "by-component" constructor. I have filed a separate bug for that at #31929.
## Recommendation
I think that the behavior of `pandas.Timestamp` should probably be brought at least mostly in-line with the concept of two overloaded constructors (possibly with `tz` and `tzinfo` being mutually-exclusive aliases for one another). Any other combination, particularly combinations where the values passed are *ignored*, should raise an exception.
This *may* be a breaking change, since it will start raising exceptions in code that didn't raise exceptions before (though I am not sure I can think of any situation where silently ignoring the values is a desirable condition), so it may be a good idea to have a deprecation period where a warning rather than an exception is raised.
|
{
"+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/31930/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31930/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31931
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31931/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31931/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31931/events
|
https://github.com/pandas-dev/pandas/pull/31931
| 564,108,026
|
MDExOlB1bGxSZXF1ZXN0Mzc0Mzk3NTA5
| 31,931
|
Revert 31791
|
{
"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": "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-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 4
| 2020-02-12T16:15:49Z
| 2020-02-15T12:34:05Z
| 2020-02-15T01:44:56Z
|
MEMBER
| null |
supersedes #31800
we never back ported this so just cleaning up master (assuming it now works again)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31931/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31931/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31931.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31931",
"merged_at": "2020-02-15T01:44:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31931.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31931"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31932
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31932/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31932/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31932/events
|
https://github.com/pandas-dev/pandas/pull/31932
| 564,127,507
|
MDExOlB1bGxSZXF1ZXN0Mzc0NDEzNTQx
| 31,932
|
CLN: remove unreachable in Series._reduce
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-12T16:45:49Z
| 2020-02-14T01:54:05Z
| 2020-02-14T01:27:40Z
|
MEMBER
| null |
these are made unreachable now that Series._values returns DTA/TDA for datetime64/timedelta64 dtypes.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31932/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31932/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31932.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31932",
"merged_at": "2020-02-14T01:27:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31932.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31932"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31933
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31933/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31933/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31933/events
|
https://github.com/pandas-dev/pandas/pull/31933
| 564,165,638
|
MDExOlB1bGxSZXF1ZXN0Mzc0NDQ1MTcx
| 31,933
|
CLN: 29547 replace old string formatting 2
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13339148?v=4",
"events_url": "https://api.github.com/users/3vts/events{/privacy}",
"followers_url": "https://api.github.com/users/3vts/followers",
"following_url": "https://api.github.com/users/3vts/following{/other_user}",
"gists_url": "https://api.github.com/users/3vts/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/3vts",
"id": 13339148,
"login": "3vts",
"node_id": "MDQ6VXNlcjEzMzM5MTQ4",
"organizations_url": "https://api.github.com/users/3vts/orgs",
"received_events_url": "https://api.github.com/users/3vts/received_events",
"repos_url": "https://api.github.com/users/3vts/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/3vts/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/3vts/subscriptions",
"type": "User",
"url": "https://api.github.com/users/3vts"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-12T17:51:56Z
| 2020-02-21T01:30:01Z
| 2020-02-13T05:54:38Z
|
CONTRIBUTOR
| null |
I splitted PR #31844 in batches, this is the second
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547](https://github.com/pandas-dev/pandas/issues/29547). I may have missed something so is a good idea to double check just in case
- [ x ] tests added / passed
- [ x ] passes `black pandas`
- [ x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31933/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31933/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31933.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31933",
"merged_at": "2020-02-13T05:54:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31933.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31933"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31934
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31934/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31934/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31934/events
|
https://github.com/pandas-dev/pandas/issues/31934
| 564,186,315
|
MDU6SXNzdWU1NjQxODYzMTU=
| 31,934
|
to_csv compression dict option 'archive_name' should accept os.PathLike
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2966015?v=4",
"events_url": "https://api.github.com/users/flutefreak7/events{/privacy}",
"followers_url": "https://api.github.com/users/flutefreak7/followers",
"following_url": "https://api.github.com/users/flutefreak7/following{/other_user}",
"gists_url": "https://api.github.com/users/flutefreak7/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/flutefreak7",
"id": 2966015,
"login": "flutefreak7",
"node_id": "MDQ6VXNlcjI5NjYwMTU=",
"organizations_url": "https://api.github.com/users/flutefreak7/orgs",
"received_events_url": "https://api.github.com/users/flutefreak7/received_events",
"repos_url": "https://api.github.com/users/flutefreak7/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/flutefreak7/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/flutefreak7/subscriptions",
"type": "User",
"url": "https://api.github.com/users/flutefreak7"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
open
| false
| null |
[] | null | 0
| 2020-02-12T18:30:39Z
| 2021-07-28T05:36:17Z
| null |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
import numpy as np
import pandas as pd
from pathlib import Path
random_data = np.random.standard_normal(size=(1000, 3))
data = pd.DataFrame(random_data, columns=['A', 'B', 'C'])
csv_file = Path('random_data.zip')
data .to_csv(csv_file.with_suffix('.zip'), index=False, compression={'method': 'zip', 'archive_name': csv_file})
```
#### Problem description
The Python std lib has made a tremendous effort to support os.PathLike objects, especially pathlib.Path, across the standard library. [ZipFile was somewhat recently patched](https://bugs.python.org/issue28231) to add PathLike support for externally facing paths, but it appears they did not add this support to ZipInfo which is used to interface with the files within a zip archive.
DataFrame's `to_csv()` method was [recently updated](https://github.com/pandas-dev/pandas/pull/26024) to handle passing additional arguments when using zip compression. If compression is specified as a `dict` and `archive_name` is passed as a key, the value currently must be a `str` because ZipInfo requires a string. Since pandas has exposed this to the user it would be nice for PathLike objects like `pathlib.Path` to get converted to a `str` before being passed to ZipInfo.
If someone wants to raise this upstream on the Python issue tracker, that's also an acceptable outcome. Perhaps this was just an oversight on the [previous issue](https://bugs.python.org/issue28231) where they neglected to consider the arguments to ZipInfo as externally facing.
#### Expected Output
- Zip file is saved with no exceptions
- Zip file contains a *.csv file (it's only because pandas defaults to creating a zip file containing an identically named zip file that passing `archive_name` is necessary for what should be default behavior. <sigh>)
#### Output of ``pd.show_versions()``
<details>
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 158 Stepping 9, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 40.6.2
Cython : 0.29.14
pytest : 4.2.0
hypothesis : None
sphinx : 2.1.2
blosc : None
feather : None
xlsxwriter : 1.2.2
lxml.etree : 4.3.1
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10
IPython : 7.8.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.3.1
matplotlib : 3.1.1
numexpr : 2.6.9
odfpy : None
openpyxl : 3.0.0
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 4.2.0
pyxlsb : None
s3fs : None
scipy : 1.3.2
sqlalchemy : 1.3.6
tables : 3.4.4
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.2
numba : 0.46.0
</details>
|
{
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31934/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31934/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31935
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31935/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31935/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31935/events
|
https://github.com/pandas-dev/pandas/pull/31935
| 564,241,678
|
MDExOlB1bGxSZXF1ZXN0Mzc0NTA4MTM3
| 31,935
|
Clean Up C Warnings
|
{
"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": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 9
| 2020-02-12T20:10:55Z
| 2020-02-17T19:50:33Z
| 2020-02-17T19:50:33Z
|
MEMBER
| null |
Getting closer to no warnings (at least with clang). Changes in this PR get rid of the following warnings:
```sh
warning: pandas/_libs/window/aggregations.pyx:60:4: Buffer unpacking not optimized away.
warning: pandas/_libs/window/aggregations.pyx:60:4: Buffer unpacking not optimized away.
warning: pandas/_libs/window/aggregations.pyx:60:36: Buffer unpacking not optimized away.
warning: pandas/_libs/window/aggregations.pyx:60:36: Buffer unpacking not optimized away.
pandas/_libs/hashing.c:25100:20: warning: unused function '__pyx_memview_get_object' [-Wunused-function]
static PyObject *__pyx_memview_get_object(const char *itemp) {
^
pandas/_libs/hashing.c:25105:12: warning: unused function '__pyx_memview_set_object' [-Wunused-function]
static int __pyx_memview_set_object(const char *itemp, PyObject *obj) {
pandas/_libs/algos.c:81410:3: warning: code will never be executed [-Wunreachable-code]
__Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_arr.rcbuffer->pybuffer);
^~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/algos.c:83045:3: warning: code will never be executed [-Wunreachable-code]
__Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_arr.rcbuffer->pybuffer);
^~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/algos.c:83951:3: warning: code will never be executed [-Wunreachable-code]
__Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_arr.rcbuffer->pybuffer);
^~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/algos.c:84857:3: warning: code will never be executed [-Wunreachable-code]
__Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_arr.rcbuffer->pybuffer);
^~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/algos.c:85034:3: warning: code will never be executed [-Wunreachable-code]
__Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_arr.rcbuffer->pybuffer);
^~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/algos.c:85940:3: warning: code will never be executed [-Wunreachable-code]
__Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_arr.rcbuffer->pybuffer);
^~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/tslibs/conversion.c:33113:20: warning: unused function '__pyx_memview_get_object' [-Wunused-function]
static PyObject *__pyx_memview_get_object(const char *itemp) {
^
pandas/_libs/tslibs/conversion.c:33118:12: warning: unused function '__pyx_memview_set_object' [-Wunused-function]
static int __pyx_memview_set_object(const char *itemp, PyObject *obj) {
```
Only a handful left after this
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31935/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31935/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31935.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31935",
"merged_at": "2020-02-17T19:50:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31935.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31935"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31936
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31936/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31936/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31936/events
|
https://github.com/pandas-dev/pandas/pull/31936
| 564,256,346
|
MDExOlB1bGxSZXF1ZXN0Mzc0NTIwNTMz
| 31,936
|
dont skip keyerror for IntervalIndex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "009800",
"default": false,
"description": "Interval data type",
"id": 150096370,
"name": "Interval",
"node_id": "MDU6TGFiZWwxNTAwOTYzNzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Interval"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-02-12T20:38:17Z
| 2020-02-22T17:53:56Z
| 2020-02-22T17:53:45Z
|
MEMBER
| null |
cc @jschendel this is speculative that this is the desired behavior.
This is our only use of `Index.is_interval()`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31936/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31936/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31936.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31936",
"merged_at": "2020-02-22T17:53:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31936.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31936"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31937
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31937/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31937/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31937/events
|
https://github.com/pandas-dev/pandas/issues/31937
| 564,262,689
|
MDU6SXNzdWU1NjQyNjI2ODk=
| 31,937
|
Why does Series.transform() exist?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/58305801?v=4",
"events_url": "https://api.github.com/users/UchuuStranger/events{/privacy}",
"followers_url": "https://api.github.com/users/UchuuStranger/followers",
"following_url": "https://api.github.com/users/UchuuStranger/following{/other_user}",
"gists_url": "https://api.github.com/users/UchuuStranger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/UchuuStranger",
"id": 58305801,
"login": "UchuuStranger",
"node_id": "MDQ6VXNlcjU4MzA1ODAx",
"organizations_url": "https://api.github.com/users/UchuuStranger/orgs",
"received_events_url": "https://api.github.com/users/UchuuStranger/received_events",
"repos_url": "https://api.github.com/users/UchuuStranger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/UchuuStranger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/UchuuStranger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/UchuuStranger"
}
|
[
{
"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 | 8
| 2020-02-12T20:50:16Z
| 2020-02-14T18:24:13Z
| 2020-02-14T01:47:06Z
|
NONE
| null |
This is my first issue on GitHub, so apologies in advance if there's something wrong with the format.
My issue does not have any expected output, I just really want to understand if and why the `Series.transform() ` method is not redundant. Overall, the `transform()` methods are very similar to `apply()` methods, and as I was trying to figure out what the difference between them is ([this](https://stackoverflow.com/questions/27517425/apply-vs-transform-on-a-group-object) Stack Overflow topic was helpful), I managed to pinpoint 3 primary differences:
1) When the DataFrame is grouped on several categories, `apply()` sends the entire sub-DataFrames within the function, while `transform()` sends each column of each sub-DataFrame separately. That's why columns can't access values in other columns within `transform()`;
2) When the input passed to the function is an iterable of a certain length, `apply()` can still have the output of any length, while `transform()` has a limitation of having to output an iterable of the same length as the input;
3) When the function outputs a scalar, `apply()` returns that scalar, while `transform()` propagates that scalar to the iterable of the input length.
I conducted a series of experiments that test these three differences on each applicable pandas object type: Series, DataFrame, SeriesGroupBy, and DataFrameGroupBy. I can send my ipynb with the code and the results if necessary, but it would be sufficient to just look at the conclusion for the Series type:
1 – not applicable. In both cases the function has a scalar input.
2 – not applicable. No matter what the function returns, in both cases the result is assigned to the single cell, even if it means entire DataFrames within cells of a Seires.
3 – not applicable. The input length is always "1" (it's considered "1" even when it's an iterable), so there's no need to propagate.
Inapplicability of 1 is self-explanatory. But 2 was a surprise. Below is the code I tried:
```
import pandas as pd
df = pd.DataFrame({'State':['Texas', 'Texas', 'Florida', 'Florida'],
'a':[4,5,1,3], 'b':[6,10,3,11]})
def return_df(x):
return pd.DataFrame([[4, 5], [3, 2]])
def return_series(x):
return pd.Series([1, 2])
df['a'].transform(return_df)
df['a'].transform(return_series)
```
If you try this code, you'll see that it doesn't matter what the function returns. Whatever it is, it will be put inside the single Series cell in its entirety. Is this behavior intentional? It results in the output size being predetermined by the input size, so all the size checks that `Series.transform()` has within itself become redundant. I can't imagine any situation where `Series.transform()` could behave in a different way from `Series.apply()`. And that raises the question I posed: why does `Series.transform()` exist?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31937/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31937/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31938
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31938/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31938/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31938/events
|
https://github.com/pandas-dev/pandas/pull/31938
| 564,273,061
|
MDExOlB1bGxSZXF1ZXN0Mzc0NTM0Mzky
| 31,938
|
CLN: assorted cleanups
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-12T21:09:05Z
| 2020-02-13T17:35:33Z
| 2020-02-13T12:42:54Z
|
MEMBER
| null |
broken off of other local branches
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31938/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31938/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31938.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31938",
"merged_at": "2020-02-13T12:42:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31938.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31938"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31939
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31939/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31939/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31939/events
|
https://github.com/pandas-dev/pandas/pull/31939
| 564,277,438
|
MDExOlB1bGxSZXF1ZXN0Mzc0NTM4MDg5
| 31,939
|
BUG: Fix construction of Categorical from pd.NA
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
},
{
"color": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 5
| 2020-02-12T21:17:04Z
| 2020-02-23T15:10:32Z
| 2020-02-23T14:57:08Z
|
MEMBER
| null |
- [x] closes #31927
- [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/31939/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31939/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31939.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31939",
"merged_at": "2020-02-23T14:57:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31939.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31939"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31940
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31940/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31940/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31940/events
|
https://github.com/pandas-dev/pandas/pull/31940
| 564,278,337
|
MDExOlB1bGxSZXF1ZXN0Mzc0NTM4ODcz
| 31,940
|
REF: use iloc instead of _ixs outside of indexing 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": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 7
| 2020-02-12T21:18:37Z
| 2020-04-05T17:45:44Z
| 2020-02-17T16:31:20Z
|
MEMBER
| null |
Readers are much more likely to be familiar with iloc than _ixs.
This leaves us with exactly one usage of _ixs.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31940/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31940/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31940.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31940",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31940.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31940"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31941
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31941/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31941/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31941/events
|
https://github.com/pandas-dev/pandas/pull/31941
| 564,364,309
|
MDExOlB1bGxSZXF1ZXN0Mzc0NjA5ODEx
| 31,941
|
DOC: update ohlc docstring so that it reflects the real use #31919
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/30231949?v=4",
"events_url": "https://api.github.com/users/dequadras/events{/privacy}",
"followers_url": "https://api.github.com/users/dequadras/followers",
"following_url": "https://api.github.com/users/dequadras/following{/other_user}",
"gists_url": "https://api.github.com/users/dequadras/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dequadras",
"id": 30231949,
"login": "dequadras",
"node_id": "MDQ6VXNlcjMwMjMxOTQ5",
"organizations_url": "https://api.github.com/users/dequadras/orgs",
"received_events_url": "https://api.github.com/users/dequadras/received_events",
"repos_url": "https://api.github.com/users/dequadras/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dequadras/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dequadras/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dequadras"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 6
| 2020-02-13T00:30:02Z
| 2020-02-15T18:07:40Z
| 2020-02-15T18:07:33Z
|
CONTRIBUTOR
| null |
- [x] closes #31919
- [x] tests added / passed
The test python scripts/validate_docstrings.py pandas.core.groupby.GroupBy.ohlc returns errors, but that is something that happens with many functions at the moment
```################################################################################
################# Docstring (pandas.core.groupby.GroupBy.ohlc) #################
################################################################################
Compute open, high, low and close values of a group, excluding missing values.
For multiple groupings, the result index will be a MultiIndex
Returns
-------
DataFrame
Open, high, low and close values within each group.
See Also
--------
Series.groupby
DataFrame.groupby
################################################################################
################################## Validation ##################################
################################################################################
3 Errors found:
Missing description for See Also "Series.groupby" reference
Missing description for See Also "DataFrame.groupby" reference
No examples section found```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31941/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31941/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31941.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31941",
"merged_at": "2020-02-15T18:07:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31941.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31941"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31942
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31942/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31942/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31942/events
|
https://github.com/pandas-dev/pandas/issues/31942
| 564,383,523
|
MDU6SXNzdWU1NjQzODM1MjM=
| 31,942
|
CLN: Update docstring decorator from Appender and Substitution to doc
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50187675?v=4",
"events_url": "https://api.github.com/users/HH-MWB/events{/privacy}",
"followers_url": "https://api.github.com/users/HH-MWB/followers",
"following_url": "https://api.github.com/users/HH-MWB/following{/other_user}",
"gists_url": "https://api.github.com/users/HH-MWB/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/HH-MWB",
"id": 50187675,
"login": "HH-MWB",
"node_id": "MDQ6VXNlcjUwMTg3Njc1",
"organizations_url": "https://api.github.com/users/HH-MWB/orgs",
"received_events_url": "https://api.github.com/users/HH-MWB/received_events",
"repos_url": "https://api.github.com/users/HH-MWB/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/HH-MWB/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HH-MWB/subscriptions",
"type": "User",
"url": "https://api.github.com/users/HH-MWB"
}
|
[
{
"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
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50187675?v=4",
"events_url": "https://api.github.com/users/HH-MWB/events{/privacy}",
"followers_url": "https://api.github.com/users/HH-MWB/followers",
"following_url": "https://api.github.com/users/HH-MWB/following{/other_user}",
"gists_url": "https://api.github.com/users/HH-MWB/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/HH-MWB",
"id": 50187675,
"login": "HH-MWB",
"node_id": "MDQ6VXNlcjUwMTg3Njc1",
"organizations_url": "https://api.github.com/users/HH-MWB/orgs",
"received_events_url": "https://api.github.com/users/HH-MWB/received_events",
"repos_url": "https://api.github.com/users/HH-MWB/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/HH-MWB/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HH-MWB/subscriptions",
"type": "User",
"url": "https://api.github.com/users/HH-MWB"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/50187675?v=4",
"events_url": "https://api.github.com/users/HH-MWB/events{/privacy}",
"followers_url": "https://api.github.com/users/HH-MWB/followers",
"following_url": "https://api.github.com/users/HH-MWB/following{/other_user}",
"gists_url": "https://api.github.com/users/HH-MWB/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/HH-MWB",
"id": 50187675,
"login": "HH-MWB",
"node_id": "MDQ6VXNlcjUwMTg3Njc1",
"organizations_url": "https://api.github.com/users/HH-MWB/orgs",
"received_events_url": "https://api.github.com/users/HH-MWB/received_events",
"repos_url": "https://api.github.com/users/HH-MWB/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/HH-MWB/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HH-MWB/subscriptions",
"type": "User",
"url": "https://api.github.com/users/HH-MWB"
}
] |
{
"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
| 2020-02-13T01:34:07Z
| 2020-03-02T07:51:53Z
| null |
CONTRIBUTOR
| null |
We use to use `Appender` and `Substitution` decorators to share docstring cross functions. Now we implemented a new decorator `doc` for that use case, and it would simplify the reuse of docstrings.
The idea here is to replace `Appender` and `Substitution` with `doc` decorator, and move the shared docstring to a better place if possible.
#### Example
The original code will be look like this:
```python
@Substitution(**_shared_doc_kwargs)
@Appender(NDFrame.fillna.__doc__)
def fillna(self, value=None, ...) -> Optional["DataFrame"]:
return super().fillna(...)
```
We would like to change it to this:
```python
@doc(NDFrame.fillna, **_shared_doc_kwargs)
def fillna(self, value=None, ...) -> Optional["DataFrame"]:
return super().fillna(...)
```
#### Reference
- [CLN: Replace Appender and Substitution with simpler doc decorator](https://github.com/pandas-dev/pandas/pull/31060)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31942/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31942/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31943
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31943/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31943/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31943/events
|
https://github.com/pandas-dev/pandas/issues/31943
| 564,384,513
|
MDU6SXNzdWU1NjQzODQ1MTM=
| 31,943
|
sort_index is different from before version
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4172582?v=4",
"events_url": "https://api.github.com/users/gao4263/events{/privacy}",
"followers_url": "https://api.github.com/users/gao4263/followers",
"following_url": "https://api.github.com/users/gao4263/following{/other_user}",
"gists_url": "https://api.github.com/users/gao4263/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gao4263",
"id": 4172582,
"login": "gao4263",
"node_id": "MDQ6VXNlcjQxNzI1ODI=",
"organizations_url": "https://api.github.com/users/gao4263/orgs",
"received_events_url": "https://api.github.com/users/gao4263/received_events",
"repos_url": "https://api.github.com/users/gao4263/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gao4263/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gao4263/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gao4263"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-02-13T01:37:48Z
| 2020-02-13T01:47:09Z
| 2020-02-13T01:46:22Z
|
NONE
| null |
```python
dates = pd.date_range('20170101', periods=6)
df = pd.DataFrame(np.random.randn(6,4), index=dates, columns=list('ABCD'))
print(df.sort_index())
```
#### version 1 output
D C B A
2017-01-01 -1.418768 0.441179 0.668193 -0.883575
2017-01-02 -0.642718 0.406244 -1.558845 -0.050165
2017-01-03 -0.492745 -1.578937 0.829258 -1.092268
2017-01-04 1.113140 -2.376751 0.608188 -0.080518
2017-01-05 1.003710 1.969951 -1.583741 -0.610659
2017-01-06 -0.154932 -0.375000 0.179116 -0.294583
#### Expected Output
```
D C B A
2017-01-01 0.426359 2.542352 -0.324047 0.418973
2017-01-02 -0.834625 -1.356709 0.150744 -1.690500
2017-01-03 -0.018274 0.900801 1.072851 0.149830
2017-01-04 -1.075027 -0.889379 -0.663223 -1.404002
2017-01-05 -1.273966 -1.335761 -1.356561 -1.135199
2017-01-06 -1.590793 0.693430 -0.504164 0.143386
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31943/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31943/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31944
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31944/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31944/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31944/events
|
https://github.com/pandas-dev/pandas/issues/31944
| 564,406,668
|
MDU6SXNzdWU1NjQ0MDY2Njg=
| 31,944
|
Errors in pandas._libs.lib.maybe_convert_objects leading to use of uninitialized memory
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/512293?v=4",
"events_url": "https://api.github.com/users/ahmadia/events{/privacy}",
"followers_url": "https://api.github.com/users/ahmadia/followers",
"following_url": "https://api.github.com/users/ahmadia/following{/other_user}",
"gists_url": "https://api.github.com/users/ahmadia/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ahmadia",
"id": 512293,
"login": "ahmadia",
"node_id": "MDQ6VXNlcjUxMjI5Mw==",
"organizations_url": "https://api.github.com/users/ahmadia/orgs",
"received_events_url": "https://api.github.com/users/ahmadia/received_events",
"repos_url": "https://api.github.com/users/ahmadia/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ahmadia/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ahmadia/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ahmadia"
}
|
[
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
},
{
"color": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/67756774?v=4",
"events_url": "https://api.github.com/users/icanhazcodeplz/events{/privacy}",
"followers_url": "https://api.github.com/users/icanhazcodeplz/followers",
"following_url": "https://api.github.com/users/icanhazcodeplz/following{/other_user}",
"gists_url": "https://api.github.com/users/icanhazcodeplz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/icanhazcodeplz",
"id": 67756774,
"login": "icanhazcodeplz",
"node_id": "MDQ6VXNlcjY3NzU2Nzc0",
"organizations_url": "https://api.github.com/users/icanhazcodeplz/orgs",
"received_events_url": "https://api.github.com/users/icanhazcodeplz/received_events",
"repos_url": "https://api.github.com/users/icanhazcodeplz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/icanhazcodeplz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/icanhazcodeplz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/icanhazcodeplz"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/67756774?v=4",
"events_url": "https://api.github.com/users/icanhazcodeplz/events{/privacy}",
"followers_url": "https://api.github.com/users/icanhazcodeplz/followers",
"following_url": "https://api.github.com/users/icanhazcodeplz/following{/other_user}",
"gists_url": "https://api.github.com/users/icanhazcodeplz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/icanhazcodeplz",
"id": 67756774,
"login": "icanhazcodeplz",
"node_id": "MDQ6VXNlcjY3NzU2Nzc0",
"organizations_url": "https://api.github.com/users/icanhazcodeplz/orgs",
"received_events_url": "https://api.github.com/users/icanhazcodeplz/received_events",
"repos_url": "https://api.github.com/users/icanhazcodeplz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/icanhazcodeplz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/icanhazcodeplz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/icanhazcodeplz"
}
] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 8
| 2020-02-13T02:56:18Z
| 2020-10-06T22:43:17Z
| 2020-10-06T22:43:17Z
|
NONE
| null |
#### Code Sample 1
```python
import numpy as np
import pandas as pd
from pandas._libs import lib as lib
print(lib.maybe_convert_objects(np.array([np.nan, True], dtype='object'), safe=1))
```
#### Code Sample 2
```python
import numpy as np
import pandas as pd
from pandas._libs import lib as lib
print(lib.maybe_convert_objects(np.array([np.nan, np.datetime64()], dtype='object'), safe=1, convert_datetime=1))
```
#### Code Sample 3
```python
import math
import pandas as pd
z1 = pd.Series([True, False, pd.NA]).value_counts(dropna=False)
print(z1)
z2 = pd.Series({True: 1, False: 1, math.nan:1})
print(z1)
```
#### Problem description
This problem was originally detected by @benfuja when he noticed inconsistent output in the `value_counts` function when `dropna=False` for otherwise Boolean arrays containing a `pd.NA` indicator. Code Sample 3 is Ben's original example showing the odd behavior (note that z1 is printed twice, and depending on your malloc library, will likely change values between calls). When we tried to isolate what was happening, we ended up down a couple of rabbit holes leading to the `maybe_convert_objects` function.
What I suspect is happening is that when `maybe_convert_objects` is called by the Series index formatter, it is expecting that if a mixture of Booleans and `np.nan` are present, that the presence of `np.nan` will be preserved. Instead, I think what happens is that `maybe_convert_objects` erroneously returns garbage values when either Booleans or datetimes/timedeltas are present along with `np.nan` by returning a corresponding array with uninitialized empty memory in the locations where the `np.nan` values were present. Code Samples 1 and 2 are examples of this.
As noted in https://github.com/pandas-dev/pandas/issues/27417, there are probably a few opportunities to improve this function and its dependencies. I'm not particularly familiar with this code base, but it seems to me that the most correct minimal fix may be in the Seen class:
#### Proposed Minimal Fix
```python
@property
def numeric_(self):
- return self.complex_ or self.float_ or self.int_
+ return self.complex_ or self.float_ or self.int_ or self.null_ or self.nan_
```
#### Rationale
The `maybe_convert_objects` method relies on the `Seen` class to tell it if it is safe to consider an array as containing only values of a specific type. When `maybe_convert_objects` encounters a `NaN` or a `None`, it stores the encountered value in the `floats` and `complexes` arrays and sets the `seen.nan_` / `seen.null_` flags. Later checks for whether an array is of a specific type will miss that these values were encountered if these flags are not checked for. This seemed like the most logical place to put these checks in `Seen`, since both `self.null_` and `self.nan_` are stored in the `floats/complexes` arrays earlier. Another option would be to fix the logic in `maybe_convert_objects` to more carefully check the `self.nan_/seen.null_` flags in the case statements.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.1.final.0
python-bits : 64
OS : Darwin
OS-release : 18.7.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.1
numpy : 1.17.3
pytz : 2019.3
dateutil : 2.8.1
pip : 19.3.1
setuptools : 45.0.0.post20200113
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.3
IPython : 7.11.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
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31944/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31944/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31945
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31945/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31945/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31945/events
|
https://github.com/pandas-dev/pandas/pull/31945
| 564,420,745
|
MDExOlB1bGxSZXF1ZXN0Mzc0NjU0MTQw
| 31,945
|
CLN: 29547 replace old string formatting 3
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13339148?v=4",
"events_url": "https://api.github.com/users/3vts/events{/privacy}",
"followers_url": "https://api.github.com/users/3vts/followers",
"following_url": "https://api.github.com/users/3vts/following{/other_user}",
"gists_url": "https://api.github.com/users/3vts/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/3vts",
"id": 13339148,
"login": "3vts",
"node_id": "MDQ6VXNlcjEzMzM5MTQ4",
"organizations_url": "https://api.github.com/users/3vts/orgs",
"received_events_url": "https://api.github.com/users/3vts/received_events",
"repos_url": "https://api.github.com/users/3vts/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/3vts/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/3vts/subscriptions",
"type": "User",
"url": "https://api.github.com/users/3vts"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 5
| 2020-02-13T03:45:56Z
| 2020-02-21T01:30:01Z
| 2020-02-13T20:34:48Z
|
CONTRIBUTOR
| null |
I splitted PR #31844 in batches, this is the third
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547](https://github.com/pandas-dev/pandas/issues/29547). I may have missed something so is a good idea to double check just in case
- [ x ] tests added / passed
- [ x ] passes `black pandas`
- [ x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31945/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31945/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31945.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31945",
"merged_at": "2020-02-13T20:34:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31945.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31945"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31946
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31946/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31946/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31946/events
|
https://github.com/pandas-dev/pandas/pull/31946
| 564,463,929
|
MDExOlB1bGxSZXF1ZXN0Mzc0Njg5MTQ2
| 31,946
|
API: replace() should raise an exception if invalid argument is given
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1399377?v=4",
"events_url": "https://api.github.com/users/a-y-khan/events{/privacy}",
"followers_url": "https://api.github.com/users/a-y-khan/followers",
"following_url": "https://api.github.com/users/a-y-khan/following{/other_user}",
"gists_url": "https://api.github.com/users/a-y-khan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/a-y-khan",
"id": 1399377,
"login": "a-y-khan",
"node_id": "MDQ6VXNlcjEzOTkzNzc=",
"organizations_url": "https://api.github.com/users/a-y-khan/orgs",
"received_events_url": "https://api.github.com/users/a-y-khan/received_events",
"repos_url": "https://api.github.com/users/a-y-khan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/a-y-khan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/a-y-khan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/a-y-khan"
}
|
[
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-02-13T06:13:46Z
| 2020-03-03T04:32:14Z
| 2020-03-03T03:24:23Z
|
CONTRIBUTOR
| null |
- [x] closes #18634
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I used `is_scalar()` instead of `is_numeric()` to allow data structures like pd.Timestamp to be used in `replace()`. See tests in pandas/tests/frame/methods/test_replace.py, pandas/tests/series/methods/test_replace.py for examples.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31946/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31946/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31946.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31946",
"merged_at": "2020-03-03T03:24:23Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31946.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31946"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31947
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31947/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31947/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31947/events
|
https://github.com/pandas-dev/pandas/pull/31947
| 564,512,481
|
MDExOlB1bGxSZXF1ZXN0Mzc0NzI5MDMx
| 31,947
|
Backport PR #31910 on branch 1.0.x (BUG: Handle NA in assert_numpy_array_equal)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "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-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 0
| 2020-02-13T08:16:45Z
| 2020-02-13T12:41:05Z
| 2020-02-13T09:05:41Z
|
NONE
| null |
Backport PR #31910: BUG: Handle NA in assert_numpy_array_equal
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31947/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31947/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31947.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31947",
"merged_at": "2020-02-13T09:05:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31947.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31947"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31948
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31948/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31948/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31948/events
|
https://github.com/pandas-dev/pandas/issues/31948
| 564,522,664
|
MDU6SXNzdWU1NjQ1MjI2NjQ=
| 31,948
|
BUG: wrong errors when indexing with list that includes pd.NA
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] |
open
| false
| null |
[] |
{
"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"
}
| 1
| 2020-02-13T08:39:30Z
| 2021-07-28T05:38:40Z
| null |
MEMBER
| null |
Currently, indexing with a list including pd.NA (so the list version of indexing with a BooleanArray or IntegerArray) works on the array, but not on Series:
("works" = raising the correct error message)
```
In [21]: a = pd.array([1, 2, 3])
In [22]: a[[True, False, pd.NA]]
...
ValueError: Cannot mask with a boolean indexer containing NA values
In [23]: a[[0, 1, pd.NA]]
...
ValueError: Cannot index with an integer indexer containing NA values
```
vs
```
In [24]: s = pd.Series(a)
In [25]: s[[True, False, pd.NA]]
...
KeyError: 'Passing list-likes to .loc or [] with any missing labels is no longer supported, see https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#deprecate-loc-reindex-listlike'
In [26]: s[[0, 1, pd.NA]]
...
TypeError: boolean value of NA is ambiguous
```
Because the validation of the indexer isn't yet updated to handle listlikes that include pd.NA.
And similar problems for setitem.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31948/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31948/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31949
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31949/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31949/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31949/events
|
https://github.com/pandas-dev/pandas/issues/31949
| 564,530,389
|
MDU6SXNzdWU1NjQ1MzAzODk=
| 31,949
|
pandas.Dataframe.interpolate() does not extrapolate even if it is asked to, depending on interpolation method
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18899038?v=4",
"events_url": "https://api.github.com/users/typorian/events{/privacy}",
"followers_url": "https://api.github.com/users/typorian/followers",
"following_url": "https://api.github.com/users/typorian/following{/other_user}",
"gists_url": "https://api.github.com/users/typorian/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/typorian",
"id": 18899038,
"login": "typorian",
"node_id": "MDQ6VXNlcjE4ODk5MDM4",
"organizations_url": "https://api.github.com/users/typorian/orgs",
"received_events_url": "https://api.github.com/users/typorian/received_events",
"repos_url": "https://api.github.com/users/typorian/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/typorian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/typorian/subscriptions",
"type": "User",
"url": "https://api.github.com/users/typorian"
}
|
[
{
"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": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "b60205",
"default": false,
"description": "Internal Consistency of API/Behavior",
"id": 1741841389,
"name": "API - Consistency",
"node_id": "MDU6TGFiZWwxNzQxODQxMzg5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency"
}
] |
open
| false
| null |
[] | null | 10
| 2020-02-13T08:54:37Z
| 2021-10-29T23:59:14Z
| null |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
import numpy as np
a = pd.Series([0, 1, np.nan, 3, 4, np.nan, np.nan, np.nan, np.nan])
a_int=a.interpolate(method='cubic', limit_area=None)
```
#### Problem description
Some of the offered methods (it seems all of them that are provided by interp1d) are unable to extrapolate over np.nan. However, the limit_area switch for df.interpolate() indicates you can force extrapolation. A combination of limit_area=None and an incompatible method should raise a warning.
There used to be a similar issue where extrapolation over trailing NaN was done unintentionally, so maybe the fix for that overdid it. https://github.com/pandas-dev/pandas/issues/8000
#### Expected Output
Extrapolation over the NaNs in the array is expected. Using a different method, such as pchip achieves this.
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
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 63 Stepping 2, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en
LOCALE : None.None
pandas : 0.25.3 (also tested with 1.0.0)
numpy : 1.15.4
pytz : 2018.9
dateutil : 2.7.5
pip : 20.0.2
setuptools : 41.0.1
Cython : 0.29.15
pytest : None
hypothesis : None
sphinx : 1.8.3
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.3.3
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10
IPython : 7.5.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.3.3
matplotlib : 3.0.3
numexpr : None
odfpy : None
openpyxl : 2.5.12
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.2.1
sqlalchemy : None
tables : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
</details>
|
{
"+1": 8,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 8,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31949/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31949/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31950
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31950/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31950/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31950/events
|
https://github.com/pandas-dev/pandas/issues/31950
| 564,595,416
|
MDU6SXNzdWU1NjQ1OTU0MTY=
| 31,950
|
BUG: groupby-nunique modifies null values
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/58076869?v=4",
"events_url": "https://api.github.com/users/thomas-reineking-by/events{/privacy}",
"followers_url": "https://api.github.com/users/thomas-reineking-by/followers",
"following_url": "https://api.github.com/users/thomas-reineking-by/following{/other_user}",
"gists_url": "https://api.github.com/users/thomas-reineking-by/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/thomas-reineking-by",
"id": 58076869,
"login": "thomas-reineking-by",
"node_id": "MDQ6VXNlcjU4MDc2ODY5",
"organizations_url": "https://api.github.com/users/thomas-reineking-by/orgs",
"received_events_url": "https://api.github.com/users/thomas-reineking-by/received_events",
"repos_url": "https://api.github.com/users/thomas-reineking-by/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/thomas-reineking-by/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thomas-reineking-by/subscriptions",
"type": "User",
"url": "https://api.github.com/users/thomas-reineking-by"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 5
| 2020-02-13T10:47:13Z
| 2020-02-23T15:02:17Z
| 2020-02-23T15:02:17Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
import numpy as np
df = pd.DataFrame({"GROUP": 0, "VALUE": [1.0, np.nan]})
df.groupby("GROUP")["VALUE"].nunique()
print(df)
```
#### Problem description
Original dataframe is modified:
```
GROUP VALUE
0 0 1.000000e+00
1 0 -9.223372e+18
```
Issue seems to have been introduced in version 1.0.0, 0.25.3 works as expected.
#### Expected Output
Original dataframe should not be modified.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.6.final.0
python-bits : 64
OS : Linux
OS-release : 4.9.87-linuxkit-aufs
machine : x86_64
processor :
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.1
numpy : 1.17.2
pytz : 2019.3
dateutil : 2.8.1
pip : 19.2.3
setuptools : 41.2.0
Cython : 0.29.13
pytest : 5.2.1
hypothesis : 4.23.0
sphinx : 1.7.9
blosc : None
feather : None
xlsxwriter : 1.2.2
lxml.etree : 4.4.1
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.8.2 (dt dec pq3 ext lo64)
jinja2 : 2.10.3
IPython : 7.9.0
pandas_datareader: None
bs4 : None
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.4.1
matplotlib : 3.1.1
numexpr : 2.7.0
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 0.13.0
pytables : None
pytest : 5.2.1
pyxlsb : None
s3fs : None
scipy : 1.2.1
sqlalchemy : 1.3.11
tables : None
tabulate : 0.8.5
xarray : None
xlrd : None
xlwt : None
xlsxwriter : 1.2.2
numba : 0.45.1
</details>
|
{
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31950/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31950/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31951
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31951/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31951/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31951/events
|
https://github.com/pandas-dev/pandas/issues/31951
| 564,718,539
|
MDU6SXNzdWU1NjQ3MTg1Mzk=
| 31,951
|
merge coerces to left dtype even with how='right'
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
] |
open
| false
| null |
[] | null | 0
| 2020-02-13T14:25:46Z
| 2021-07-28T05:39:52Z
| null |
MEMBER
| null |
#### Code Sample, a copy-pastable example if possible
```python
>>> import pandas as pd
>>> df1 = pd.DataFrame({'a': [1]})
>>> df2 = pd.DataFrame({'a': [1.0]})
>>> df1.merge(df2, on='a')
>>> df1.merge(df2, on='a', how='left')
a
0 1
>>> df1.merge(df2, on='a', how='right')
a
0 1
```
#### Problem description
I don't know if this is an issue, it's just something I noticed while working on #31278 . The right value `1.0` gets coerced to the dtype of the left dataframe when using `how='left'`, and I would have expected the left value `1` to get coerced to the dtype of the right dataframe when using `how='right'`
#### Expected Output
```
>>> df1.merge(df2, on='a', how='right')
a
0 1.0
```
#### Output of ``pd.show_versions()``
<details>
I'm on the master branch, here's what `pd.show_versions()` shows:
/home/SERILOCAL/m.gorelli/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/fastparquet/dataframe.py:5: FutureWarning: pandas.core.index is deprecated and will be removed in a future version. The public classes are available in the top-level namespace.
from pandas.core.index import CategoricalIndex, RangeIndex, Index, MultiIndex
INSTALLED VERSIONS
------------------
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
</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/31951/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31951/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31952
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31952/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31952/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31952/events
|
https://github.com/pandas-dev/pandas/issues/31952
| 564,721,268
|
MDU6SXNzdWU1NjQ3MjEyNjg=
| 31,952
|
Multiline pd.eval() seems to be broken
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/32873756?v=4",
"events_url": "https://api.github.com/users/resposit/events{/privacy}",
"followers_url": "https://api.github.com/users/resposit/followers",
"following_url": "https://api.github.com/users/resposit/following{/other_user}",
"gists_url": "https://api.github.com/users/resposit/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/resposit",
"id": 32873756,
"login": "resposit",
"node_id": "MDQ6VXNlcjMyODczNzU2",
"organizations_url": "https://api.github.com/users/resposit/orgs",
"received_events_url": "https://api.github.com/users/resposit/received_events",
"repos_url": "https://api.github.com/users/resposit/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/resposit/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/resposit/subscriptions",
"type": "User",
"url": "https://api.github.com/users/resposit"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "f3afff",
"default": false,
"description": "pd.eval, query",
"id": 1631985267,
"name": "expressions",
"node_id": "MDU6TGFiZWwxNjMxOTg1MjY3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/expressions"
}
] |
open
| false
| null |
[] | null | 5
| 2020-02-13T14:29:44Z
| 2020-02-13T16:59:47Z
| null |
NONE
| null |
#### Code Sample:
```python
In [93]: df
Out[93]:
A B
0 1 2
1 2 3
2 3 4
3 4 5
In [102]: pd.eval("""A = df.A - df.B
...: B = df.A + df.B
...: """,target=pd.DataFrame())
```
#### Problem description
```python
....
/usr/local/lib64/python3.6/site-packages/pandas/core/computation/scope.py in resolve(self, key, is_local)
201 from pandas.core.computation.ops import UndefinedVariableError
202
--> 203 raise UndefinedVariableError(key, is_local)
204
205 def swapkey(self, old_key: str, new_key: str, new_value=None):
UndefinedVariableError: name 'df' is not defined
```
#### Expected Output
```python
Out[106]:
A B
0 -1 1
1 -1 2
2 -1 3
3 -1 4
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.8.final.0
python-bits : 64
OS : Linux
OS-release : 3.10.0-1062.9.1.el7.x86_64
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.0
pip : 9.0.3
setuptools : 45.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.0
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.12.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.1.2
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31952/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31952/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31953
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31953/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31953/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31953/events
|
https://github.com/pandas-dev/pandas/pull/31953
| 564,732,304
|
MDExOlB1bGxSZXF1ZXN0Mzc0OTA4NDMw
| 31,953
|
CLN: index related attributes on Series/DataFrame
|
{
"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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-02-13T14:47:06Z
| 2020-02-14T21:50:48Z
| 2020-02-14T01:07:53Z
|
CONTRIBUTOR
| null |
Followup to #31126. IMO the current approach to adding the index related class attributes is too indirect and therefore unnecessary difficult to follow. Just adding the class attributes directly on the relevant class makes reading the code easier, IMO.
Notice that the types are already defined in pandas/core/generic.py:304-316.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31953/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31953/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31953.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31953",
"merged_at": "2020-02-14T01:07:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31953.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31953"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31954
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31954/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31954/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31954/events
|
https://github.com/pandas-dev/pandas/issues/31954
| 564,806,342
|
MDU6SXNzdWU1NjQ4MDYzNDI=
| 31,954
|
BUG: "cannot reindex from duplicate axis" thrown using unique indexes, duplicated column names and a specific numpy array values
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/22582189?v=4",
"events_url": "https://api.github.com/users/igorluppi/events{/privacy}",
"followers_url": "https://api.github.com/users/igorluppi/followers",
"following_url": "https://api.github.com/users/igorluppi/following{/other_user}",
"gists_url": "https://api.github.com/users/igorluppi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/igorluppi",
"id": 22582189,
"login": "igorluppi",
"node_id": "MDQ6VXNlcjIyNTgyMTg5",
"organizations_url": "https://api.github.com/users/igorluppi/orgs",
"received_events_url": "https://api.github.com/users/igorluppi/received_events",
"repos_url": "https://api.github.com/users/igorluppi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/igorluppi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/igorluppi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/igorluppi"
}
|
[
{
"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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/42247511?v=4",
"events_url": "https://api.github.com/users/GabrielSimonetto/events{/privacy}",
"followers_url": "https://api.github.com/users/GabrielSimonetto/followers",
"following_url": "https://api.github.com/users/GabrielSimonetto/following{/other_user}",
"gists_url": "https://api.github.com/users/GabrielSimonetto/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/GabrielSimonetto",
"id": 42247511,
"login": "GabrielSimonetto",
"node_id": "MDQ6VXNlcjQyMjQ3NTEx",
"organizations_url": "https://api.github.com/users/GabrielSimonetto/orgs",
"received_events_url": "https://api.github.com/users/GabrielSimonetto/received_events",
"repos_url": "https://api.github.com/users/GabrielSimonetto/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/GabrielSimonetto/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GabrielSimonetto/subscriptions",
"type": "User",
"url": "https://api.github.com/users/GabrielSimonetto"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/42247511?v=4",
"events_url": "https://api.github.com/users/GabrielSimonetto/events{/privacy}",
"followers_url": "https://api.github.com/users/GabrielSimonetto/followers",
"following_url": "https://api.github.com/users/GabrielSimonetto/following{/other_user}",
"gists_url": "https://api.github.com/users/GabrielSimonetto/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/GabrielSimonetto",
"id": 42247511,
"login": "GabrielSimonetto",
"node_id": "MDQ6VXNlcjQyMjQ3NTEx",
"organizations_url": "https://api.github.com/users/GabrielSimonetto/orgs",
"received_events_url": "https://api.github.com/users/GabrielSimonetto/received_events",
"repos_url": "https://api.github.com/users/GabrielSimonetto/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/GabrielSimonetto/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GabrielSimonetto/subscriptions",
"type": "User",
"url": "https://api.github.com/users/GabrielSimonetto"
}
] |
{
"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"
}
| 32
| 2020-02-13T16:33:54Z
| 2020-12-08T15:58:34Z
| 2020-12-08T15:58:34Z
|
NONE
| null |
#### Code Sample
```
import pandas
import numpy as np
a = np.array([[1,2],[3,4]])
# DO NOT WORKS
b = np.array([[0.5,6],[7,8]])
# b = np.array([[.5,6],[7,8]]) # The same problem
# This one works fine:
# b = np.array([[5,6],[7,8]])
dfA = pandas.DataFrame(a)
# This works fine EVEN using .5, because the columns name is different
# dfA = pandas.DataFrame(a, columns=['a','b'])
dfB = pandas.DataFrame(b)
df_new = pandas.concat([dfA, dfB], axis = 1)
print(df_new[df_new > 5])
```
#### Problem description
It has a bug that combines numpy specific values and duplicated DataFrame column names when it's used a select operation, such as `df[df > 5]`. A exception is thrown saying "cannot reindex from duplicate axis", however It should not be, because:
- The DataFrame has no duplicated indexes ( `df.index.is_unique` is `True`)
- The DataFrame has duplicated column names, but should not be a problem when we apply the selection operation, such as `df_new[df_new > 5]`
- The DataFrame uses `float `or `int` numpy values, so it should not change the behavior of the code
**However** the values in the numpy array DO changes the behavior of the DataFrame selection, if the DataFrame has duplicated column names.
#### Expected Output
```
0 1 0 1
0 NaN NaN NaN 6
1 NaN NaN 7.0 8
```
#### Current Output
```
~/.local/lib/python3.6/site-packages/pandas/core/indexes/base.py in _can_reindex(self, indexer)
3097 # trying to reindex on an axis with duplicates
3098 if not self.is_unique and len(indexer):
-> 3099 raise ValueError("cannot reindex from a duplicate axis")
3100
3101 def reindex(self, target, method=None, level=None, limit=None, tolerance=None):
ValueError: cannot reindex from a duplicate axis
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.9.final.0
python-bits : 64
OS : Linux
OS-release : 5.3.0-28-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : pt_BR.UTF-8
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : 2.3.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.12.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.3
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : 3.6.1
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31954/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31954/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31955
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31955/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31955/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31955/events
|
https://github.com/pandas-dev/pandas/pull/31955
| 564,829,913
|
MDExOlB1bGxSZXF1ZXN0Mzc0OTg5MzA1
| 31,955
|
add eval examples
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "f3afff",
"default": false,
"description": "pd.eval, query",
"id": 1631985267,
"name": "expressions",
"node_id": "MDU6TGFiZWwxNjMxOTg1MjY3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/expressions"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-13T17:11:26Z
| 2020-02-25T17:11:43Z
| 2020-02-14T01:21:42Z
|
MEMBER
| null |
xref #31952
Screenshot for `pandas.eval`:

Screenshot for `pandas.DataFrame.eval`:

|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31955/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31955/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31955.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31955",
"merged_at": "2020-02-14T01:21:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31955.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31955"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31956
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31956/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31956/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31956/events
|
https://github.com/pandas-dev/pandas/pull/31956
| 564,854,175
|
MDExOlB1bGxSZXF1ZXN0Mzc1MDA4ODg2
| 31,956
|
CLN: D412: No blank lines allowed between a section header and its content
|
{
"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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-13T17:56:02Z
| 2020-02-13T20:15:35Z
| 2020-02-13T20:06:57Z
|
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/31956/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31956/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31956.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31956",
"merged_at": "2020-02-13T20:06:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31956.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31956"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31957
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31957/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31957/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31957/events
|
https://github.com/pandas-dev/pandas/issues/31957
| 564,854,650
|
MDU6SXNzdWU1NjQ4NTQ2NTA=
| 31,957
|
to_sql defaults to cp1252 on Windows 10 instead of using UTF-8 as per dataframe and Oracle
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6196390?v=4",
"events_url": "https://api.github.com/users/Code4SAFrankie/events{/privacy}",
"followers_url": "https://api.github.com/users/Code4SAFrankie/followers",
"following_url": "https://api.github.com/users/Code4SAFrankie/following{/other_user}",
"gists_url": "https://api.github.com/users/Code4SAFrankie/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Code4SAFrankie",
"id": 6196390,
"login": "Code4SAFrankie",
"node_id": "MDQ6VXNlcjYxOTYzOTA=",
"organizations_url": "https://api.github.com/users/Code4SAFrankie/orgs",
"received_events_url": "https://api.github.com/users/Code4SAFrankie/received_events",
"repos_url": "https://api.github.com/users/Code4SAFrankie/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Code4SAFrankie/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Code4SAFrankie/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Code4SAFrankie"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
},
{
"color": "fbca04",
"default": false,
"description": "Windows OS",
"id": 57186974,
"name": "Windows",
"node_id": "MDU6TGFiZWw1NzE4Njk3NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows"
}
] |
closed
| false
| null |
[] | null | 5
| 2020-02-13T17:57:00Z
| 2020-05-25T16:47:05Z
| 2020-05-25T16:47:05Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
# Your code here
import pandas as pd
import dask.dataframe as dd
from dask.diagnostics import ProgressBar
from dask.distributed import Client
client = Client('192.168.1.33:8786', processes=True)
path = "D:\\Downloads\\Wikipedia\\Yago\\"
dfFacts = dd.read_parquet(path + "yagoFacts", engine='pyarrow', index=False, encoding="utf-8")
dfFacts = dfFacts.compute()
import cx_Oracle
from sqlalchemy import types, create_engine
conn = create_engine('oracle+cx_oracle://hr:password@localhost:1521/?service_name=XEPDB1', max_identifier_length=128)
dtyp = {c:types.VARCHAR(dfFacts[c].str.len().max()) for c in dfFacts.columns.tolist()}
dfFacts.to_sql('yago_facts', conn, if_exists='replace', dtype=dtyp, index=False)
```
#### Problem description
Pandas to_sql seems to default to cp1252 on Windows 10 instead of using UTF-8 even though the dataframe and Oracle database (AL32UTF8) uses UTF-8. It fails with the following error:
```
---------------------------------------------------------------------------
UnicodeEncodeError Traceback (most recent call last)
<ipython-input-27-17445fb6d38f> in <module>
----> 1 dfFacts.to_sql('yago_facts', conn, if_exists='replace', dtype=dtyp, index=False)
~\AppData\Roaming\Python\Python37\site-packages\pandas\core\generic.py in to_sql(self, name, con, schema, if_exists, index, index_label, chunksize, dtype, method)
2710 chunksize=chunksize,
2711 dtype=dtype,
-> 2712 method=method,
2713 )
2714
~\AppData\Roaming\Python\Python37\site-packages\pandas\io\sql.py in to_sql(frame, name, con, schema, if_exists, index, index_label, chunksize, dtype, method)
516 chunksize=chunksize,
517 dtype=dtype,
--> 518 method=method,
519 )
520
~\AppData\Roaming\Python\Python37\site-packages\pandas\io\sql.py in to_sql(self, frame, name, if_exists, index, index_label, schema, chunksize, dtype, method)
1318 )
1319 table.create()
-> 1320 table.insert(chunksize, method=method)
1321 if not name.isdigit() and not name.islower():
1322 # check for potentially case sensitivity issues (GH7815)
~\AppData\Roaming\Python\Python37\site-packages\pandas\io\sql.py in insert(self, chunksize, method)
754
755 chunk_iter = zip(*[arr[start_i:end_i] for arr in data_list])
--> 756 exec_insert(conn, keys, chunk_iter)
757
758 def _query_iterator(
~\AppData\Roaming\Python\Python37\site-packages\pandas\io\sql.py in _execute_insert(self, conn, keys, data_iter)
668 """
669 data = [dict(zip(keys, row)) for row in data_iter]
--> 670 conn.execute(self.table.insert(), data)
671
672 def _execute_insert_multi(self, conn, keys, data_iter):
e:\wpy-3710\python-3.7.1.amd64\lib\site-packages\sqlalchemy\engine\base.py in execute(self, object_, *multiparams, **params)
980 raise exc.ObjectNotExecutableError(object_)
981 else:
--> 982 return meth(self, multiparams, params)
983
984 def _execute_function(self, func, multiparams, params):
e:\wpy-3710\python-3.7.1.amd64\lib\site-packages\sqlalchemy\sql\elements.py in _execute_on_connection(self, connection, multiparams, params)
291 def _execute_on_connection(self, connection, multiparams, params):
292 if self.supports_execution:
--> 293 return connection._execute_clauseelement(self, multiparams, params)
294 else:
295 raise exc.ObjectNotExecutableError(self)
e:\wpy-3710\python-3.7.1.amd64\lib\site-packages\sqlalchemy\engine\base.py in _execute_clauseelement(self, elem, multiparams, params)
1099 distilled_params,
1100 compiled_sql,
-> 1101 distilled_params,
1102 )
1103 if self._has_events or self.engine._has_events:
e:\wpy-3710\python-3.7.1.amd64\lib\site-packages\sqlalchemy\engine\base.py in _execute_context(self, dialect, constructor, statement, parameters, *args)
1248 except BaseException as e:
1249 self._handle_dbapi_exception(
-> 1250 e, statement, parameters, cursor, context
1251 )
1252
e:\wpy-3710\python-3.7.1.amd64\lib\site-packages\sqlalchemy\engine\base.py in _handle_dbapi_exception(self, e, statement, parameters, cursor, context)
1476 util.raise_from_cause(sqlalchemy_exception, exc_info)
1477 else:
-> 1478 util.reraise(*exc_info)
1479
1480 finally:
e:\wpy-3710\python-3.7.1.amd64\lib\site-packages\sqlalchemy\util\compat.py in reraise(tp, value, tb, cause)
151 if value.__traceback__ is not tb:
152 raise value.with_traceback(tb)
--> 153 raise value
154
155 def u(s):
e:\wpy-3710\python-3.7.1.amd64\lib\site-packages\sqlalchemy\engine\base.py in _execute_context(self, dialect, constructor, statement, parameters, *args)
1224 if not evt_handled:
1225 self.dialect.do_executemany(
-> 1226 cursor, statement, parameters, context
1227 )
1228 elif not parameters and context.no_parameters:
e:\wpy-3710\python-3.7.1.amd64\lib\site-packages\sqlalchemy\dialects\oracle\cx_oracle.py in do_executemany(self, cursor, statement, parameters, context)
1126 if isinstance(parameters, tuple):
1127 parameters = list(parameters)
-> 1128 cursor.executemany(statement, parameters)
1129
1130 def do_begin_twophase(self, connection, xid):
e:\wpy-3710\python-3.7.1.amd64\lib\encodings\cp1252.py in encode(self, input, errors)
10
11 def encode(self,input,errors='strict'):
---> 12 return codecs.charmap_encode(input,errors,encoding_table)
13
14 def decode(self,input,errors='strict'):
UnicodeEncodeError: 'charmap' codec can't encode character '\u010d' in position 11: character maps to <undefined>
```
#### Expected Output
No errors with dataframe loaded in Oracle table.
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
```
E:\WPy-3710\python-3.7.1.amd64\lib\site-packages\xarray\core\merge.py:10: FutureWarning: The Panel class is removed from pandas. Accessing it from the top-level namespace will also be removed in the next version
PANDAS_TYPES = (pd.Series, pd.DataFrame, pd.Panel)
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.1.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 0.25.3
numpy : 1.18.1
pytz : 2018.6
dateutil : 2.7.5
pip : 20.0.2
setuptools : 41.4.0
Cython : 0.29.13
pytest : 5.3.1
hypothesis : 3.82.1
sphinx : 2.2.1
blosc : 1.6.1
feather : 0.4.0
xlsxwriter : 1.1.2
lxml.etree : 4.3.4
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.7.4 (dt dec pq3 ext lo64)
jinja2 : 2.10.1
IPython : 7.6.1
pandas_datareader: None
bs4 : 4.6.3
bottleneck : 1.2.1
fastparquet : 0.3.2
gcsfs : None
lxml.etree : 4.3.4
matplotlib : 3.0.3
numexpr : 2.6.8
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 0.15.1
pytables : None
s3fs : None
scipy : 1.3.1
sqlalchemy : 1.3.13
tables : 3.4.4
xarray : 0.11.3
xlrd : 1.1.0
xlwt : None
xlsxwriter : 1.1.2
```
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31957/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31957/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31958
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31958/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31958/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31958/events
|
https://github.com/pandas-dev/pandas/pull/31958
| 564,863,633
|
MDExOlB1bGxSZXF1ZXN0Mzc1MDE2NTEy
| 31,958
|
CLN: D409: Section underline should match the length of its name
|
{
"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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-02-13T18:14:27Z
| 2020-02-13T20:19:08Z
| 2020-02-13T20:07:34Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31958/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31958/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31958.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31958",
"merged_at": "2020-02-13T20:07:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31958.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31958"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31959
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31959/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31959/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31959/events
|
https://github.com/pandas-dev/pandas/pull/31959
| 564,874,148
|
MDExOlB1bGxSZXF1ZXN0Mzc1MDI0ODk5
| 31,959
|
CLN: D411: Missing blank line before section
|
{
"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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-13T18:35:14Z
| 2020-02-13T20:20:48Z
| 2020-02-13T20:10:25Z
|
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/31959/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31959/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31959.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31959",
"merged_at": "2020-02-13T20:10:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31959.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31959"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31960
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31960/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31960/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31960/events
|
https://github.com/pandas-dev/pandas/pull/31960
| 564,884,063
|
MDExOlB1bGxSZXF1ZXN0Mzc1MDMzMTUw
| 31,960
|
CLN: remove blocking return
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-13T18:53:29Z
| 2020-02-19T10:49:57Z
| 2020-02-13T19:35:30Z
|
MEMBER
| null |
just noticed a `return` statement in the middle of a test that prevents it from being executed. This was added in ##23752
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31960/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31960/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31960.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31960",
"merged_at": "2020-02-13T19:35:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31960.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31960"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31961
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31961/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31961/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31961/events
|
https://github.com/pandas-dev/pandas/pull/31961
| 564,884,916
|
MDExOlB1bGxSZXF1ZXN0Mzc1MDMzODA0
| 31,961
|
CLN: D414: Section has no content
|
{
"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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-02-13T18:54:56Z
| 2020-02-13T20:31:15Z
| 2020-02-13T20:11:14Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31961/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31961/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31961.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31961",
"merged_at": "2020-02-13T20:11:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31961.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31961"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31962
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31962/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31962/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31962/events
|
https://github.com/pandas-dev/pandas/pull/31962
| 564,923,549
|
MDExOlB1bGxSZXF1ZXN0Mzc1MDY1Njk2
| 31,962
|
REF: remove _convert_scalar_indexer
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 8
| 2020-02-13T20:11:32Z
| 2020-03-03T15:53:13Z
| 2020-03-03T15:27:18Z
|
MEMBER
| null |
This sits on top of #31867, so is partially a demonstration of how much complication is caused by our inconsistent error-raising.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31962/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31962/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31962.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31962",
"merged_at": "2020-03-03T15:27:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31962.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31962"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31963
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31963/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31963/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31963/events
|
https://github.com/pandas-dev/pandas/pull/31963
| 564,925,523
|
MDExOlB1bGxSZXF1ZXN0Mzc1MDY3Mjg5
| 31,963
|
CLN: 29547 replace old string formatting 4
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13339148?v=4",
"events_url": "https://api.github.com/users/3vts/events{/privacy}",
"followers_url": "https://api.github.com/users/3vts/followers",
"following_url": "https://api.github.com/users/3vts/following{/other_user}",
"gists_url": "https://api.github.com/users/3vts/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/3vts",
"id": 13339148,
"login": "3vts",
"node_id": "MDQ6VXNlcjEzMzM5MTQ4",
"organizations_url": "https://api.github.com/users/3vts/orgs",
"received_events_url": "https://api.github.com/users/3vts/received_events",
"repos_url": "https://api.github.com/users/3vts/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/3vts/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/3vts/subscriptions",
"type": "User",
"url": "https://api.github.com/users/3vts"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-13T20:15:24Z
| 2020-02-21T01:30:00Z
| 2020-02-14T01:04:47Z
|
CONTRIBUTOR
| null |
I splitted PR #31844 in batches, this is the fourth
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547](https://github.com/pandas-dev/pandas/issues/29547). I may have missed something so is a good idea to double check just in case
- [ x ] tests added / passed
- [ x ] passes `black pandas`
- [ x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31963/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31963/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31963.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31963",
"merged_at": "2020-02-14T01:04:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31963.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31963"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31964
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31964/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31964/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31964/events
|
https://github.com/pandas-dev/pandas/issues/31964
| 564,971,493
|
MDU6SXNzdWU1NjQ5NzE0OTM=
| 31,964
|
Reindex on nearest datetime gives UFuncTypeError - subtract with dtype('<M8[ns]') and dtype('O')
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1429281?v=4",
"events_url": "https://api.github.com/users/andrewcooke/events{/privacy}",
"followers_url": "https://api.github.com/users/andrewcooke/followers",
"following_url": "https://api.github.com/users/andrewcooke/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewcooke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/andrewcooke",
"id": 1429281,
"login": "andrewcooke",
"node_id": "MDQ6VXNlcjE0MjkyODE=",
"organizations_url": "https://api.github.com/users/andrewcooke/orgs",
"received_events_url": "https://api.github.com/users/andrewcooke/received_events",
"repos_url": "https://api.github.com/users/andrewcooke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/andrewcooke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewcooke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/andrewcooke"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 6
| 2020-02-13T21:51:23Z
| 2020-02-25T10:13:26Z
| 2020-02-21T18:36:09Z
|
NONE
| null |
#### Code Sample
```python
import pandas as pd
print(pd.__version__)
i1 = pd.DatetimeIndex(['2016-06-26 14:27:26+00:00'])
i2 = pd.DatetimeIndex(['2016-07-04 14:00:59+00:00'])
f2 = pd.DataFrame(index=i2)
f2.reindex(i1, method='nearest')
```
#### Problem description
Running the above code gives:
```
Python 3.7.4 (default, Jul 27 2019, 21:25:02)
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas as pd
>>> print(pd.__version__)
1.0.1
>>> i1 = pd.DatetimeIndex(['2016-06-26 14:27:26+00:00'])
>>> i2 = pd.DatetimeIndex(['2016-07-04 14:00:59+00:00'])
>>> f2 = pd.DataFrame(index=i2)
>>> f2.reindex(i1, method='nearest')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/andrew/project/ch2/choochoo/py/env/lib/python3.7/site-packages/pandas/util/_decorators.py", line 227, in wrapper
return func(*args, **kwargs)
File "/home/andrew/project/ch2/choochoo/py/env/lib/python3.7/site-packages/pandas/core/frame.py", line 3856, in reindex
return self._ensure_type(super().reindex(**kwargs))
File "/home/andrew/project/ch2/choochoo/py/env/lib/python3.7/site-packages/pandas/core/generic.py", line 4544, in reindex
axes, level, limit, tolerance, method, fill_value, copy
File "/home/andrew/project/ch2/choochoo/py/env/lib/python3.7/site-packages/pandas/core/frame.py", line 3744, in _reindex_axes
index, method, copy, level, fill_value, limit, tolerance
File "/home/andrew/project/ch2/choochoo/py/env/lib/python3.7/site-packages/pandas/core/frame.py", line 3760, in _reindex_index
new_index, method=method, level=level, limit=limit, tolerance=tolerance
File "/home/andrew/project/ch2/choochoo/py/env/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 3145, in reindex
target, method=method, limit=limit, tolerance=tolerance
File "/home/andrew/project/ch2/choochoo/py/env/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 2740, in get_indexer
indexer = self._get_nearest_indexer(target, limit, tolerance)
File "/home/andrew/project/ch2/choochoo/py/env/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 2821, in _get_nearest_indexer
left_distances = abs(self.values[left_indexer] - target)
numpy.core._exceptions.UFuncTypeError: ufunc 'subtract' cannot use operands with types dtype('<M8[ns]') and dtype('O')
```
This is a problem because it occurs in a larger dataset that I need to reindex. It used to work fine with earlier versions of Pandas (although I do not know which, sorry).
#### Expected Output
Expected output would be something like
```
>>> f2.reindex(i1)
Empty DataFrame
Columns: []
Index: [2016-06-26 14:27:26+00:00]
```
#### Output of ``pd.show_versions()``
<details>
```
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Linux
OS-release : 4.12.14-lp151.28.36-default
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_GB.UTF-8
LOCALE : en_GB.UTF-8
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 40.8.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.12.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.3
numexpr : None
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.13
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
```
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31964/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31964/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31965
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31965/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31965/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31965/events
|
https://github.com/pandas-dev/pandas/issues/31965
| 564,973,376
|
MDU6SXNzdWU1NjQ5NzMzNzY=
| 31,965
|
drawstyle with "step" or "step-mid" display error
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/145117?v=4",
"events_url": "https://api.github.com/users/mankoff/events{/privacy}",
"followers_url": "https://api.github.com/users/mankoff/followers",
"following_url": "https://api.github.com/users/mankoff/following{/other_user}",
"gists_url": "https://api.github.com/users/mankoff/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mankoff",
"id": 145117,
"login": "mankoff",
"node_id": "MDQ6VXNlcjE0NTExNw==",
"organizations_url": "https://api.github.com/users/mankoff/orgs",
"received_events_url": "https://api.github.com/users/mankoff/received_events",
"repos_url": "https://api.github.com/users/mankoff/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mankoff/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mankoff/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mankoff"
}
|
[
{
"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 |
[] | null | 2
| 2020-02-13T21:55:28Z
| 2020-05-22T14:36:26Z
| 2020-05-22T14:36:26Z
|
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
df = pd.DataFrame(index=pd.date_range(start='2020-01-01', periods=3), data=[1,2,3])
df.plot(drawstyle='steps')
df.plot(drawstyle='steps-mid')
```
`df` is:
```
| | 0 |
|---------------------+---|
| 2020-01-01 00:00:00 | 1 |
| 2020-01-02 00:00:00 | 2 |
| 2020-01-03 00:00:00 | 3 |
```
#### Problem description
For the first plot (`step`), the first data point (value 1) is not displayed, and I question the x-axis labeling. It implies that the value throughout the day of 01 Jan is 2, while the datafram suggests the value is 1 (assuming the value is carried forward from the timestamp until the next observation).


For the second plot (`step-mid`), all data is visible, but the x-axis is incorrect. It implies that the value of 1 that began on 01 Jan changed midway through the day. Visually, both values 1 and 3 are graphically underrepresented and half-width, while value 2 is full-width.
I would expect that when `drawstyle="step"` is used, that the graph looks like this:
```
import pandas as pd
df = pd.DataFrame(index=pd.date_range(start='2020-01-01', periods=3), data=[1,2,3])
df.loc[df.index[-1] + (df.index[-1]-df.index[-2])] = df.iloc[-1]
df.plot(drawstyle='steps-post')
```

#### Expected Output
A graph that shows all data with correct x-axis labels.
#### Output of ``pd.show_versions()``
<details>
pd.show_versions()
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.7.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-76-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.3
numpy : 1.17.3
pytz : 2018.7
dateutil : 2.7.5
pip : 18.1
setuptools : 40.5.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 : 2.8.1 (dt dec pq3 ext lo64)
jinja2 : 2.10
IPython : 7.1.1
pandas_datareader: None
bs4 : None
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.0.3
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.1.0
sqlalchemy : 1.2.15
tables : None
xarray : 0.14.1
xlrd : 1.2.0
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/31965/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31965/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31966
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31966/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31966/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31966/events
|
https://github.com/pandas-dev/pandas/issues/31966
| 565,026,811
|
MDU6SXNzdWU1NjUwMjY4MTE=
| 31,966
|
sluggish `read_pickle` on pandas 1.0 ?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13442101?v=4",
"events_url": "https://api.github.com/users/elikesprogramming/events{/privacy}",
"followers_url": "https://api.github.com/users/elikesprogramming/followers",
"following_url": "https://api.github.com/users/elikesprogramming/following{/other_user}",
"gists_url": "https://api.github.com/users/elikesprogramming/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/elikesprogramming",
"id": 13442101,
"login": "elikesprogramming",
"node_id": "MDQ6VXNlcjEzNDQyMTAx",
"organizations_url": "https://api.github.com/users/elikesprogramming/orgs",
"received_events_url": "https://api.github.com/users/elikesprogramming/received_events",
"repos_url": "https://api.github.com/users/elikesprogramming/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/elikesprogramming/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elikesprogramming/subscriptions",
"type": "User",
"url": "https://api.github.com/users/elikesprogramming"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
},
{
"color": "6c1cdb",
"default": false,
"description": "read_pickle, to_pickle",
"id": 1625435109,
"name": "IO Pickle",
"node_id": "MDU6TGFiZWwxNjI1NDM1MTA5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Pickle"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-02-14T00:17:45Z
| 2020-07-20T16:09:46Z
| 2020-07-20T16:09:36Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
auths = pd.read_pickle('auths.pkl')
```
#### Problem description
Suddenly it takes 14-18 minutes to read a mid-size (2.1 GB) pickle file after upgrading to pandas 1.0.
Pandas 0.25 can read the very same file in 90 seconds (the file was created using pd.to_pickle a couple of months ago using pandas 0.25).
To try to make sure it has to do with Pandas 1.0, I created a couple of minimal virtual environments, one with latest pandas and one with 0.25. (I am using conda)
```python
conda create -n min_env_101 -y
conda activate min_env_101
conda install -y pandas
```
```python
conda create -n min_env_025 -y
conda activate min_env_025
conda install -y pandas=0.25.1
```
You can see the output of `pd.show_versions()` below. I noticed the latest pandas was installed along python 3.8.1, and pandas 0.25 with python 3.7.6, so I created another virtual environment with latest pandas, but making sure it uses python 3.7.6.
```python
conda create -n min_env_101_py376 python=3.7.6 -y
conda activate min_env_101_py376
conda install -y pandas
```
Then, reading the pickle file takes more than 14 minutes in the virtual environments with pandas 1.0, and just 93 seconds with pandas 0.25.
I checked the issues already reported and did not find anything similar. At some point I thought it was related to [this one](https://github.com/pandas-dev/pandas/issues/29542), but it cannot be since that one was using pandas 0.25.
So I am not sure what is going on (I did not see in pandas 1.0 release notes major changes related to pickle, but maybe I missed something?) and what to do about it.
EDIT: I cannot share the file and I guess you would not accept it either, 'cause reading pickle files may not be safe.
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
**virtual environment with pandas 0.25.1**
--- 93.72341346740723 seconds ---
>>>
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 0.25.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.2.0.post20200210
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>
<details>
[paste the output of ``pd.show_versions()`` here below this line]
**virtual environment with pandas 1.0.1**
--- 854.9136216640472 seconds ---
>>>
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.1.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 : English_United States.1252
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.2.0.post20200210
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
<details>
[paste the output of ``pd.show_versions()`` here below this line]
**virtual environment with pandas 1.0.1, making sure it uses python 3.7.6**
--- 1087.5447969436646 seconds ---
>>>
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.2.0.post20200210
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31966/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31966/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31967
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31967/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31967/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31967/events
|
https://github.com/pandas-dev/pandas/pull/31967
| 565,046,702
|
MDExOlB1bGxSZXF1ZXN0Mzc1MTY3MzQy
| 31,967
|
CLN: 29547 replace old string formatting 5
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13339148?v=4",
"events_url": "https://api.github.com/users/3vts/events{/privacy}",
"followers_url": "https://api.github.com/users/3vts/followers",
"following_url": "https://api.github.com/users/3vts/following{/other_user}",
"gists_url": "https://api.github.com/users/3vts/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/3vts",
"id": 13339148,
"login": "3vts",
"node_id": "MDQ6VXNlcjEzMzM5MTQ4",
"organizations_url": "https://api.github.com/users/3vts/orgs",
"received_events_url": "https://api.github.com/users/3vts/received_events",
"repos_url": "https://api.github.com/users/3vts/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/3vts/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/3vts/subscriptions",
"type": "User",
"url": "https://api.github.com/users/3vts"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-14T01:22:43Z
| 2020-02-21T01:29:58Z
| 2020-02-14T16:54:33Z
|
CONTRIBUTOR
| null |
I splitted PR #31844 in batches, this is the fifth
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547](https://github.com/pandas-dev/pandas/issues/29547). I may have missed something so is a good idea to double check just in case
- [ x ] tests added / passed
- [ x ] passes `black pandas`
- [ x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31967/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31967/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31967.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31967",
"merged_at": "2020-02-14T16:54:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31967.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31967"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31968
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31968/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31968/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31968/events
|
https://github.com/pandas-dev/pandas/pull/31968
| 565,048,289
|
MDExOlB1bGxSZXF1ZXN0Mzc1MTY4NTI4
| 31,968
|
DOC: Use use recommended library over deprecated library
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/823316?v=4",
"events_url": "https://api.github.com/users/martinbjeldbak/events{/privacy}",
"followers_url": "https://api.github.com/users/martinbjeldbak/followers",
"following_url": "https://api.github.com/users/martinbjeldbak/following{/other_user}",
"gists_url": "https://api.github.com/users/martinbjeldbak/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/martinbjeldbak",
"id": 823316,
"login": "martinbjeldbak",
"node_id": "MDQ6VXNlcjgyMzMxNg==",
"organizations_url": "https://api.github.com/users/martinbjeldbak/orgs",
"received_events_url": "https://api.github.com/users/martinbjeldbak/received_events",
"repos_url": "https://api.github.com/users/martinbjeldbak/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/martinbjeldbak/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/martinbjeldbak/subscriptions",
"type": "User",
"url": "https://api.github.com/users/martinbjeldbak"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-14T01:28:20Z
| 2020-02-15T01:52:04Z
| 2020-02-14T02:35:08Z
|
CONTRIBUTOR
| null |
Importing `pandas.io.json.json_normalize` in pandas 1.0.1 gives the following warning
```
FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead
```
This PR updates the documentation here https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.json_normalize.html to use the recommended approach.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31968/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31968/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31968.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31968",
"merged_at": "2020-02-14T02:35:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31968.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31968"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31969
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31969/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31969/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31969/events
|
https://github.com/pandas-dev/pandas/pull/31969
| 565,057,148
|
MDExOlB1bGxSZXF1ZXN0Mzc1MTc1NDg3
| 31,969
|
Update doc decorator for pandas/core/base.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50187675?v=4",
"events_url": "https://api.github.com/users/HH-MWB/events{/privacy}",
"followers_url": "https://api.github.com/users/HH-MWB/followers",
"following_url": "https://api.github.com/users/HH-MWB/following{/other_user}",
"gists_url": "https://api.github.com/users/HH-MWB/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/HH-MWB",
"id": 50187675,
"login": "HH-MWB",
"node_id": "MDQ6VXNlcjUwMTg3Njc1",
"organizations_url": "https://api.github.com/users/HH-MWB/orgs",
"received_events_url": "https://api.github.com/users/HH-MWB/received_events",
"repos_url": "https://api.github.com/users/HH-MWB/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/HH-MWB/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HH-MWB/subscriptions",
"type": "User",
"url": "https://api.github.com/users/HH-MWB"
}
|
[] |
closed
| false
| null |
[] | null | 0
| 2020-02-14T02:01:22Z
| 2020-02-14T02:02:05Z
| 2020-02-14T02:02:05Z
|
CONTRIBUTOR
| null |
- [ ] working on #31942
- [ ] 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/31969/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31969/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31969.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31969",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31969.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31969"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31970
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31970/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31970/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31970/events
|
https://github.com/pandas-dev/pandas/pull/31970
| 565,062,549
|
MDExOlB1bGxSZXF1ZXN0Mzc1MTc5NzIw
| 31,970
|
CLN: @doc - base.py & indexing.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50187675?v=4",
"events_url": "https://api.github.com/users/HH-MWB/events{/privacy}",
"followers_url": "https://api.github.com/users/HH-MWB/followers",
"following_url": "https://api.github.com/users/HH-MWB/following{/other_user}",
"gists_url": "https://api.github.com/users/HH-MWB/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/HH-MWB",
"id": 50187675,
"login": "HH-MWB",
"node_id": "MDQ6VXNlcjUwMTg3Njc1",
"organizations_url": "https://api.github.com/users/HH-MWB/orgs",
"received_events_url": "https://api.github.com/users/HH-MWB/received_events",
"repos_url": "https://api.github.com/users/HH-MWB/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/HH-MWB/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HH-MWB/subscriptions",
"type": "User",
"url": "https://api.github.com/users/HH-MWB"
}
|
[
{
"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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 19
| 2020-02-14T02:20:29Z
| 2020-03-23T21:42:50Z
| 2020-03-17T00:10:28Z
|
CONTRIBUTOR
| null |
- [x] working on #31942
- [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/31970/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31970/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31970.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31970",
"merged_at": "2020-03-17T00:10:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31970.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31970"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31971
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31971/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31971/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31971/events
|
https://github.com/pandas-dev/pandas/issues/31971
| 565,171,762
|
MDU6SXNzdWU1NjUxNzE3NjI=
| 31,971
|
shift() broken for datetime64 when used with fill_value
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/14983438?v=4",
"events_url": "https://api.github.com/users/BayerSe/events{/privacy}",
"followers_url": "https://api.github.com/users/BayerSe/followers",
"following_url": "https://api.github.com/users/BayerSe/following{/other_user}",
"gists_url": "https://api.github.com/users/BayerSe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/BayerSe",
"id": 14983438,
"login": "BayerSe",
"node_id": "MDQ6VXNlcjE0OTgzNDM4",
"organizations_url": "https://api.github.com/users/BayerSe/orgs",
"received_events_url": "https://api.github.com/users/BayerSe/received_events",
"repos_url": "https://api.github.com/users/BayerSe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/BayerSe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BayerSe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/BayerSe"
}
|
[
{
"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": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 10
| 2020-02-14T08:16:24Z
| 2020-03-12T02:26:13Z
| 2020-03-12T02:26:13Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
from pandas.testing import assert_series_equal
dt_series = pd.Series((pd.to_datetime('2020-01-01'), pd.to_datetime('2020-01-02')))
actual_result = dt_series.shift(1, fill_value=0)
expected_result = pd.Series((pd.to_datetime('1970-01-01'), pd.to_datetime('2020-01-01')))
assert_series_equal(actual_result, expected_result)
```
#### Problem description
Above code snippet works on version 0.25.3 but breaks with 1.0.1.
```
print(actual_result)
0 0
1 1577836800000000000
dtype: object
print(expected_result)
0 1970-01-01
1 2020-01-01
dtype: datetime64[ns]
```
```
AssertionError: Attributes of Series are different
Attribute "dtype" are different
[left]: object
[right]: datetime64[ns]
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-72-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.2.0.post20200210
Cython : None
pytest : 5.3.2
hypothesis : None
sphinx : 2.3.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.11.1
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.2
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 0.15.1
pytables : None
pytest : 5.3.2
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.13
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31971/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31971/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31972
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31972/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31972/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31972/events
|
https://github.com/pandas-dev/pandas/issues/31972
| 565,200,984
|
MDU6SXNzdWU1NjUyMDA5ODQ=
| 31,972
|
Boolean diff is slower than float, int diff
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/31596773?v=4",
"events_url": "https://api.github.com/users/JulianWgs/events{/privacy}",
"followers_url": "https://api.github.com/users/JulianWgs/followers",
"following_url": "https://api.github.com/users/JulianWgs/following{/other_user}",
"gists_url": "https://api.github.com/users/JulianWgs/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JulianWgs",
"id": 31596773,
"login": "JulianWgs",
"node_id": "MDQ6VXNlcjMxNTk2Nzcz",
"organizations_url": "https://api.github.com/users/JulianWgs/orgs",
"received_events_url": "https://api.github.com/users/JulianWgs/received_events",
"repos_url": "https://api.github.com/users/JulianWgs/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JulianWgs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JulianWgs/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JulianWgs"
}
|
[
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-02-14T09:20:50Z
| 2020-02-17T13:05:58Z
| 2020-02-17T13:05:58Z
|
NONE
| null |
#### Code Sample
This code in Google Colab (Jupyter Notebook/Lab):
```python
import numpy as np
import pandas as pd
size = int(1e7)
value = np.sin(np.linspace(0, 100, size)) < 0.5
print("Numpy Boolean")
%timeit np.diff(value)
value = value.astype(int)
print("Numpy Integer")
%timeit np.diff(value)
df = pd.Series(np.sin(np.linspace(0, 100, size))) < 0.5
print("Pandas Boolean")
%timeit df.diff()
print("Pandas Integer")
%timeit df.astype(int).diff()
print("Pandas Float")
%timeit df.astype(float).diff()
```
Creates the following output:
```
Numpy Boolean
100 loops, best of 3: 11.8 ms per loop
Numpy Integer
100 loops, best of 3: 19 ms per loop
Pandas Boolean
1 loop, best of 3: 208 ms per loop
Pandas Integer
10 loops, best of 3: 51.7 ms per loop
Pandas Float
10 loops, best of 3: 43.8 ms per loop
```
#### Problem description
The diff function on a boolean series is about four times slower than on an integer or float series. This behavior is not reproducable in numpy, where diff on a boolean series is the fastest. Right now it is even faster to convert the boolean series to integer, do the diff and then convert back to boolean.
#### Expected Output
Boolean diff should be the fastest.
#### Output of ``pd.show_versions()``
Google Colab with pandas 1.0.1 installed.
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.9.final.0
python-bits : 64
OS : Linux
OS-release : 4.14.137+
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.1
numpy : 1.17.5
pytz : 2018.9
dateutil : 2.6.1
pip : 19.3.1
setuptools : 45.1.0
Cython : 0.29.15
pytest : 3.6.4
hypothesis : None
sphinx : 1.8.5
blosc : None
feather : 0.4.0
xlsxwriter : None
lxml.etree : 4.2.6
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.7.6.1 (dt dec pq3 ext lo64)
jinja2 : 2.11.1
IPython : 5.5.0
pandas_datareader: None
bs4 : 4.6.3
bottleneck : 1.3.1
fastparquet : None
gcsfs : None
lxml.etree : 4.2.6
matplotlib : 3.1.3
numexpr : 2.7.1
odfpy : None
openpyxl : 2.5.9
pandas_gbq : 0.11.0
pyarrow : 0.14.1
pytables : None
pytest : 3.6.4
pyxlsb : None
s3fs : 0.4.0
scipy : 1.4.1
sqlalchemy : 1.3.13
tables : 3.4.4
tabulate : 0.8.6
xarray : 0.14.1
xlrd : 1.1.0
xlwt : 1.3.0
xlsxwriter : None
numba : 0.47.0
</details>
#### Next steps
- Find out why it is slower
- Quick fix: `df.astype(int).diff().dropna().astype(bool)` which benchmarks to `10 loops, best of 3: 114 ms per loop`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31972/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31972/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31973
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31973/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31973/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31973/events
|
https://github.com/pandas-dev/pandas/pull/31973
| 565,255,148
|
MDExOlB1bGxSZXF1ZXN0Mzc1MzMxMzM2
| 31,973
|
BUG: groupby-nunique modifies null values
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-02-14T11:02:02Z
| 2020-02-14T11:37:53Z
| 2020-02-14T11:37:53Z
|
MEMBER
| null |
- [ ] closes #31950
- [ ] 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/31973/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31973/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31973.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31973",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31973.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31973"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31974
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31974/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31974/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31974/events
|
https://github.com/pandas-dev/pandas/pull/31974
| 565,332,283
|
MDExOlB1bGxSZXF1ZXN0Mzc1MzkzMDYx
| 31,974
|
STY: Fixed wrong placement of whitespace
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4",
"events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaharNaveh/followers",
"following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaharNaveh",
"id": 50263213,
"login": "ShaharNaveh",
"node_id": "MDQ6VXNlcjUwMjYzMjEz",
"organizations_url": "https://api.github.com/users/ShaharNaveh/orgs",
"received_events_url": "https://api.github.com/users/ShaharNaveh/received_events",
"repos_url": "https://api.github.com/users/ShaharNaveh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaharNaveh"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-14T13:39:16Z
| 2020-02-15T08:37:15Z
| 2020-02-14T18:45:36Z
|
MEMBER
| null |
- [x] ref #30755
- [ ] 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/31974/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31974/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31974.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31974",
"merged_at": "2020-02-14T18:45:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31974.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31974"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31975
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31975/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31975/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31975/events
|
https://github.com/pandas-dev/pandas/pull/31975
| 565,371,708
|
MDExOlB1bGxSZXF1ZXN0Mzc1NDI0MTc1
| 31,975
|
CI: Removed pattern check for specific modules
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4",
"events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaharNaveh/followers",
"following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaharNaveh",
"id": 50263213,
"login": "ShaharNaveh",
"node_id": "MDQ6VXNlcjUwMjYzMjEz",
"organizations_url": "https://api.github.com/users/ShaharNaveh/orgs",
"received_events_url": "https://api.github.com/users/ShaharNaveh/received_events",
"repos_url": "https://api.github.com/users/ShaharNaveh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaharNaveh"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 5
| 2020-02-14T14:47:35Z
| 2020-02-15T08:23:06Z
| 2020-02-14T19:23:53Z
|
MEMBER
| null |
- [ ] 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/31975/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31975/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31975.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31975",
"merged_at": "2020-02-14T19:23:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31975.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31975"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31976
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31976/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31976/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31976/events
|
https://github.com/pandas-dev/pandas/issues/31976
| 565,408,830
|
MDU6SXNzdWU1NjU0MDg4MzA=
| 31,976
|
wide_to_long with NaNs in i argument
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/47032818?v=4",
"events_url": "https://api.github.com/users/MalteMax/events{/privacy}",
"followers_url": "https://api.github.com/users/MalteMax/followers",
"following_url": "https://api.github.com/users/MalteMax/following{/other_user}",
"gists_url": "https://api.github.com/users/MalteMax/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MalteMax",
"id": 47032818,
"login": "MalteMax",
"node_id": "MDQ6VXNlcjQ3MDMyODE4",
"organizations_url": "https://api.github.com/users/MalteMax/orgs",
"received_events_url": "https://api.github.com/users/MalteMax/received_events",
"repos_url": "https://api.github.com/users/MalteMax/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MalteMax/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MalteMax/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MalteMax"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
open
| false
| null |
[] | null | 0
| 2020-02-14T15:49:45Z
| 2021-07-28T05:41:00Z
| null |
NONE
| null |
#### Code and output:
```python
import numpy as np
import pandas as pd
df1 = pd.DataFrame({'id' : ['a', np.NaN, 'c'],
'A_1999' : [1, 2, 3],
'A_2000' : [5, 6, 7]})
df1
id A_1999 A_2000
0 a 1 5
1 NaN 2 6
2 c 3 7
df2 = pd.wide_to_long(df1,
stubnames = ['A'],
sep = '_',
i = 'id',
j = 'year').reset_index()
df2
id year A
0 a 1999 1
1 a 1999 2
2 c 1999 3
3 a 2000 5
4 a 2000 6
5 c 2000 7
```
#### Problem description
df1 has one NaN in the id column. When applying `wide_to_long` to df1, `wide_to_long` seems to fill the NaNs from df1 with the preceding value from the df1 dataframe (namely, **a**).
Why might this be a problem: instances of `id == 'a'` in df1 are not the same as in df2 (because the NaNs from df1 have been replaced by **a** in df2):
```
df1.loc[df1['id'] == 'a',]
id A_1999 A_2000
0 a 1 5
```
versus:
```python
df2.loc[df2['id'] == 'a',]
id year A
0 a 1999 1
1 a 1999 2
3 a 2000 5
4 a 2000 6
```
#### Expected Output
I would expect `wide_to_long` to either
1. throw an error that the column that is passed to its `i` argument contains NaNs, or
2. preserve the NaN case in the second dataframe (not sure whether this is desirable), i.e.:
```python
id year A
0 a 1999 1
1 NaN 1999 2
2 c 1999 3
3 a 2000 5
4 NaN 2000 6
5 c 2000 7
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.2.0.post20200210
Cython : 0.29.15
pytest : 5.3.5
hypothesis : 5.4.1
sphinx : 1.8.5
blosc : None
feather : None
xlsxwriter : 1.2.7
lxml.etree : 4.5.0
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.8.3 (dt dec pq3 ext lo64)
jinja2 : 2.11.1
IPython : 7.12.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : 1.3.1
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.1.3
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.3.5
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.13
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.7
numba : 0.43.1
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31976/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31976/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31977
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31977/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31977/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31977/events
|
https://github.com/pandas-dev/pandas/pull/31977
| 565,411,370
|
MDExOlB1bGxSZXF1ZXN0Mzc1NDU0ODMz
| 31,977
|
Avoid importing from pandas at _libs files
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4",
"events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaharNaveh/followers",
"following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaharNaveh",
"id": 50263213,
"login": "ShaharNaveh",
"node_id": "MDQ6VXNlcjUwMjYzMjEz",
"organizations_url": "https://api.github.com/users/ShaharNaveh/orgs",
"received_events_url": "https://api.github.com/users/ShaharNaveh/received_events",
"repos_url": "https://api.github.com/users/ShaharNaveh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaharNaveh"
}
|
[] |
closed
| false
| null |
[] | null | 5
| 2020-02-14T15:54:20Z
| 2020-02-29T10:23:29Z
| 2020-02-16T16:50:01Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Something that brought at to me at first [here](https://github.com/pandas-dev/pandas/pull/30395#discussion_r363101229)
---
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/31977/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31977/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31977.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31977",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31977.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31977"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31978
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31978/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31978/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31978/events
|
https://github.com/pandas-dev/pandas/issues/31978
| 565,411,660
|
MDU6SXNzdWU1NjU0MTE2NjA=
| 31,978
|
Pandas breaks warnings module when printing DataFrame
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/24371277?v=4",
"events_url": "https://api.github.com/users/fisheye36/events{/privacy}",
"followers_url": "https://api.github.com/users/fisheye36/followers",
"following_url": "https://api.github.com/users/fisheye36/following{/other_user}",
"gists_url": "https://api.github.com/users/fisheye36/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fisheye36",
"id": 24371277,
"login": "fisheye36",
"node_id": "MDQ6VXNlcjI0MzcxMjc3",
"organizations_url": "https://api.github.com/users/fisheye36/orgs",
"received_events_url": "https://api.github.com/users/fisheye36/received_events",
"repos_url": "https://api.github.com/users/fisheye36/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fisheye36/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fisheye36/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fisheye36"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "f2f074",
"default": false,
"description": "Warnings that appear or should be added to pandas",
"id": 1628184320,
"name": "Warnings",
"node_id": "MDU6TGFiZWwxNjI4MTg0MzIw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Warnings"
}
] |
open
| false
| null |
[] | null | 4
| 2020-02-14T15:54:50Z
| 2020-05-11T01:18:50Z
| null |
NONE
| null |
```python
>>> import warnings
>>> warnings.warn('asd')
<input>:1: UserWarning: asd
>>> warnings.warn('asd')
>>> warnings.warn('asd')
>>> import pandas as pd
>>> df = pd.DataFrame([1])
>>> warnings.warn('asd')
<input>:1: UserWarning: asd
>>> warnings.warn('asd')
>>> df
0
0 1
>>> warnings.warn('asd')
<input>:1: UserWarning: asd
>>> warnings.warn('asd')
<input>:1: UserWarning: asd
>>> warnings.warn('asd')
<input>:1: UserWarning: asd
>>> warnings.warn('asd')
<input>:1: UserWarning: asd
```
#### Problem description
As you can see from the interactive Python listed above, when `DataFrame` is printed, suddenly all calls to `warnings.warn()` are being reported, instead of being suppressed when identical warning is issued.
The problem does not occur on Pandas version `0.25.3`.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.1.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_United States.1250
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.1.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.2.7
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.3
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : 1.2.7
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31978/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31978/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31979
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31979/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31979/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31979/events
|
https://github.com/pandas-dev/pandas/issues/31979
| 565,449,366
|
MDU6SXNzdWU1NjU0NDkzNjY=
| 31,979
|
CI: macOS py36_macos build fails
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/23253999?v=4",
"events_url": "https://api.github.com/users/AlexKirko/events{/privacy}",
"followers_url": "https://api.github.com/users/AlexKirko/followers",
"following_url": "https://api.github.com/users/AlexKirko/following{/other_user}",
"gists_url": "https://api.github.com/users/AlexKirko/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AlexKirko",
"id": 23253999,
"login": "AlexKirko",
"node_id": "MDQ6VXNlcjIzMjUzOTk5",
"organizations_url": "https://api.github.com/users/AlexKirko/orgs",
"received_events_url": "https://api.github.com/users/AlexKirko/received_events",
"repos_url": "https://api.github.com/users/AlexKirko/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AlexKirko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AlexKirko/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AlexKirko"
}
|
[] |
closed
| false
| null |
[] | null | 2
| 2020-02-14T17:03:48Z
| 2020-02-14T17:53:15Z
| 2020-02-14T17:53:15Z
|
MEMBER
| null |
#### Problem description
Currently macOS py36_macos Azure pipeline fails with this build error:
```
ImportError: dlopen(/Users/runner/miniconda3/lib/python3.7/lib-dynload/_ctypes.cpython-37m-darwin.so, 2): Library not loaded: @rpath/libffi.6.dylib
Referenced from: /Users/runner/miniconda3/lib/python3.7/lib-dynload/_ctypes.cpython-37m-darwin.so
Reason: image not found
```
Seen on #31563 and #31977
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31979/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31979/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31980
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31980/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31980/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31980/events
|
https://github.com/pandas-dev/pandas/pull/31980
| 565,456,698
|
MDExOlB1bGxSZXF1ZXN0Mzc1NDkxNTA3
| 31,980
|
CLN: 29547 replace old string formatting 6
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13339148?v=4",
"events_url": "https://api.github.com/users/3vts/events{/privacy}",
"followers_url": "https://api.github.com/users/3vts/followers",
"following_url": "https://api.github.com/users/3vts/following{/other_user}",
"gists_url": "https://api.github.com/users/3vts/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/3vts",
"id": 13339148,
"login": "3vts",
"node_id": "MDQ6VXNlcjEzMzM5MTQ4",
"organizations_url": "https://api.github.com/users/3vts/orgs",
"received_events_url": "https://api.github.com/users/3vts/received_events",
"repos_url": "https://api.github.com/users/3vts/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/3vts/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/3vts/subscriptions",
"type": "User",
"url": "https://api.github.com/users/3vts"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-14T17:19:28Z
| 2020-02-21T01:30:05Z
| 2020-02-14T19:11:47Z
|
CONTRIBUTOR
| null |
I splitted PR #31844 in batches, this is the sixth
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547](https://github.com/pandas-dev/pandas/issues/29547). I may have missed something so is a good idea to double check just in case
- [ x ] tests added / passed
- [ x ] passes `black pandas`
- [ x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31980/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31980/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31980.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31980",
"merged_at": "2020-02-14T19:11:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31980.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31980"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31981
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31981/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31981/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31981/events
|
https://github.com/pandas-dev/pandas/issues/31981
| 565,460,706
|
MDU6SXNzdWU1NjU0NjA3MDY=
| 31,981
|
Segfault in version 1.0.1, read_parquet after creating a clickhouse odbc connection
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/60195621?v=4",
"events_url": "https://api.github.com/users/mvcalder-xbk/events{/privacy}",
"followers_url": "https://api.github.com/users/mvcalder-xbk/followers",
"following_url": "https://api.github.com/users/mvcalder-xbk/following{/other_user}",
"gists_url": "https://api.github.com/users/mvcalder-xbk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mvcalder-xbk",
"id": 60195621,
"login": "mvcalder-xbk",
"node_id": "MDQ6VXNlcjYwMTk1NjIx",
"organizations_url": "https://api.github.com/users/mvcalder-xbk/orgs",
"received_events_url": "https://api.github.com/users/mvcalder-xbk/received_events",
"repos_url": "https://api.github.com/users/mvcalder-xbk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mvcalder-xbk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mvcalder-xbk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mvcalder-xbk"
}
|
[
{
"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 | 5
| 2020-02-14T17:28:30Z
| 2020-02-20T13:38:04Z
| 2020-02-20T02:38:30Z
|
NONE
| null |
We started getting segfaults in upgraded versions of pandas and tracked it down to an interaction with making odbc connections. The specific odbc driver is for Clickhouse built in Dec19 from:
```
https://github.com/ClickHouse/clickhouse-odbc
commit 08b252b93fc771fab607fb973443543479b3d972
```
The core dump is reproducable in the example below:
#### Code Sample, a copy-pastable example if possible
```python
import pyodbc
import pandas as pd
con_str = f"Driver=libclickhouseodbc.so;url=http://clickhouse/query;timeout=600"
with pyodbc.connect(con_str, autocommit=True) as con:
pass
df = pd.DataFrame({'A': [1,1,1], 'B': ['a', 'b', 'c']})
df.to_parquet('/tmp/foo.pq')
# This line core dumps:
pd.read_parquet('/tmp/foo.pq')
```
#### Problem description
In the code above, creating the clickhouse odbc connection (not using it) leads to a segfault when reading the parquet file:
```
terminate called after throwing an instance of 'std::bad_cast'
what(): std::bad_cast
Aborted (core dumped)
```
This does not happen in pandas 0.25.3 but does in pandas 1.0.1.
#### Expected Output
No core dump.
#### Odbc driver dependencies
```xbk@499e30e4f63f:$ ldd libclickhouseodbc.so
linux-vdso.so.1 (0x00007ffe02bee000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f246c269000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f246c061000)
libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0x00007f246be57000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f246ba66000)
/lib64/ld-linux-x86-64.so.2 (0x00007f246cd89000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f246b862000)
```
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.9.final.0
python-bits : 64
OS : Linux
OS-release : 3.10.0-1062.4.3.el7.x86_64
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.0
pip : 9.0.1
setuptools : 45.2.0
Cython : 0.29.14
pytest : 5.3.2
hypothesis : 5.1.2
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : 0.999999999
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.12.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.2
numexpr : None
odfpy : None
openpyxl : 3.0.2
pandas_gbq : None
pyarrow : 0.15.1.dev539+g8cf0c8e0a
pytables : None
pytest : 5.3.2
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.11
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31981/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31981/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31982
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31982/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31982/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31982/events
|
https://github.com/pandas-dev/pandas/pull/31982
| 565,464,527
|
MDExOlB1bGxSZXF1ZXN0Mzc1NDk3ODUw
| 31,982
|
CLN 29547 Replace old string formatting syntax with f-strings
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1570381?v=4",
"events_url": "https://api.github.com/users/alysbrooks/events{/privacy}",
"followers_url": "https://api.github.com/users/alysbrooks/followers",
"following_url": "https://api.github.com/users/alysbrooks/following{/other_user}",
"gists_url": "https://api.github.com/users/alysbrooks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alysbrooks",
"id": 1570381,
"login": "alysbrooks",
"node_id": "MDQ6VXNlcjE1NzAzODE=",
"organizations_url": "https://api.github.com/users/alysbrooks/orgs",
"received_events_url": "https://api.github.com/users/alysbrooks/received_events",
"repos_url": "https://api.github.com/users/alysbrooks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alysbrooks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alysbrooks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alysbrooks"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-14T17:36:30Z
| 2020-02-15T02:19:42Z
| 2020-02-15T02:19:38Z
|
CONTRIBUTOR
| null |
Addresses #29547 for pandas/io/sas/sas_xport.py. I searched through for instances of the `%` operator and `.format`.
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
I noticed that `_read_sas_doc` doesn't seem to be used anymore. I could delete that as well, or we could save that for a separate 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/31982/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31982/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31982.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31982",
"merged_at": "2020-02-15T02:19:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31982.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31982"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31983
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31983/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31983/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31983/events
|
https://github.com/pandas-dev/pandas/issues/31983
| 565,506,365
|
MDU6SXNzdWU1NjU1MDYzNjU=
| 31,983
|
DOC: pivot_table example
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/17162724?v=4",
"events_url": "https://api.github.com/users/raybellwaves/events{/privacy}",
"followers_url": "https://api.github.com/users/raybellwaves/followers",
"following_url": "https://api.github.com/users/raybellwaves/following{/other_user}",
"gists_url": "https://api.github.com/users/raybellwaves/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/raybellwaves",
"id": 17162724,
"login": "raybellwaves",
"node_id": "MDQ6VXNlcjE3MTYyNzI0",
"organizations_url": "https://api.github.com/users/raybellwaves/orgs",
"received_events_url": "https://api.github.com/users/raybellwaves/received_events",
"repos_url": "https://api.github.com/users/raybellwaves/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/raybellwaves/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/raybellwaves/subscriptions",
"type": "User",
"url": "https://api.github.com/users/raybellwaves"
}
|
[] |
closed
| false
| null |
[] | null | 2
| 2020-02-14T19:11:45Z
| 2020-02-15T13:09:26Z
| 2020-02-15T13:09:26Z
|
CONTRIBUTOR
| null |
The documentation for pivot table seems limited https://pandas.pydata.org/pandas-docs/version/0.17/generated/pandas.pivot_table.html
It doesn't show how `df` was generated. In addition, should pivot_table be `pd.pivot_table`.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31983/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31983/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31984
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31984/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31984/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31984/events
|
https://github.com/pandas-dev/pandas/pull/31984
| 565,507,347
|
MDExOlB1bGxSZXF1ZXN0Mzc1NTMyNjc4
| 31,984
|
REF: dont use numexpr in places where it doesnt help.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "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 | 1
| 2020-02-14T19:14:12Z
| 2021-03-02T21:10:52Z
| 2020-02-17T03:31:50Z
|
MEMBER
| null |
DataFrame ops will still use it when dispatching to series/block ops.
Perf neutral:
```
In [3]: arr = np.arange(10**4).reshape(100, 100)
In [4]: df = pd.DataFrame(arr)
In [5]: df[4] = df[4].astype(float)
In [6]: ser = df[0]
In [8]: %timeit res = df+ser
19.8 ms ± 317 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) # <-- PR
19.8 ms ± 267 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) # <-- master
In [10]: %timeit res2 = df.add(ser, axis=0)
19.2 ms ± 276 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) # <-- PR
19.2 ms ± 301 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) # <-- master
In [13]: %timeit res3 = df + df
23.6 ms ± 382 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) # <-- PR
24 ms ± 551 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) # <-- master
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31984/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31984/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31984.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31984",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31984.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31984"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31985
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31985/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31985/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31985/events
|
https://github.com/pandas-dev/pandas/issues/31985
| 565,520,682
|
MDU6SXNzdWU1NjU1MjA2ODI=
| 31,985
|
Error running pd.show_versions()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11633696?v=4",
"events_url": "https://api.github.com/users/langhimebaugh/events{/privacy}",
"followers_url": "https://api.github.com/users/langhimebaugh/followers",
"following_url": "https://api.github.com/users/langhimebaugh/following{/other_user}",
"gists_url": "https://api.github.com/users/langhimebaugh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/langhimebaugh",
"id": 11633696,
"login": "langhimebaugh",
"node_id": "MDQ6VXNlcjExNjMzNjk2",
"organizations_url": "https://api.github.com/users/langhimebaugh/orgs",
"received_events_url": "https://api.github.com/users/langhimebaugh/received_events",
"repos_url": "https://api.github.com/users/langhimebaugh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/langhimebaugh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/langhimebaugh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/langhimebaugh"
}
|
[
{
"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 | 2
| 2020-02-14T19:40:29Z
| 2020-02-15T05:48:04Z
| 2020-02-15T05:48:04Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
# Your code here
pd.show_versions()
```
#### Problem description
Was trying to import xlsb file...
pd.read_excel('my_file.xlsb', engine='pyxlsb')
when i received this error:
ImportError: Can't determine version for pyxlsb
Next, I tried pd.show_versions() and received the same error after restarting the kernel and running these two lines...
import pandas as pd
pd.show_versions()
ImportError: Can't determine version for pyxlsb
FYI:
Python 3.6.9 (default, Nov 7 2019, 10:44:02)
IPython 5.5.0 -- An enhanced Interactive Python.
[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]
In [1]: import pandas as pd
In [2]: pd.show_versions()
Traceback (most recent call last):
File "<ipython-input-2-3d232a07e144>", line 1, in <module>
pd.show_versions()
File "/home/lang/.local/lib/python3.6/site-packages/pandas/util/_print_versions.py", line 97, in show_versions
modname, raise_on_missing=False, on_version="ignore"
File "/home/lang/.local/lib/python3.6/site-packages/pandas/compat/_optional.py", line 98, in import_optional_dependency
version = _get_version(module)
File "/home/lang/.local/lib/python3.6/site-packages/pandas/compat/_optional.py", line 43, in _get_version
raise ImportError(f"Can't determine version for {module.__name__}")
ImportError: Can't determine version for pyxlsb
pd.__version__
Out[3]: '1.0.1'
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31985/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31985/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31986
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31986/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31986/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31986/events
|
https://github.com/pandas-dev/pandas/pull/31986
| 565,522,964
|
MDExOlB1bGxSZXF1ZXN0Mzc1NTQ1OTc2
| 31,986
|
CLN: 29547 replace old string formatting 7
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13339148?v=4",
"events_url": "https://api.github.com/users/3vts/events{/privacy}",
"followers_url": "https://api.github.com/users/3vts/followers",
"following_url": "https://api.github.com/users/3vts/following{/other_user}",
"gists_url": "https://api.github.com/users/3vts/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/3vts",
"id": 13339148,
"login": "3vts",
"node_id": "MDQ6VXNlcjEzMzM5MTQ4",
"organizations_url": "https://api.github.com/users/3vts/orgs",
"received_events_url": "https://api.github.com/users/3vts/received_events",
"repos_url": "https://api.github.com/users/3vts/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/3vts/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/3vts/subscriptions",
"type": "User",
"url": "https://api.github.com/users/3vts"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-02-14T19:45:33Z
| 2020-02-21T01:29:56Z
| 2020-02-15T19:04:20Z
|
CONTRIBUTOR
| null |
I splitted PR #31844 in batches, this is the seventh
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547](https://github.com/pandas-dev/pandas/issues/29547). I may have missed something so is a good idea to double check just in case
- [ x ] tests added / passed
- [ x ] passes `black pandas`
- [ x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31986/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31986/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31986.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31986",
"merged_at": "2020-02-15T19:04:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31986.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31986"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31987
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31987/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31987/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31987/events
|
https://github.com/pandas-dev/pandas/issues/31987
| 565,531,690
|
MDU6SXNzdWU1NjU1MzE2OTA=
| 31,987
|
Feature request: option to set week starting on Sunday instead of Monday
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18634426?v=4",
"events_url": "https://api.github.com/users/charlesoblack/events{/privacy}",
"followers_url": "https://api.github.com/users/charlesoblack/followers",
"following_url": "https://api.github.com/users/charlesoblack/following{/other_user}",
"gists_url": "https://api.github.com/users/charlesoblack/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/charlesoblack",
"id": 18634426,
"login": "charlesoblack",
"node_id": "MDQ6VXNlcjE4NjM0NDI2",
"organizations_url": "https://api.github.com/users/charlesoblack/orgs",
"received_events_url": "https://api.github.com/users/charlesoblack/received_events",
"repos_url": "https://api.github.com/users/charlesoblack/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/charlesoblack/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/charlesoblack/subscriptions",
"type": "User",
"url": "https://api.github.com/users/charlesoblack"
}
|
[] |
closed
| false
| null |
[] | null | 8
| 2020-02-14T20:06:38Z
| 2020-03-08T03:34:50Z
| 2020-03-08T03:34:50Z
|
NONE
| null |
#### Problem description
Currently, calling `pd.Series.dt.weekday` returns Monday = 0, Sunday = 6. It would be nice to have a settable option that allows Sunday to be the beginning of the week, e.g.
```python
my_series.dt.weekday # Monday = 0, Sunday = 6
pd.options.week_start = 'Sunday'
my_series.dt.weekday # Sunday = 0, Saturday = 6
```
Pandas version 1.0.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/31987/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31987/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31988
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31988/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31988/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31988/events
|
https://github.com/pandas-dev/pandas/issues/31988
| 565,585,869
|
MDU6SXNzdWU1NjU1ODU4Njk=
| 31,988
|
Error in `read_pickle` when loading a DataFrame with MultiIndex columns from a pickle created in py27
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/130238?v=4",
"events_url": "https://api.github.com/users/pedroreys/events{/privacy}",
"followers_url": "https://api.github.com/users/pedroreys/followers",
"following_url": "https://api.github.com/users/pedroreys/following{/other_user}",
"gists_url": "https://api.github.com/users/pedroreys/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pedroreys",
"id": 130238,
"login": "pedroreys",
"node_id": "MDQ6VXNlcjEzMDIzOA==",
"organizations_url": "https://api.github.com/users/pedroreys/orgs",
"received_events_url": "https://api.github.com/users/pedroreys/received_events",
"repos_url": "https://api.github.com/users/pedroreys/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pedroreys/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pedroreys/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pedroreys"
}
|
[
{
"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": "6c1cdb",
"default": false,
"description": "read_pickle, to_pickle",
"id": 1625435109,
"name": "IO Pickle",
"node_id": "MDU6TGFiZWwxNjI1NDM1MTA5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Pickle"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 1
| 2020-02-14T22:23:16Z
| 2020-02-21T14:52:24Z
| 2020-02-21T14:52:24Z
|
CONTRIBUTOR
| null |
Calling `read_pickle` to load a DataFrame with MultiIndex columns from a pickle file created in py27 throws an error saying:
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xd9 in position 0: ordinal not in range(128)
This issue was introduced by #28645, more specifically by [this change](https://github.com/pandas-dev/pandas/pull/28645/files#diff-7ecbc1597b1273ca207747232d64edad):
```diff
diff --git a/pandas/io/pickle.py b/pandas/io/pickle.py
index adf0aa961..8f9bae0f7 100644
--- a/pandas/io/pickle.py
+++ b/pandas/io/pickle.py
@@ -142,18 +142,24 @@ def read_pickle(path, compression="infer"):
# 1) try standard library Pickle
# 2) try pickle_compat (older pandas version) to handle subclass changes
- # 3) try pickle_compat with latin1 encoding
+
+ excs_to_catch = (AttributeError, ImportError)
+ if PY36:
+ excs_to_catch += (ModuleNotFoundError,)
try:
with warnings.catch_warnings(record=True):
# We want to silence any warnings about, e.g. moved modules.
warnings.simplefilter("ignore", Warning)
return pickle.load(f)
- except Exception:
- try:
- return pc.load(f, encoding=None)
- except Exception:
- return pc.load(f, encoding="latin1")
+ except excs_to_catch:
+ # e.g.
+ # "No module named 'pandas.core.sparse.series'"
+ # "Can't get attribute '__nat_unpickle' on <module 'pandas._libs.tslib"
+ return pc.load(f, encoding=None)
+ except UnicodeDecodeError:
+ # e.g. can occur for files written in py27; see GH#28645
+ return pc.load(f, encoding="latin-1")
finally:
f.close()
for _f in fh:
```
Note how before when there was an Exception trying to load the file with the builtin `pickle.load` function, it would try to load them using `pickle_compat` with `enconding=None` and if that call also threw an Exception, it would then fallback to try to load with `encoding="latin-1"`. With the change from #28645 the fallback to use `encoding="latin-1"` is only in the catch block of the initial `pickle_load` call, not the second one that tries to use pickle_compat with `encoding=None`.
This become an issue for py27 pickles with MultiIndex columns after `FrozenNDArray` was removed by #29840 as `pickle.load(f)` throws an `AttributeError` for `FrozenNDArray` and then `pc.load(f, encoding=None)` throws an `UnicodeDecodeError`.
Here is a full stack trace:
<details>
```python
In [1]: import pandas as pd
...: df = pd.read_pickle('test_mi_py27.pkl')
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
~/anaconda3/envs/pandas-pickle/lib/python3.7/site-packages/pandas/io/pickle.py in read_pickle(filepath_or_buffer, compression)
180 warnings.simplefilter("ignore", Warning)
--> 181 return pickle.load(f)
182 except excs_to_catch:
AttributeError: Can't get attribute 'FrozenNDArray' on <module 'pandas.core.indexes.frozen' from '~/anaconda3/envs/pandas-pickle/lib/python3.7/site-packages/pandas/core/indexes/frozen.py'>
During handling of the above exception, another exception occurred:
UnicodeDecodeError Traceback (most recent call last)
<ipython-input-1-8c3800ea96cb> in <module>
1 import pandas as pd
----> 2 df = pd.read_pickle('test_mi_py27.pkl')
~/anaconda3/envs/pandas-pickle/lib/python3.7/site-packages/pandas/io/pickle.py in read_pickle(filepath_or_buffer, compression)
184 # "No module named 'pandas.core.sparse.series'"
185 # "Can't get attribute '__nat_unpickle' on <module 'pandas._libs.tslib"
--> 186 return pc.load(f, encoding=None)
187 except UnicodeDecodeError:
188 # e.g. can occur for files written in py27; see GH#28645
~/anaconda3/envs/pandas-pickle/lib/python3.7/site-packages/pandas/compat/pickle_compat.py in load(fh, encoding, is_verbose)
239 up.is_verbose = is_verbose
240
--> 241 return up.load()
242 except (ValueError, TypeError):
243 raise
~/anaconda3/envs/pandas-pickle/lib/python3.7/pickle.py in load(self)
1086 raise EOFError
1087 assert isinstance(key, bytes_types)
-> 1088 dispatch[key[0]](self)
1089 except _Stop as stopinst:
1090 return stopinst.value
~/anaconda3/envs/pandas-pickle/lib/python3.7/pickle.py in load_short_binstring(self)
1262 len = self.read(1)[0]
1263 data = self.read(len)
-> 1264 self.append(self._decode_string(data))
1265 dispatch[SHORT_BINSTRING[0]] = load_short_binstring
1266
~/anaconda3/envs/pandas-pickle/lib/python3.7/pickle.py in _decode_string(self, value)
1202 return value
1203 else:
-> 1204 return value.decode(self.encoding, self.errors)
1205
1206 def load_string(self):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd9 in position 0: ordinal not in range(128)
```
</details>
I believe the fix for this specific issue can be as simple as:
```diff
diff --git a/pandas/io/pickle.py b/pandas/io/pickle.py
index e51f24b55..5c4f2d8c4 100644
--- a/pandas/io/pickle.py
+++ b/pandas/io/pickle.py
@@ -183,7 +183,11 @@ def read_pickle(
# e.g.
# "No module named 'pandas.core.sparse.series'"
# "Can't get attribute '__nat_unpickle' on <module 'pandas._libs.tslib"
- return pc.load(f, encoding=None)
+ try:
+ return pc.load(f, encoding=None)
+ except UnicodeDecodeError:
+ # e.g. can occur for files written in py27;
+ return pc.load(f, encoding="latin-1")
except UnicodeDecodeError:
# e.g. can occur for files written in py27; see GH#28645
return pc.load(f, encoding="latin-1")
```
I will open a PR with the fix above over the weekend.
Thanks!
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31988/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31988/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31989
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31989/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31989/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31989/events
|
https://github.com/pandas-dev/pandas/issues/31989
| 565,636,035
|
MDU6SXNzdWU1NjU2MzYwMzU=
| 31,989
|
pandas/conftest.py refactoring
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/17853006?v=4",
"events_url": "https://api.github.com/users/SaturnFromTitan/events{/privacy}",
"followers_url": "https://api.github.com/users/SaturnFromTitan/followers",
"following_url": "https://api.github.com/users/SaturnFromTitan/following{/other_user}",
"gists_url": "https://api.github.com/users/SaturnFromTitan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SaturnFromTitan",
"id": 17853006,
"login": "SaturnFromTitan",
"node_id": "MDQ6VXNlcjE3ODUzMDA2",
"organizations_url": "https://api.github.com/users/SaturnFromTitan/orgs",
"received_events_url": "https://api.github.com/users/SaturnFromTitan/received_events",
"repos_url": "https://api.github.com/users/SaturnFromTitan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SaturnFromTitan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SaturnFromTitan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SaturnFromTitan"
}
|
[
{
"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 |
[] | null | 15
| 2020-02-15T01:21:03Z
| 2020-03-22T15:30:41Z
| 2020-03-22T15:30:41Z
|
CONTRIBUTOR
| null |
As stated in [this review comment](https://github.com/pandas-dev/pandas/pull/31701#pullrequestreview-359291503) from jreback, we should address some refactoring issues in `pandas/conftest.py`:
- [x] create the indices fixture using `tm.all_index_generator` as suggested [by jbrockmendel in this comment](https://github.com/pandas-dev/pandas/pull/31701#discussion_r378532760)
- [x] all fixtures and functions should have a docstring
- [x] add sections, i.e. "some text markers so reading the file is easy"
- [ ] remove/avoid imports from `conftest.py`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31989/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31989/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31990
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31990/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31990/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31990/events
|
https://github.com/pandas-dev/pandas/issues/31990
| 565,702,170
|
MDU6SXNzdWU1NjU3MDIxNzA=
| 31,990
|
How should isin behave with pd.NA?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
},
{
"color": "fef2c0",
"default": false,
"description": "isin method",
"id": 2468482981,
"name": "isin",
"node_id": "MDU6TGFiZWwyNDY4NDgyOTgx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/isin"
}
] |
open
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 4
| 2020-02-15T05:50:08Z
| 2020-10-30T22:48:45Z
| null |
MEMBER
| null |
```python
import pandas as pd
arr = pd.array(["a", "b", pd.NA], dtype="string")
s = pd.Series(["a", "b", "c"])
print(s.isin(arr))
# 0 True
# 1 True
# 2 False
# dtype: bool
print(pd.Series(arr).isin(["a", "b"]))
# 0 True
# 1 True
# 2 False
# dtype: bool
```
I think a case could be made that the actual output is not correct in these cases, and that both should return the nullable boolean `pd.Series(pd.array([True, True, pd.NA]))`. In the first case we don't know that `"c"` _is not_ in `arr`, and in the second case we don't know if `pd.NA` happens to be `"a"` or `"b"`, so again we should have `pd.NA`.
This is obviously an edge case but may be worth considering for the sake of consistency with the other three-valued logic operations (since `isin` is essentially an "or" statement).
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31990/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31990/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31991
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31991/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31991/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31991/events
|
https://github.com/pandas-dev/pandas/pull/31991
| 565,711,139
|
MDExOlB1bGxSZXF1ZXN0Mzc1Njg5NDM1
| 31,991
|
BUG: Fix wrong reading sparse matrix
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/46838291?v=4",
"events_url": "https://api.github.com/users/m7142yosuke/events{/privacy}",
"followers_url": "https://api.github.com/users/m7142yosuke/followers",
"following_url": "https://api.github.com/users/m7142yosuke/following{/other_user}",
"gists_url": "https://api.github.com/users/m7142yosuke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/m7142yosuke",
"id": 46838291,
"login": "m7142yosuke",
"node_id": "MDQ6VXNlcjQ2ODM4Mjkx",
"organizations_url": "https://api.github.com/users/m7142yosuke/orgs",
"received_events_url": "https://api.github.com/users/m7142yosuke/received_events",
"repos_url": "https://api.github.com/users/m7142yosuke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/m7142yosuke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/m7142yosuke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/m7142yosuke"
}
|
[
{
"color": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 7
| 2020-02-15T07:29:20Z
| 2020-04-16T22:16:53Z
| 2020-04-16T21:22:53Z
|
CONTRIBUTOR
| null |
- [x] closes #29814
- [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/31991/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31991/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31991.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31991",
"merged_at": "2020-04-16T21:22:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31991.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31991"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31992
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31992/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31992/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31992/events
|
https://github.com/pandas-dev/pandas/issues/31992
| 565,714,210
|
MDU6SXNzdWU1NjU3MTQyMTA=
| 31,992
|
COMPAT: numpy dev version raises new errors during CI
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/23253999?v=4",
"events_url": "https://api.github.com/users/AlexKirko/events{/privacy}",
"followers_url": "https://api.github.com/users/AlexKirko/followers",
"following_url": "https://api.github.com/users/AlexKirko/following{/other_user}",
"gists_url": "https://api.github.com/users/AlexKirko/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AlexKirko",
"id": 23253999,
"login": "AlexKirko",
"node_id": "MDQ6VXNlcjIzMjUzOTk5",
"organizations_url": "https://api.github.com/users/AlexKirko/orgs",
"received_events_url": "https://api.github.com/users/AlexKirko/received_events",
"repos_url": "https://api.github.com/users/AlexKirko/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AlexKirko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AlexKirko/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AlexKirko"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] |
closed
| false
| null |
[] | null | 5
| 2020-02-15T08:01:15Z
| 2020-03-23T15:13:00Z
| 2020-03-23T15:02:03Z
|
MEMBER
| null |
### Problem description
Looks like something has been changed in numpy, and we now get new errors when running that Numpy dev pipeline during CI. This happens regardless of PR (saw it in #31563 and #31991). Seems to be centered around cumsum and division by nan, but I don't have the time to delve deeper atm.
One of the errors below:
```python
# axis = 0
cummin = datetime_frame.cummin()
expected = datetime_frame.apply(Series.cummin)
> tm.assert_frame_equal(cummin, expected)
pandas/tests/frame/test_cumulative.py:84:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pandas/_libs/testing.pyx:65: in pandas._libs.testing.assert_almost_equal
cpdef assert_almost_equal(a, b,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise_assert_detail(obj, msg, lobj, robj)
E AssertionError: DataFrame.iloc[:, 0] (column name="A") are different
E
E DataFrame.iloc[:, 0] (column name="A") values are different (46.66667 %)
E [left]: [0.652282807224414, -0.06609607048075124, 6.9221550547283e-310, 4.6661712289503e-310, 4.6661712289503e-310, 0.22575641583650302, 1.5013182000449852, -0.035445399728511705, -0.4007619715825971, -0.4007619715825971, -1.4917178151508124, -0.14834313680366412, 0.545948106375247, 1.495247786960942, 0.2128973463640255, 0.794985190506577, -1.4214210868734076, -1.4214210868734076, -1.019792839223919, -0.28828070056157995, -0.47176522372684804, -0.4267351486193231, -2.816743984494702, 0.4308015055934936, -0.007381576327430263, -0.007381576327430263, -1.121456436411571, -0.25765070817685554, -0.7686775772512485, 1.0963456159671487]
E [right]: [0.652282807224414, -0.06609607048075124, -0.06609607048075124, 0.48729707348930335, 0.48729707348930335, 0.22575641583650302, 0.22575641583650302, -0.035445399728511705, -0.4007619715825971, -0.4007619715825971, 0.3249965661970306, -0.14834313680366412, -0.14834313680366412, 0.545948106375247, 0.2128973463640255, 0.2128973463640255, -1.4214210868734076, -1.4214210868734076, -0.9987072139900786, -0.9987072139900786, -0.47176522372684804, -0.47176522372684804, -2.816743984494702, -2.816743984494702, -0.007381576327430263, -0.007381576327430263, -1.121456436411571, -1.121456436411571, -0.7686775772512485, -0.7686775772512485]
```
[Link](https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=28623&view=logs&j=3a03f79d-0b41-5610-1aa4-b4a014d0bc70&t=4d05ed0e-1ed3-5bff-dd63-1e957f2766a9&l=75) to one of the failed pipelines. You can also just take a look at any recent 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/31992/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31992/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31993
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31993/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31993/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31993/events
|
https://github.com/pandas-dev/pandas/pull/31993
| 565,716,191
|
MDExOlB1bGxSZXF1ZXN0Mzc1NjkzMTQx
| 31,993
|
Backport PR: CI:Testing whole doctest, and not specific module
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4",
"events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaharNaveh/followers",
"following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaharNaveh",
"id": 50263213,
"login": "ShaharNaveh",
"node_id": "MDQ6VXNlcjUwMjYzMjEz",
"organizations_url": "https://api.github.com/users/ShaharNaveh/orgs",
"received_events_url": "https://api.github.com/users/ShaharNaveh/received_events",
"repos_url": "https://api.github.com/users/ShaharNaveh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaharNaveh"
}
|
[
{
"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": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 1
| 2020-02-15T08:21:19Z
| 2020-02-15T10:15:40Z
| 2020-02-15T09:59:33Z
|
MEMBER
| null |
xref #31975
Doing as mentioned [here](https://github.com/pandas-dev/pandas/pull/31975#issuecomment-586443425)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31993/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31993/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31993.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31993",
"merged_at": "2020-02-15T09:59:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31993.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31993"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31994
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31994/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31994/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31994/events
|
https://github.com/pandas-dev/pandas/issues/31994
| 565,717,224
|
MDU6SXNzdWU1NjU3MTcyMjQ=
| 31,994
|
WEB: the donate page is not loading correctly
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "23ef97",
"default": false,
"description": "pandas website",
"id": 1508144531,
"name": "Web",
"node_id": "MDU6TGFiZWwxNTA4MTQ0NTMx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Web"
}
] |
closed
| false
| null |
[] | null | 5
| 2020-02-15T08:31:37Z
| 2020-03-05T12:13:09Z
| 2020-03-05T12:13:09Z
|
MEMBER
| null |
For me, the donate page (and specifically the donate widget) is not loading:

It just keeps saying "loading" for 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/31994/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31994/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31995
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31995/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31995/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31995/events
|
https://github.com/pandas-dev/pandas/pull/31995
| 565,717,910
|
MDExOlB1bGxSZXF1ZXN0Mzc1Njk0Mzk3
| 31,995
|
DOC: Add See Also section on series.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/409455?v=4",
"events_url": "https://api.github.com/users/za/events{/privacy}",
"followers_url": "https://api.github.com/users/za/followers",
"following_url": "https://api.github.com/users/za/following{/other_user}",
"gists_url": "https://api.github.com/users/za/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/za",
"id": 409455,
"login": "za",
"node_id": "MDQ6VXNlcjQwOTQ1NQ==",
"organizations_url": "https://api.github.com/users/za/orgs",
"received_events_url": "https://api.github.com/users/za/received_events",
"repos_url": "https://api.github.com/users/za/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/za/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/za/subscriptions",
"type": "User",
"url": "https://api.github.com/users/za"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-02-15T08:39:06Z
| 2020-02-17T08:23:50Z
| 2020-02-17T08:23:49Z
|
CONTRIBUTOR
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31995/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31995/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31995.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31995",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31995.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31995"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31996
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31996/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31996/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31996/events
|
https://github.com/pandas-dev/pandas/pull/31996
| 565,719,341
|
MDExOlB1bGxSZXF1ZXN0Mzc1Njk1NDIx
| 31,996
|
DOC PR09 Add missing dots at con parameter on io/sql.py file
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/409455?v=4",
"events_url": "https://api.github.com/users/za/events{/privacy}",
"followers_url": "https://api.github.com/users/za/followers",
"following_url": "https://api.github.com/users/za/following{/other_user}",
"gists_url": "https://api.github.com/users/za/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/za",
"id": 409455,
"login": "za",
"node_id": "MDQ6VXNlcjQwOTQ1NQ==",
"organizations_url": "https://api.github.com/users/za/orgs",
"received_events_url": "https://api.github.com/users/za/received_events",
"repos_url": "https://api.github.com/users/za/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/za/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/za/subscriptions",
"type": "User",
"url": "https://api.github.com/users/za"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-02-15T08:54:18Z
| 2020-02-15T09:04:32Z
| 2020-02-15T09:04:32Z
|
CONTRIBUTOR
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31996/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31996/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31996.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31996",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31996.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31996"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31997
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31997/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31997/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31997/events
|
https://github.com/pandas-dev/pandas/pull/31997
| 565,720,255
|
MDExOlB1bGxSZXF1ZXN0Mzc1Njk2MDQy
| 31,997
|
DOC PR09 on freq parameter
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/409455?v=4",
"events_url": "https://api.github.com/users/za/events{/privacy}",
"followers_url": "https://api.github.com/users/za/followers",
"following_url": "https://api.github.com/users/za/following{/other_user}",
"gists_url": "https://api.github.com/users/za/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/za",
"id": 409455,
"login": "za",
"node_id": "MDQ6VXNlcjQwOTQ1NQ==",
"organizations_url": "https://api.github.com/users/za/orgs",
"received_events_url": "https://api.github.com/users/za/received_events",
"repos_url": "https://api.github.com/users/za/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/za/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/za/subscriptions",
"type": "User",
"url": "https://api.github.com/users/za"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-02-15T09:03:43Z
| 2020-02-15T09:05:18Z
| 2020-02-15T09:05:18Z
|
CONTRIBUTOR
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31997/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31997/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31997.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31997",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31997.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31997"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31998
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31998/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31998/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31998/events
|
https://github.com/pandas-dev/pandas/pull/31998
| 565,720,681
|
MDExOlB1bGxSZXF1ZXN0Mzc1Njk2MzA0
| 31,998
|
DOC PR09 Add missing . on freq parameter on groupby.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/409455?v=4",
"events_url": "https://api.github.com/users/za/events{/privacy}",
"followers_url": "https://api.github.com/users/za/followers",
"following_url": "https://api.github.com/users/za/following{/other_user}",
"gists_url": "https://api.github.com/users/za/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/za",
"id": 409455,
"login": "za",
"node_id": "MDQ6VXNlcjQwOTQ1NQ==",
"organizations_url": "https://api.github.com/users/za/orgs",
"received_events_url": "https://api.github.com/users/za/received_events",
"repos_url": "https://api.github.com/users/za/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/za/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/za/subscriptions",
"type": "User",
"url": "https://api.github.com/users/za"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-02-15T09:07:44Z
| 2020-02-15T10:07:58Z
| 2020-02-15T09:55:11Z
|
CONTRIBUTOR
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31998/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31998/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31998.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31998",
"merged_at": "2020-02-15T09:55:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31998.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31998"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31999
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31999/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31999/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31999/events
|
https://github.com/pandas-dev/pandas/pull/31999
| 565,723,046
|
MDExOlB1bGxSZXF1ZXN0Mzc1Njk3OTUx
| 31,999
|
DOC PR07: Add description to parameter skipna
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8732795?v=4",
"events_url": "https://api.github.com/users/farhanreynaldo/events{/privacy}",
"followers_url": "https://api.github.com/users/farhanreynaldo/followers",
"following_url": "https://api.github.com/users/farhanreynaldo/following{/other_user}",
"gists_url": "https://api.github.com/users/farhanreynaldo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/farhanreynaldo",
"id": 8732795,
"login": "farhanreynaldo",
"node_id": "MDQ6VXNlcjg3MzI3OTU=",
"organizations_url": "https://api.github.com/users/farhanreynaldo/orgs",
"received_events_url": "https://api.github.com/users/farhanreynaldo/received_events",
"repos_url": "https://api.github.com/users/farhanreynaldo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/farhanreynaldo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/farhanreynaldo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/farhanreynaldo"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] | null | 0
| 2020-02-15T09:29:50Z
| 2020-02-15T11:33:47Z
| 2020-02-15T11:33:43Z
|
CONTRIBUTOR
| null |
- [ ] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/18
- [ ] tests added / passed
- [ ] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
output of `python scripts/validate_docstrings.py pandas.Series.argmax`:
```
################################################################################
################################## Validation ##################################
################################################################################
4 Errors found:
No extended summary found
Parameters {'*args', '**kwargs'} not documented
Missing description for See Also "numpy.ndarray.argmax" reference
No examples section found
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31999/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31999/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31999.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31999",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31999.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31999"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32000
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/32000/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32000/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/32000/events
|
https://github.com/pandas-dev/pandas/pull/32000
| 565,723,153
|
MDExOlB1bGxSZXF1ZXN0Mzc1Njk4MDI4
| 32,000
|
DOC: PR09 Add missing . on Parameter con description
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/30652154?v=4",
"events_url": "https://api.github.com/users/asyarif93/events{/privacy}",
"followers_url": "https://api.github.com/users/asyarif93/followers",
"following_url": "https://api.github.com/users/asyarif93/following{/other_user}",
"gists_url": "https://api.github.com/users/asyarif93/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/asyarif93",
"id": 30652154,
"login": "asyarif93",
"node_id": "MDQ6VXNlcjMwNjUyMTU0",
"organizations_url": "https://api.github.com/users/asyarif93/orgs",
"received_events_url": "https://api.github.com/users/asyarif93/received_events",
"repos_url": "https://api.github.com/users/asyarif93/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/asyarif93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/asyarif93/subscriptions",
"type": "User",
"url": "https://api.github.com/users/asyarif93"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-02-15T09:30:45Z
| 2020-02-15T10:58:37Z
| 2020-02-15T10:58:12Z
|
CONTRIBUTOR
| null |
- [ ] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/22
- [ ] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Output of `python scripts/validate_docstrings.py pandas.DataFrame.to_sql`:
```
################################################################################
##################### Docstring (pandas.DataFrame.to_sql) #####################
################################################################################
Write records stored in a DataFrame to a SQL database.
Databases supported by SQLAlchemy [1]_ are supported. Tables can be
newly created, appended to, or overwritten.
Parameters
----------
name : str
Name of SQL table.
con : sqlalchemy.engine.Engine or sqlite3.Connection
Using SQLAlchemy makes it possible to use any DB supported by that
library. Legacy support is provided for sqlite3.Connection objects. The user
is responsible for engine disposal and connection closure for the SQLAlchemy
connectable See `here <https://docs.sqlalchemy.org/en/13/core/connections.html>`_.
schema : str, optional
Specify the schema (if database flavor supports this). If None, use
default schema.
if_exists : {'fail', 'replace', 'append'}, default 'fail'
How to behave if the table already exists.
* fail: Raise a ValueError.
* replace: Drop the table before inserting new values.
* append: Insert new values to the existing table.
index : bool, default True
Write DataFrame index as a column. Uses `index_label` as the column
name in the table.
index_label : str or sequence, default None
Column label for index column(s). If None is given (default) and
`index` is True, then the index names are used.
A sequence should be given if the DataFrame uses MultiIndex.
chunksize : int, optional
Specify the number of rows in each batch to be written at a time.
By default, all rows will be written at once.
dtype : dict or scalar, optional
Specifying the datatype for columns. If a dictionary is used, the
keys should be the column names and the values should be the
SQLAlchemy types or strings for the sqlite3 legacy mode. If a
scalar is provided, it will be applied to all columns.
method : {None, 'multi', callable}, optional
Controls the SQL insertion clause used:
* None : Uses standard SQL ``INSERT`` clause (one per row).
* 'multi': Pass multiple values in a single ``INSERT`` clause.
* callable with signature ``(pd_table, conn, keys, data_iter)``.
Details and a sample callable implementation can be found in the
section :ref:`insert method <io.sql.method>`.
.. versionadded:: 0.24.0
Raises
------
ValueError
When the table already exists and `if_exists` is 'fail' (the
default).
See Also
--------
read_sql : Read a DataFrame from a table.
Notes
-----
Timezone aware datetime columns will be written as
``Timestamp with timezone`` type with SQLAlchemy if supported by the
database. Otherwise, the datetimes will be stored as timezone unaware
timestamps local to the original timezone.
.. versionadded:: 0.24.0
References
----------
.. [1] https://docs.sqlalchemy.org
.. [2] https://www.python.org/dev/peps/pep-0249/
Examples
--------
Create an in-memory SQLite database.
>>> from sqlalchemy import create_engine
>>> engine = create_engine('sqlite://', echo=False)
Create a table from scratch with 3 rows.
>>> df = pd.DataFrame({'name' : ['User 1', 'User 2', 'User 3']})
>>> df
name
0 User 1
1 User 2
2 User 3
>>> df.to_sql('users', con=engine)
>>> engine.execute("SELECT * FROM users").fetchall()
[(0, 'User 1'), (1, 'User 2'), (2, 'User 3')]
>>> df1 = pd.DataFrame({'name' : ['User 4', 'User 5']})
>>> df1.to_sql('users', con=engine, if_exists='append')
>>> engine.execute("SELECT * FROM users").fetchall()
[(0, 'User 1'), (1, 'User 2'), (2, 'User 3'),
(0, 'User 4'), (1, 'User 5')]
Overwrite the table with just ``df1``.
>>> df1.to_sql('users', con=engine, if_exists='replace',
... index_label='id')
>>> engine.execute("SELECT * FROM users").fetchall()
[(0, 'User 4'), (1, 'User 5')]
Specify the dtype (especially useful for integers with missing values).
Notice that while pandas is forced to store the data as floating point,
the database supports nullable integers. When fetching the data with
Python, we get back integer scalars.
>>> df = pd.DataFrame({"A": [1, None, 2]})
>>> df
A
0 1.0
1 NaN
2 2.0
>>> from sqlalchemy.types import Integer
>>> df.to_sql('integers', con=engine, index=False,
... dtype={"A": Integer()})
>>> engine.execute("SELECT * FROM integers").fetchall()
[(1,), (None,), (2,)]
################################################################################
################################## 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/32000/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32000/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/32000.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/32000",
"merged_at": "2020-02-15T10:58:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/32000.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/32000"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32001
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/32001/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32001/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/32001/events
|
https://github.com/pandas-dev/pandas/pull/32001
| 565,723,184
|
MDExOlB1bGxSZXF1ZXN0Mzc1Njk4MDUx
| 32,001
|
DOC PR09 Add . in the description parameter
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/409455?v=4",
"events_url": "https://api.github.com/users/za/events{/privacy}",
"followers_url": "https://api.github.com/users/za/followers",
"following_url": "https://api.github.com/users/za/following{/other_user}",
"gists_url": "https://api.github.com/users/za/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/za",
"id": 409455,
"login": "za",
"node_id": "MDQ6VXNlcjQwOTQ1NQ==",
"organizations_url": "https://api.github.com/users/za/orgs",
"received_events_url": "https://api.github.com/users/za/received_events",
"repos_url": "https://api.github.com/users/za/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/za/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/za/subscriptions",
"type": "User",
"url": "https://api.github.com/users/za"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-15T09:31:01Z
| 2020-02-15T10:29:08Z
| 2020-02-15T10:28:55Z
|
CONTRIBUTOR
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/32001/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32001/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/32001.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/32001",
"merged_at": "2020-02-15T10:28:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/32001.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/32001"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32002
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/32002/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32002/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/32002/events
|
https://github.com/pandas-dev/pandas/pull/32002
| 565,724,803
|
MDExOlB1bGxSZXF1ZXN0Mzc1Njk5MjE5
| 32,002
|
DOC: Update the pandas.DataFrame.plot docstring
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/22168623?v=4",
"events_url": "https://api.github.com/users/dmaharika/events{/privacy}",
"followers_url": "https://api.github.com/users/dmaharika/followers",
"following_url": "https://api.github.com/users/dmaharika/following{/other_user}",
"gists_url": "https://api.github.com/users/dmaharika/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dmaharika",
"id": 22168623,
"login": "dmaharika",
"node_id": "MDQ6VXNlcjIyMTY4NjIz",
"organizations_url": "https://api.github.com/users/dmaharika/orgs",
"received_events_url": "https://api.github.com/users/dmaharika/received_events",
"repos_url": "https://api.github.com/users/dmaharika/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dmaharika/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dmaharika/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dmaharika"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-02-15T09:46:58Z
| 2020-02-26T20:47:44Z
| 2020-02-26T20:47:43Z
|
NONE
| null |
Give description for 'figsize','xlim', and 'ylim'.
- [x] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/11
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Output of `python scripts/validate_docstrings.py pandas.DataFrame.plot`:|
################################################################################
###################### Docstring (pandas.DataFrame.plot) ######################
################################################################################
Make plots of Series or DataFrame.
Uses the backend specified by the
option ``plotting.backend``. By default, matplotlib is used.
Parameters
----------
data : Series or DataFrame
The object for which the method is called.
x : label or position, default None
Only used if data is a DataFrame.
y : label, position or list of label, positions, default None
Allows plotting of one column versus another. Only used if data is a
DataFrame.
kind : str
The kind of plot to produce:
- 'line' : line plot (default)
- 'bar' : vertical bar plot
- 'barh' : horizontal bar plot
- 'hist' : histogram
- 'box' : boxplot
- 'kde' : Kernel Density Estimation plot
- 'density' : same as 'kde'
- 'area' : area plot
- 'pie' : pie plot
- 'scatter' : scatter plot
- 'hexbin' : hexbin plot.
figsize : a tuple (width, height) in inches
The size of the figure to create in matplotlib.
use_index : bool, default True
Use index as ticks for x axis.
title : str or list
Title to use for the plot. If a string is passed, print the string
at the top of the figure. If a list is passed and `subplots` is
True, print each item in the list above the corresponding subplot.
grid : bool, default None (matlab style default)
Axis grid lines.
legend : bool or {'reverse'}
Place legend on axis subplots.
style : list or dict
The matplotlib line style per column.
logx : bool or 'sym', default False
Use log scaling or symlog scaling on x axis.
.. versionchanged:: 0.25.0
logy : bool or 'sym' default False
Use log scaling or symlog scaling on y axis.
.. versionchanged:: 0.25.0
loglog : bool or 'sym', default False
Use log scaling or symlog scaling on both x and y axes.
.. versionchanged:: 0.25.0
xticks : sequence
Values to use for the xticks.
yticks : sequence
Values to use for the yticks.
xlim : 2-tuple/list
Set or query x-axis limits.
ylim : 2-tuple/list
Set or query y-axis limits.
rot : int, default None
Rotation for ticks (xticks for vertical, yticks for horizontal
plots).
fontsize : int, default None
Font size for xticks and yticks.
colormap : str or matplotlib colormap object, default None
Colormap to select colors from. If string, load colormap with that
name from matplotlib.
colorbar : bool, optional
If True, plot colorbar (only relevant for 'scatter' and 'hexbin'
plots).
position : float
Specify relative alignments for bar plot layout.
From 0 (left/bottom-end) to 1 (right/top-end). Default is 0.5
(center).
table : bool, Series or DataFrame, default False
If True, draw a table using the data in the DataFrame and the data
will be transposed to meet matplotlib's default layout.
If a Series or DataFrame is passed, use passed data to draw a
table.
yerr : DataFrame, Series, array-like, dict and str
See :ref:`Plotting with Error Bars <visualization.errorbars>` for
detail.
xerr : DataFrame, Series, array-like, dict and str
Equivalent to yerr.
mark_right : bool, default True
When using a secondary_y axis, automatically mark the column
labels with "(right)" in the legend.
include_bool : bool, default is False
If True, boolean values can be plotted.
backend : str, default None
Backend to use instead of the backend specified in the option
``plotting.backend``. For instance, 'matplotlib'. Alternatively, to
specify the ``plotting.backend`` for the whole session, set
``pd.options.plotting.backend``.
.. versionadded:: 1.0.0
**kwargs
Options to pass to matplotlib plotting method.
Returns
-------
:class:`matplotlib.axes.Axes` or numpy.ndarray of them
If the backend is not the default matplotlib one, the return value
will be the object returned by the backend.
Notes
-----
- See matplotlib documentation online for more on this subject
- If `kind` = 'bar' or 'barh', you can specify relative alignments
for bar plot layout by `position` keyword.
From 0 (left/bottom-end) to 1 (right/top-end). Default is 0.5
(center)
################################################################################
################################## Validation ##################################
################################################################################
3 Errors found:
Unknown parameters {'colorbar', '**kwargs', 'style', 'use_index', 'rot', 'mark_right', 'grid', 'y', 'fontsize', 'position', 'kind', 'include_bool', 'logy', 'x', 'yerr', 'xlim', 'backend', 'table', 'logx', 'ylim', 'yticks', 'xerr', 'loglog', 'legend', 'colormap', 'figsize', 'title', 'xticks'}
See Also section not found
No examples section found
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/32002/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32002/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/32002.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/32002",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/32002.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/32002"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32003
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/32003/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32003/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/32003/events
|
https://github.com/pandas-dev/pandas/pull/32003
| 565,727,402
|
MDExOlB1bGxSZXF1ZXN0Mzc1NzAwOTEz
| 32,003
|
DOC: Fix SA04 errors from DataFrame.melt
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18410908?v=4",
"events_url": "https://api.github.com/users/giovanism/events{/privacy}",
"followers_url": "https://api.github.com/users/giovanism/followers",
"following_url": "https://api.github.com/users/giovanism/following{/other_user}",
"gists_url": "https://api.github.com/users/giovanism/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/giovanism",
"id": 18410908,
"login": "giovanism",
"node_id": "MDQ6VXNlcjE4NDEwOTA4",
"organizations_url": "https://api.github.com/users/giovanism/orgs",
"received_events_url": "https://api.github.com/users/giovanism/received_events",
"repos_url": "https://api.github.com/users/giovanism/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/giovanism/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/giovanism/subscriptions",
"type": "User",
"url": "https://api.github.com/users/giovanism"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-02-15T10:11:25Z
| 2020-03-02T12:52:34Z
| 2020-02-26T20:48:28Z
|
NONE
| null |
- [ ] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/10
- [ ] 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/32003/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32003/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/32003.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/32003",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/32003.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/32003"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32004
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/32004/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32004/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/32004/events
|
https://github.com/pandas-dev/pandas/pull/32004
| 565,729,223
|
MDExOlB1bGxSZXF1ZXN0Mzc1NzAyMjEz
| 32,004
|
DOC: Update pandas.DataFrame.droplevel docstring
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/30652154?v=4",
"events_url": "https://api.github.com/users/asyarif93/events{/privacy}",
"followers_url": "https://api.github.com/users/asyarif93/followers",
"following_url": "https://api.github.com/users/asyarif93/following{/other_user}",
"gists_url": "https://api.github.com/users/asyarif93/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/asyarif93",
"id": 30652154,
"login": "asyarif93",
"node_id": "MDQ6VXNlcjMwNjUyMTU0",
"organizations_url": "https://api.github.com/users/asyarif93/orgs",
"received_events_url": "https://api.github.com/users/asyarif93/received_events",
"repos_url": "https://api.github.com/users/asyarif93/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/asyarif93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/asyarif93/subscriptions",
"type": "User",
"url": "https://api.github.com/users/asyarif93"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-02-15T10:29:42Z
| 2020-02-25T01:54:52Z
| 2020-02-25T01:54:46Z
|
CONTRIBUTOR
| null |
- [ ] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/23
- [ ] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Output of `python scripts/validate_docstrings.py pandas.DataFrame.droplevel`:
```
################################################################################
#################### Docstring (pandas.DataFrame.droplevel) ####################
################################################################################
Return DataFrame with requested index / column level(s) removed.
.. versionadded:: 0.24.0
Parameters
----------
level : int, str, or list-like
If a string is given, must be the name of a level
If list-like, elements must be names or positional indexes
of levels.
axis : {0 or 'index', 1 or 'columns'}, default 0
Axis along which the level(s) is removed:
* 0 or 'index': remove level(s) in column.
* 1 or 'columns': remove level(s) in row.
Returns
-------
DataFrame
DataFrame with requested index / column level(s) removed.
Examples
--------
>>> df = pd.DataFrame([
... [1, 2, 3, 4],
... [5, 6, 7, 8],
... [9, 10, 11, 12]
... ]).set_index([0, 1]).rename_axis(['a', 'b'])
>>> df.columns = pd.MultiIndex.from_tuples([
... ('c', 'e'), ('d', 'f')
... ], names=['level_1', 'level_2'])
>>> df
level_1 c d
level_2 e f
a b
1 2 3 4
5 6 7 8
9 10 11 12
>>> df.droplevel('a')
level_1 c d
level_2 e f
b
2 3 4
6 7 8
10 11 12
>>> df.droplevel('level_2', axis=1)
level_1 c d
a b
1 2 3 4
5 6 7 8
9 10 11 12
################################################################################
################################## Validation ##################################
################################################################################
1 Errors found:
See Also section not found
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/32004/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32004/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/32004.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/32004",
"merged_at": "2020-02-25T01:54:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/32004.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/32004"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32005
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/32005/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32005/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/32005/events
|
https://github.com/pandas-dev/pandas/pull/32005
| 565,729,685
|
MDExOlB1bGxSZXF1ZXN0Mzc1NzAyNTQ3
| 32,005
|
doc: Add period to parameter description
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/60961251?v=4",
"events_url": "https://api.github.com/users/DavaIlhamHaeruzaman/events{/privacy}",
"followers_url": "https://api.github.com/users/DavaIlhamHaeruzaman/followers",
"following_url": "https://api.github.com/users/DavaIlhamHaeruzaman/following{/other_user}",
"gists_url": "https://api.github.com/users/DavaIlhamHaeruzaman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DavaIlhamHaeruzaman",
"id": 60961251,
"login": "DavaIlhamHaeruzaman",
"node_id": "MDQ6VXNlcjYwOTYxMjUx",
"organizations_url": "https://api.github.com/users/DavaIlhamHaeruzaman/orgs",
"received_events_url": "https://api.github.com/users/DavaIlhamHaeruzaman/received_events",
"repos_url": "https://api.github.com/users/DavaIlhamHaeruzaman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DavaIlhamHaeruzaman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DavaIlhamHaeruzaman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DavaIlhamHaeruzaman"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-15T10:34:47Z
| 2020-02-15T19:06:35Z
| 2020-02-15T19:06:26Z
|
CONTRIBUTOR
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
```
there are a few errors left:
################################################################################
################################## Validation ##################################
################################################################################
11 Errors found:
Parameters {'**fields', 'name', 'ordinal'} not documented
Unknown parameters {'second', 'minute', 'year', 'month', 'quarter', 'hour', 'day'}
Parameter "year" has no description
Parameter "month" has no description
Parameter "quarter" has no description
Parameter "day" has no description
Parameter "hour" has no description
Parameter "minute" has no description
Parameter "second" has no description
Parameter "dtype" has no description
Examples do not pass tests
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/32005/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32005/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/32005.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/32005",
"merged_at": "2020-02-15T19:06:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/32005.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/32005"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32006
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/32006/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32006/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/32006/events
|
https://github.com/pandas-dev/pandas/pull/32006
| 565,729,760
|
MDExOlB1bGxSZXF1ZXN0Mzc1NzAyNTk1
| 32,006
|
DOC: Fix pandas.index.copy summary documentation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16550836?v=4",
"events_url": "https://api.github.com/users/asepwhite/events{/privacy}",
"followers_url": "https://api.github.com/users/asepwhite/followers",
"following_url": "https://api.github.com/users/asepwhite/following{/other_user}",
"gists_url": "https://api.github.com/users/asepwhite/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/asepwhite",
"id": 16550836,
"login": "asepwhite",
"node_id": "MDQ6VXNlcjE2NTUwODM2",
"organizations_url": "https://api.github.com/users/asepwhite/orgs",
"received_events_url": "https://api.github.com/users/asepwhite/received_events",
"repos_url": "https://api.github.com/users/asepwhite/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/asepwhite/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/asepwhite/subscriptions",
"type": "User",
"url": "https://api.github.com/users/asepwhite"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-02-15T10:35:39Z
| 2020-02-26T20:36:11Z
| 2020-02-26T20:35:42Z
|
CONTRIBUTOR
| null |
- [ ] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/8
- [ ] tests added / passed
- [ ] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Output of `python scripts/validate_docstrings.py pandas.Index.copy`
################################################################################
######################## Docstring (pandas.Index.copy) ########################
################################################################################
Make a copy of this object.
Name and dtype sets those attributes on the new object.
Parameters
----------
name : Label, optional
Set name for new object.
deep : bool, default False
dtype : numpy dtype or pandas type, optional
Set dtype for new object.
names : list-like, optional
Kept for compatibility with MultiIndex. Should not be used.
Returns
-------
Index
Index refer to new object which is a copy of this object.
Notes
-----
In most cases, there should be no functional difference from using
``deep``, but if ``deep`` is passed it will attempt to deepcopy.
################################################################################
################################## Validation ##################################
################################################################################
3 Errors found:
Parameter "deep" has no description
See Also section not found
No examples section found
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/32006/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32006/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/32006.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/32006",
"merged_at": "2020-02-26T20:35:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/32006.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/32006"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32007
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/32007/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32007/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/32007/events
|
https://github.com/pandas-dev/pandas/pull/32007
| 565,730,160
|
MDExOlB1bGxSZXF1ZXN0Mzc1NzAyODkx
| 32,007
|
CLN 29574 Replace old string formating
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16593378?v=4",
"events_url": "https://api.github.com/users/panjacek/events{/privacy}",
"followers_url": "https://api.github.com/users/panjacek/followers",
"following_url": "https://api.github.com/users/panjacek/following{/other_user}",
"gists_url": "https://api.github.com/users/panjacek/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/panjacek",
"id": 16593378,
"login": "panjacek",
"node_id": "MDQ6VXNlcjE2NTkzMzc4",
"organizations_url": "https://api.github.com/users/panjacek/orgs",
"received_events_url": "https://api.github.com/users/panjacek/received_events",
"repos_url": "https://api.github.com/users/panjacek/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/panjacek/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/panjacek/subscriptions",
"type": "User",
"url": "https://api.github.com/users/panjacek"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-15T10:39:50Z
| 2020-02-16T06:31:37Z
| 2020-02-15T19:05:03Z
|
CONTRIBUTOR
| null |
Its my first contribution, modified the str formating to use fstrings
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] pandas/tests/frame/test_to_csv.py
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/32007/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32007/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/32007.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/32007",
"merged_at": "2020-02-15T19:05:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/32007.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/32007"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32008
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/32008/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32008/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/32008/events
|
https://github.com/pandas-dev/pandas/pull/32008
| 565,730,270
|
MDExOlB1bGxSZXF1ZXN0Mzc1NzAyOTYx
| 32,008
|
DOC: Add description for tz parameter in DatetimeIndex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18432852?v=4",
"events_url": "https://api.github.com/users/nsiregar/events{/privacy}",
"followers_url": "https://api.github.com/users/nsiregar/followers",
"following_url": "https://api.github.com/users/nsiregar/following{/other_user}",
"gists_url": "https://api.github.com/users/nsiregar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nsiregar",
"id": 18432852,
"login": "nsiregar",
"node_id": "MDQ6VXNlcjE4NDMyODUy",
"organizations_url": "https://api.github.com/users/nsiregar/orgs",
"received_events_url": "https://api.github.com/users/nsiregar/received_events",
"repos_url": "https://api.github.com/users/nsiregar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nsiregar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nsiregar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nsiregar"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] | null | 5
| 2020-02-15T10:40:58Z
| 2020-03-07T20:37:13Z
| 2020-03-07T20:37:12Z
|
NONE
| null |
- [ ] 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/32008/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32008/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/32008.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/32008",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/32008.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/32008"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32009
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/32009/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32009/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/32009/events
|
https://github.com/pandas-dev/pandas/pull/32009
| 565,731,291
|
MDExOlB1bGxSZXF1ZXN0Mzc1NzAzNjg1
| 32,009
|
DOC: Improve documentation for Index.where
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6379424?v=4",
"events_url": "https://api.github.com/users/laymonage/events{/privacy}",
"followers_url": "https://api.github.com/users/laymonage/followers",
"following_url": "https://api.github.com/users/laymonage/following{/other_user}",
"gists_url": "https://api.github.com/users/laymonage/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/laymonage",
"id": 6379424,
"login": "laymonage",
"node_id": "MDQ6VXNlcjYzNzk0MjQ=",
"organizations_url": "https://api.github.com/users/laymonage/orgs",
"received_events_url": "https://api.github.com/users/laymonage/received_events",
"repos_url": "https://api.github.com/users/laymonage/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/laymonage/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/laymonage/subscriptions",
"type": "User",
"url": "https://api.github.com/users/laymonage"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-02-15T10:50:46Z
| 2020-02-26T20:39:02Z
| 2020-02-26T20:38:48Z
|
CONTRIBUTOR
| null |
- [x] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/15
- [ ] 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/32009/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32009/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/32009.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/32009",
"merged_at": "2020-02-26T20:38:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/32009.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/32009"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32010
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/32010/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32010/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/32010/events
|
https://github.com/pandas-dev/pandas/pull/32010
| 565,731,760
|
MDExOlB1bGxSZXF1ZXN0Mzc1NzA0MDAz
| 32,010
|
DOC: Fix errors in pandas.Series.argmax
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8732795?v=4",
"events_url": "https://api.github.com/users/farhanreynaldo/events{/privacy}",
"followers_url": "https://api.github.com/users/farhanreynaldo/followers",
"following_url": "https://api.github.com/users/farhanreynaldo/following{/other_user}",
"gists_url": "https://api.github.com/users/farhanreynaldo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/farhanreynaldo",
"id": 8732795,
"login": "farhanreynaldo",
"node_id": "MDQ6VXNlcjg3MzI3OTU=",
"organizations_url": "https://api.github.com/users/farhanreynaldo/orgs",
"received_events_url": "https://api.github.com/users/farhanreynaldo/received_events",
"repos_url": "https://api.github.com/users/farhanreynaldo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/farhanreynaldo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/farhanreynaldo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/farhanreynaldo"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] | null | 5
| 2020-02-15T10:55:10Z
| 2020-02-15T11:33:09Z
| 2020-02-15T11:32:58Z
|
CONTRIBUTOR
| null |
- [x] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/18
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
output of `python scripts/validate_docstrings.py pandas.Series.argmax`:
```
################################################################################
################################## 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/32010/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32010/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/32010.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/32010",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/32010.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/32010"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32011
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/32011/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32011/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/32011/events
|
https://github.com/pandas-dev/pandas/pull/32011
| 565,731,943
|
MDExOlB1bGxSZXF1ZXN0Mzc1NzA0MTMx
| 32,011
|
CI: temporary fix to the CI
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4",
"events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaharNaveh/followers",
"following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaharNaveh",
"id": 50263213,
"login": "ShaharNaveh",
"node_id": "MDQ6VXNlcjUwMjYzMjEz",
"organizations_url": "https://api.github.com/users/ShaharNaveh/orgs",
"received_events_url": "https://api.github.com/users/ShaharNaveh/received_events",
"repos_url": "https://api.github.com/users/ShaharNaveh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaharNaveh"
}
|
[
{
"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": "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"
}
| 17
| 2020-02-15T10:56:36Z
| 2020-02-29T10:30:46Z
| 2020-02-15T13:14:12Z
|
MEMBER
| null |
ref #31992
---
This is just a temporary fix to the CI.
Until someone smarter than me fix 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/32011/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32011/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/32011.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/32011",
"merged_at": "2020-02-15T13:14:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/32011.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/32011"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32012
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/32012/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32012/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/32012/events
|
https://github.com/pandas-dev/pandas/pull/32012
| 565,732,283
|
MDExOlB1bGxSZXF1ZXN0Mzc1NzA0Mzkx
| 32,012
|
(wip)BUG: make sure combine doesn't alter dtype for nullable dtypes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
}
|
[] |
closed
| false
| null |
[] | null | 0
| 2020-02-15T10:59:40Z
| 2020-10-10T14:15:00Z
| 2020-02-28T10:30:50Z
|
MEMBER
| null |
- [ ] closes #31899
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Haven't added new tests, but have changed the expected return dtype in existing ones
EDIT
----
This is the wrong fix - for, say
```
s1.combine(s2, lambda x, y: x<y)
```
the dtype _would_ be expected to change (in this case to bool)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/32012/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32012/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/32012.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/32012",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/32012.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/32012"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32013
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/32013/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32013/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/32013/events
|
https://github.com/pandas-dev/pandas/issues/32013
| 565,732,787
|
MDU6SXNzdWU1NjU3MzI3ODc=
| 32,013
|
pandas.index.copy remove index name information when specifying new dtype
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16550836?v=4",
"events_url": "https://api.github.com/users/asepwhite/events{/privacy}",
"followers_url": "https://api.github.com/users/asepwhite/followers",
"following_url": "https://api.github.com/users/asepwhite/following{/other_user}",
"gists_url": "https://api.github.com/users/asepwhite/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/asepwhite",
"id": 16550836,
"login": "asepwhite",
"node_id": "MDQ6VXNlcjE2NTUwODM2",
"organizations_url": "https://api.github.com/users/asepwhite/orgs",
"received_events_url": "https://api.github.com/users/asepwhite/received_events",
"repos_url": "https://api.github.com/users/asepwhite/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/asepwhite/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/asepwhite/subscriptions",
"type": "User",
"url": "https://api.github.com/users/asepwhite"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-15T11:04:11Z
| 2020-03-27T00:00:35Z
| 2020-03-27T00:00:35Z
|
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
>>> import pandas as pd
>>> named_idx = pd.Index([17.3, 69.221, 33.1, 15.5, 19.3, 74.8, 10, 5.5]).set_names('old_name')
>>> named_idx
Float64Index([17.3, 69.221, 33.1, 15.5, 19.3, 74.8, 10.0, 5.5], dtype='float64', name='old_name')
>>> named_idx.copy(name='new_name', dtype='int64')
Int64Index([17, 69, 33, 15, 19, 74, 10, 5], dtype='int64')
>>> named_idx.copy(dtype='int64')
Int64Index([17, 69, 33, 15, 19, 74, 10, 5], dtype='int64')
```
#### Problem description
When set new dtype parameter in function pandas.index.copy somehow it remove name information on new object
#### Expected Output
>>> import pandas as pd
>>> named_idx = pd.Index([17.3, 69.221, 33.1, 15.5, 19.3, 74.8, 10, 5.5]).set_names('old_name')
>>> named_idx
Float64Index([17.3, 69.221, 33.1, 15.5, 19.3, 74.8, 10.0, 5.5], dtype='float64', name='old_name')
>>> named_idx.copy(name='new_name', dtype='int64')
Int64Index([17, 69, 33, 15, 19, 74, 10, 5], dtype='int64', name='new_name')
>>> named_idx.copy(dtype='int64')
Int64Index([17, 69, 33, 15, 19, 74, 10, 5], dtype='int64', name='old_name')
#### Output of ``pd.show_versions()``
<details>
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
</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/32013/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32013/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/32014
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/32014/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32014/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/32014/events
|
https://github.com/pandas-dev/pandas/pull/32014
| 565,732,966
|
MDExOlB1bGxSZXF1ZXN0Mzc1NzA0ODcz
| 32,014
|
DOC: Update pandas.Series.between_time docstring params
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13204092?v=4",
"events_url": "https://api.github.com/users/adamwdb/events{/privacy}",
"followers_url": "https://api.github.com/users/adamwdb/followers",
"following_url": "https://api.github.com/users/adamwdb/following{/other_user}",
"gists_url": "https://api.github.com/users/adamwdb/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/adamwdb",
"id": 13204092,
"login": "adamwdb",
"node_id": "MDQ6VXNlcjEzMjA0MDky",
"organizations_url": "https://api.github.com/users/adamwdb/orgs",
"received_events_url": "https://api.github.com/users/adamwdb/received_events",
"repos_url": "https://api.github.com/users/adamwdb/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/adamwdb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/adamwdb/subscriptions",
"type": "User",
"url": "https://api.github.com/users/adamwdb"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-15T11:05:41Z
| 2020-02-15T19:10:34Z
| 2020-02-15T19:10:24Z
|
CONTRIBUTOR
| null |
- [x] closes [https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/20](https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/20)
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
output from python scripts/validate_docstrings.py pandas.Series.between_time:
################################################################################
#################### Docstring (pandas.Series.between_time) ####################
################################################################################
Select values between particular times of the day (e.g., 9:00-9:30 AM).
By setting ``start_time`` to be later than ``end_time``,
you can get the times that are *not* between the two times.
Parameters
----------
start_time : datetime.time or str
The first time value.
end_time : datetime.time or str
The second time value.
include_start : bool, default True
Adding start_time value in the result.
include_end : bool, default True
Adding end_time value in the result.
axis : {0 or 'index', 1 or 'columns'}, default 0
Determine range time on index or columns value.
.. versionadded:: 0.24.0
Returns
-------
Series or DataFrame
If axis set on columns, it will return DataFrame format, vice versa.
Raises
------
TypeError
If the index is not a :class:`DatetimeIndex`
See Also
--------
at_time : Select values at a particular time of the day.
first : Select initial periods of time series based on a date offset.
last : Select final periods of time series based on a date offset.
DatetimeIndex.indexer_between_time : Get just the index locations for
values between particular times of the day.
Examples
--------
>>> i = pd.date_range('2018-04-09', periods=4, freq='1D20min')
>>> ts = pd.DataFrame({'A': [1, 2, 3, 4]}, index=i)
>>> ts
A
2018-04-09 00:00:00 1
2018-04-10 00:20:00 2
2018-04-11 00:40:00 3
2018-04-12 01:00:00 4
>>> ts.between_time('0:15', '0:45')
A
2018-04-10 00:20:00 2
2018-04-11 00:40:00 3
You get the times that are *not* between two times by setting
``start_time`` later than ``end_time``:
>>> ts.between_time('0:45', '0:15')
A
2018-04-09 00:00:00 1
2018-04-12 01:00:00 4
################################################################################
################################## 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/32014/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32014/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/32014.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/32014",
"merged_at": "2020-02-15T19:10:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/32014.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/32014"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32015
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/32015/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32015/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/32015/events
|
https://github.com/pandas-dev/pandas/pull/32015
| 565,733,707
|
MDExOlB1bGxSZXF1ZXN0Mzc1NzA1NDE1
| 32,015
|
DOC: Improve docstring of Index.delete
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18297118?v=4",
"events_url": "https://api.github.com/users/andhikayusup/events{/privacy}",
"followers_url": "https://api.github.com/users/andhikayusup/followers",
"following_url": "https://api.github.com/users/andhikayusup/following{/other_user}",
"gists_url": "https://api.github.com/users/andhikayusup/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/andhikayusup",
"id": 18297118,
"login": "andhikayusup",
"node_id": "MDQ6VXNlcjE4Mjk3MTE4",
"organizations_url": "https://api.github.com/users/andhikayusup/orgs",
"received_events_url": "https://api.github.com/users/andhikayusup/received_events",
"repos_url": "https://api.github.com/users/andhikayusup/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/andhikayusup/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andhikayusup/subscriptions",
"type": "User",
"url": "https://api.github.com/users/andhikayusup"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-02-15T11:12:36Z
| 2020-02-24T15:11:04Z
| 2020-02-15T19:08:13Z
|
CONTRIBUTOR
| null |
- [x] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/13
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Output from validate_docstrings.py
################################################################################
####################### Docstring (pandas.Index.delete) #######################
################################################################################
Make new Index with passed location(-s) deleted.
Use array of integer as loc parameter to delete multiple locations.
Parameters
----------
loc : int
Location of item(-s) which will be deleted.
Returns
-------
Index
New Index with passed location(-s) deleted.
See Also
--------
numpy.delete : Delete any rows and column from NumPy array (ndarray).
Examples
--------
>>> idx = pd.Index(['a', 'b', 'c'])
>>> idx.delete(1) # Deleting 'b'
Index(['a', 'c'], dtype='object')
>>> idx = pd.Index(['a', 'b', 'c'])
>>> idx.delete([0, 2])
Index(['b'], dtype='object')
################################################################################
################################## 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/32015/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/32015/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/32015.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/32015",
"merged_at": "2020-02-15T19:08:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/32015.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/32015"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.