url
stringlengths 55
59
| repository_url
stringclasses 1
value | labels_url
stringlengths 69
73
| comments_url
stringlengths 64
68
| events_url
stringlengths 62
66
| html_url
stringlengths 44
49
| id
int64 338k
1.06B
| node_id
stringlengths 18
32
| number
int64 1
44.6k
| title
stringlengths 1
590
| user
dict | labels
listlengths 0
9
| state
stringclasses 2
values | locked
bool 2
classes | assignee
dict | assignees
listlengths 0
5
| milestone
dict | comments
int64 0
477
| created_at
unknown | updated_at
unknown | closed_at
unknown | author_association
stringclasses 3
values | active_lock_reason
stringclasses 4
values | body
stringlengths 0
251k
⌀ | reactions
dict | timeline_url
stringlengths 64
68
| performed_via_github_app
float64 | draft
float64 0
1
⌀ | pull_request
dict |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://api.github.com/repos/pandas-dev/pandas/issues/40719 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40719/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40719/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40719/events | https://github.com/pandas-dev/pandas/issues/40719 | 847,813,580 | MDU6SXNzdWU4NDc4MTM1ODA= | 40,719 | BUG: tm.assert_frame_equal fails to raise near int64 implementation bounds | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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"
}
] | open | false | null | [] | null | 4 | "2021-04-01T03:23:04Z" | "2021-05-21T17:28:43Z" | null | MEMBER | null | passing check_exact=True makes it raise as expected, but I was surprised to find it necessary. This likely hides some bugs.
Motivating example adapted from tests.groupby.test_function.test_cummin.
```
dtype = np.dtype(np.int64)
min_val = np.iinfo(dtype).min
base_df = DataFrame({"A": [1, 1, 1, 1, 2, 2, 2, 2], "B": [3, 4, 3, 2, 2, 3, 2, 1]})
expected_mins = [3, 3, 3, 2, 2, 2, 2, 1]
expected = DataFrame({"B": expected_mins}).astype(dtype)
df = base_df.astype(dtype)
# Test w/ min value for dtype
df.loc[[2, 6], "B"] = min_val
df.loc[[1, 5], "B"] = min_val + 1
result = df.groupby("A").cummin()
expected.loc[[1, 5], "B"] = min_val + 1
expected.loc[[2, 3, 6, 7], "B"] = min_val
tm.assert_frame_equal(result, expected) # <-- passes
tm.assert_frame_equal(result, expected, check_exact=True) # <-- raises
>>> result
B
0 3
1 -9223372036854775808
2 -9223372036854775808
3 -9223372036854775808
4 2
5 -9223372036854775808
6 -9223372036854775808
7 -9223372036854775808
>>> expected
B
0 3
1 -9223372036854775807
2 -9223372036854775808
3 -9223372036854775808
4 2
5 -9223372036854775807
6 -9223372036854775808
7 -9223372036854775808
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40719/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40719/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40720 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40720/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40720/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40720/events | https://github.com/pandas-dev/pandas/issues/40720 | 848,182,160 | MDU6SXNzdWU4NDgxODIxNjA= | 40,720 | BUG: GroupBy.apply doesn't add group keys to index whether setting group_keys=True or not. | {
"avatar_url": "https://avatars.githubusercontent.com/u/18346451?v=4",
"events_url": "https://api.github.com/users/taozuoqiao/events{/privacy}",
"followers_url": "https://api.github.com/users/taozuoqiao/followers",
"following_url": "https://api.github.com/users/taozuoqiao/following{/other_user}",
"gists_url": "https://api.github.com/users/taozuoqiao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/taozuoqiao",
"id": 18346451,
"login": "taozuoqiao",
"node_id": "MDQ6VXNlcjE4MzQ2NDUx",
"organizations_url": "https://api.github.com/users/taozuoqiao/orgs",
"received_events_url": "https://api.github.com/users/taozuoqiao/received_events",
"repos_url": "https://api.github.com/users/taozuoqiao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/taozuoqiao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/taozuoqiao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/taozuoqiao"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] | open | false | null | [] | null | 1 | "2021-04-01T08:07:38Z" | "2021-08-19T03:40:23Z" | null | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
code
```python
import pandas as pd
print(pd.__version__)
data = {
'groupby_col': ['A', 'A', 'A', 'A', 'A', 'B', 'B', 'B', 'B', 'B', ],
'agg_col': [1, 1, 0, 1, 0, 0, 0, 0, 1, 0],
}
df = pd.DataFrame(data)
print(df.groupby('groupby_col', group_keys=True).apply(lambda x: x.rolling(4).mean()))
print(df.groupby('groupby_col', group_keys=False).apply(lambda x: x.rolling(4).mean()))
```
output
```
1.2.3
agg_col
0 NaN
1 NaN
2 NaN
3 0.75
4 0.50
5 NaN
6 NaN
7 NaN
8 0.25
9 0.25
agg_col
0 NaN
1 NaN
2 NaN
3 0.75
4 0.50
5 NaN
6 NaN
7 NaN
8 0.25
9 0.25
```
The group keys should be add to index when setting group_keys=True(the default option). And when I use `pandas==1.1.5`, the output is as expected:
```
1.1.5
agg_col
groupby_col
A 0 NaN
1 NaN
2 NaN
3 0.75
4 0.50
B 5 NaN
6 NaN
7 NaN
8 0.25
9 0.25
agg_col
0 NaN
1 NaN
2 NaN
3 0.75
4 0.50
5 NaN
6 NaN
7 NaN
8 0.25
9 0.25
```
---
But I find that examples in https://github.com/pandas-dev/pandas/issues/38787#issuecomment-759660512 does work as expected even in 1.2.3:
code
```python
df = pd.DataFrame({"key": [1, 1, 1, 2, 2, 2, 3, 3, 3], "value": range(9)})
print(df.groupby("key", group_keys=True).apply(lambda x: x[:2]))
print(df.groupby("key", group_keys=False).apply(lambda x: x[:2]))
```
output
```
key value
key
1 0 1 0
1 1 1
2 3 2 3
4 2 4
3 6 3 6
7 3 7
key value
0 1 0
1 1 1
3 2 3
4 2 4
6 3 6
7 3 7
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40720/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40720/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40721 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40721/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40721/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40721/events | https://github.com/pandas-dev/pandas/issues/40721 | 848,187,748 | MDU6SXNzdWU4NDgxODc3NDg= | 40,721 | BUG: to_sql performance decreases dramatically with more than 10 columns (SQL Server) | {
"avatar_url": "https://avatars.githubusercontent.com/u/662602?v=4",
"events_url": "https://api.github.com/users/nurglexxx/events{/privacy}",
"followers_url": "https://api.github.com/users/nurglexxx/followers",
"following_url": "https://api.github.com/users/nurglexxx/following{/other_user}",
"gists_url": "https://api.github.com/users/nurglexxx/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nurglexxx",
"id": 662602,
"login": "nurglexxx",
"node_id": "MDQ6VXNlcjY2MjYwMg==",
"organizations_url": "https://api.github.com/users/nurglexxx/orgs",
"received_events_url": "https://api.github.com/users/nurglexxx/received_events",
"repos_url": "https://api.github.com/users/nurglexxx/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nurglexxx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nurglexxx/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nurglexxx"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "5319e7",
"default": false,
"description": "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": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] | closed | false | null | [] | null | 3 | "2021-04-01T08:11:16Z" | "2021-08-19T03:46:02Z" | "2021-08-19T03:46:02Z" | NONE | null | - [x ] I have checked that this issue has not already been reported.
- [x ] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
Found an interesting issue regarding the performance of to_sql() in combination with SQL Server.
OS: Centos/Redhat
DB Driver: ODBC Driver 17 for SQL Server
DB Server (remote): SQLServer 12
Performance:
34484 rows x 10 columns => >10k records per second
34484 rows x 12 columns => ~500 records per second
I tested it on two different Servers and DB's and the type of data doesn't seem to matter (all dtypes are object), the drop happens always if the df is havin more than 10 Columns
```python
engine = sqlalchemy.create_engine("mssql+pyodbc:///?odbc_connect=%s?charset=utf8" % params, fast_executemany=True)
sqlalchemy_connection = engine.connect()
....
df.to_sql(name='TEST', con=con, if_exists='append', index=False)
```
(Tested it now with postgresql, the "bug" does not appear there, get around 14k/sec)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40721/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40721/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40722 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40722/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40722/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40722/events | https://github.com/pandas-dev/pandas/issues/40722 | 848,229,856 | MDU6SXNzdWU4NDgyMjk4NTY= | 40,722 | BUG: NaT comparison with numpy array doesn't work element-wise | {
"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": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] | closed | false | null | [] | {
"closed_at": "2021-04-13T15:44:36Z",
"closed_issues": 46,
"created_at": "2021-03-01T08:32:08Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-04-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/84",
"id": 6490488,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/84/labels",
"node_id": "MDk6TWlsZXN0b25lNjQ5MDQ4OA==",
"number": 84,
"open_issues": 0,
"state": "closed",
"title": "1.2.4",
"updated_at": "2021-04-14T14:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/84"
} | 2 | "2021-04-01T08:38:21Z" | "2021-04-01T18:17:35Z" | "2021-04-01T18:17:35Z" | MEMBER | null | I noticed the following behaviour:
```
In [43]: np.array([1, 2, 3]) == pd.Timedelta("1 days")
Out[43]: array([False, False, False])
In [44]: np.array([1, 2, 3]) == pd.Timedelta("nat")
Out[44]: False
```
@jbrockmendel do you know if this is something we control? (it's similar as the numeric/string comparison with numpy, but here the scalar is one defined by pandas) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40722/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40722/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40723 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40723/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40723/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40723/events | https://github.com/pandas-dev/pandas/pull/40723 | 848,285,824 | MDExOlB1bGxSZXF1ZXN0NjA3MjQ3Mzc0 | 40,723 | BUG: fix comparison of NaT with numpy array | {
"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": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] | closed | false | null | [] | {
"closed_at": "2021-04-13T15:44:36Z",
"closed_issues": 46,
"created_at": "2021-03-01T08:32:08Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-04-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/84",
"id": 6490488,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/84/labels",
"node_id": "MDk6TWlsZXN0b25lNjQ5MDQ4OA==",
"number": 84,
"open_issues": 0,
"state": "closed",
"title": "1.2.4",
"updated_at": "2021-04-14T14:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/84"
} | 1 | "2021-04-01T09:14:42Z" | "2021-04-01T18:17:40Z" | "2021-04-01T18:17:35Z" | MEMBER | null | Closes #40722
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40723/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40723/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40723.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40723",
"merged_at": "2021-04-01T18:17:35Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40723.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40723"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40724 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40724/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40724/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40724/events | https://github.com/pandas-dev/pandas/pull/40724 | 848,347,622 | MDExOlB1bGxSZXF1ZXN0NjA3Mjk5NTI4 | 40,724 | ENH: MatplotlibDeprecationWarning: is_first_col function was deprecated | {
"avatar_url": "https://avatars.githubusercontent.com/u/38285979?v=4",
"events_url": "https://api.github.com/users/arnaujc91/events{/privacy}",
"followers_url": "https://api.github.com/users/arnaujc91/followers",
"following_url": "https://api.github.com/users/arnaujc91/following{/other_user}",
"gists_url": "https://api.github.com/users/arnaujc91/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/arnaujc91",
"id": 38285979,
"login": "arnaujc91",
"node_id": "MDQ6VXNlcjM4Mjg1OTc5",
"organizations_url": "https://api.github.com/users/arnaujc91/orgs",
"received_events_url": "https://api.github.com/users/arnaujc91/received_events",
"repos_url": "https://api.github.com/users/arnaujc91/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/arnaujc91/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arnaujc91/subscriptions",
"type": "User",
"url": "https://api.github.com/users/arnaujc91"
} | [
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 2 | "2021-04-01T10:38:22Z" | "2021-04-01T15:57:30Z" | "2021-04-01T15:56:24Z" | NONE | null | Fix for [#40714](https://github.com/pandas-dev/pandas/issues/40714)
The is_first_col function was deprecated in Matplotlib 3.4 and will be removed two minor releases later. Used ax.get_subplotspec().is_first_col() instead.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40724/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40724/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40724.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40724",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/40724.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40724"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40725 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40725/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40725/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40725/events | https://github.com/pandas-dev/pandas/pull/40725 | 848,348,424 | MDExOlB1bGxSZXF1ZXN0NjA3MzAwMjE1 | 40,725 | BUG: [ArrowStringArray] Recognize ArrowStringArray in infer_dtype | {
"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": "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": "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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 8 | "2021-04-01T10:39:32Z" | "2021-04-09T08:59:41Z" | "2021-04-09T01:41:44Z" | MEMBER | null | PR is draft. follow-up to #40679, https://github.com/pandas-dev/pandas/pull/40679#issuecomment-809642594 which is not yet merged and need to make window to run benchmarks https://github.com/pandas-dev/pandas/pull/40679#pullrequestreview-623553887
on master
```
>>> pd.__version__
'1.3.0.dev0+1180.gdd697e1cca'
>>>
>>> from pandas.core.arrays.string_arrow import ArrowStringDtype
>>>
>>> arr = ArrowStringDtype.construct_array_type()._from_sequence(["B", pd.NA, "A"])
>>>
>>> arr
<ArrowStringArray>
['B', <NA>, 'A']
Length: 3, dtype: arrow_string
>>>
>>> pd._libs.lib.infer_dtype(arr)
'unknown-array'
>>>
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40725/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40725/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40725.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40725",
"merged_at": "2021-04-09T01:41:44Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40725.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40725"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40726 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40726/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40726/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40726/events | https://github.com/pandas-dev/pandas/pull/40726 | 848,409,599 | MDExOlB1bGxSZXF1ZXN0NjA3MzUyNTYw | 40,726 | BUG: Do not allow boolean values for indexing with .loc without a boolean index. | {
"avatar_url": "https://avatars.githubusercontent.com/u/5946712?v=4",
"events_url": "https://api.github.com/users/DriesSchaumont/events{/privacy}",
"followers_url": "https://api.github.com/users/DriesSchaumont/followers",
"following_url": "https://api.github.com/users/DriesSchaumont/following{/other_user}",
"gists_url": "https://api.github.com/users/DriesSchaumont/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DriesSchaumont",
"id": 5946712,
"login": "DriesSchaumont",
"node_id": "MDQ6VXNlcjU5NDY3MTI=",
"organizations_url": "https://api.github.com/users/DriesSchaumont/orgs",
"received_events_url": "https://api.github.com/users/DriesSchaumont/received_events",
"repos_url": "https://api.github.com/users/DriesSchaumont/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DriesSchaumont/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DriesSchaumont/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DriesSchaumont"
} | [
{
"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": "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"
} | 12 | "2021-04-01T12:11:41Z" | "2021-04-06T19:25:50Z" | "2021-04-06T19:18:52Z" | MEMBER | null | - [x] closes #20432
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40726/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40726/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40726.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40726",
"merged_at": "2021-04-06T19:18:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40726.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40726"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40727 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40727/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40727/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40727/events | https://github.com/pandas-dev/pandas/pull/40727 | 848,412,618 | MDExOlB1bGxSZXF1ZXN0NjA3MzU1MTg2 | 40,727 | PERF: numexpr doesn't support floordiv, so don't try | {
"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": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 5 | "2021-04-01T12:15:39Z" | "2021-04-02T06:29:24Z" | "2021-04-01T22:28:08Z" | MEMBER | null | See overview of supported operators: https://numexpr.readthedocs.io/projects/NumExpr3/en/latest/user_guide.html#supported-operators. By trying to use it, we were falling back to the (slower) `_masked_arith_op`
Discovered by investigating the arithmetic benchmarks at https://github.com/pandas-dev/pandas/issues/39146#issuecomment-799482699
For example using the `arithmetic.IntFrameWithScalar.time_frame_op_with_scalar(<class 'numpy.float64'>, 3.0, <built-in function floordiv>)` benchmark:
```python
import operator
dtype = np.float64
arr = np.random.randn(20000, 100)
df = pd.DataFrame(arr.astype(dtype))
scalar = 3.0
op = operator.floordiv
```
```
In [2]: %timeit op(df, scalar)
56.4 ms ± 723 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) <-- master
24.3 ms ± 236 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) <-- PR
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40727/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40727/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40727.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40727",
"merged_at": "2021-04-01T22:28:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40727.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40727"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40728 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40728/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40728/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40728/events | https://github.com/pandas-dev/pandas/pull/40728 | 848,438,676 | MDExOlB1bGxSZXF1ZXN0NjA3Mzc3NTE2 | 40,728 | REF: only fallback to masked op for object dtype | {
"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": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 6 | "2021-04-01T12:49:22Z" | "2021-04-02T15:12:16Z" | "2021-04-02T15:09:05Z" | MEMBER | null | While investigating https://github.com/pandas-dev/pandas/pull/40727, I noticed that we are often trying `_masked_arith_op`, while it will end up giving the exact same error (for example when using ints, which don't have NaNs).
From what I understand, I *think* that, in theory, we only need to fallback to a masked version of the op when having object dtype (I might be wrong here, though). So this PR tries that.
For numeric dtypes, all operations should simply work with NaNs?
For object dtype, we can have NaN or None, which doesn't necessarily work out of the box, so here we need to fallback to a masked operation.
ExtensionArrays don't end up here, and datetimelike dtypes get wrapped into EAs before getting here.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40728/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40728/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40728.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40728",
"merged_at": "2021-04-02T15:09:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40728.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40728"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40729 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40729/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40729/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40729/events | https://github.com/pandas-dev/pandas/issues/40729 | 848,493,310 | MDU6SXNzdWU4NDg0OTMzMTA= | 40,729 | BUG: Cannot convert from `object` numeric strings to Float64Dtype | {
"avatar_url": "https://avatars.githubusercontent.com/u/64278226?v=4",
"events_url": "https://api.github.com/users/tamargrey/events{/privacy}",
"followers_url": "https://api.github.com/users/tamargrey/followers",
"following_url": "https://api.github.com/users/tamargrey/following{/other_user}",
"gists_url": "https://api.github.com/users/tamargrey/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tamargrey",
"id": 64278226,
"login": "tamargrey",
"node_id": "MDQ6VXNlcjY0Mjc4MjI2",
"organizations_url": "https://api.github.com/users/tamargrey/orgs",
"received_events_url": "https://api.github.com/users/tamargrey/received_events",
"repos_url": "https://api.github.com/users/tamargrey/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tamargrey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tamargrey/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tamargrey"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] | open | false | null | [] | {
"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 | "2021-04-01T13:57:25Z" | "2021-08-19T03:46:38Z" | null | NONE | null | #### Code Sample, a copy-pastable example
```python
import pandas as pd
series = pd.Series(['1', '2', '3', '4'], dtype='object')
series.astype(pd.Float64Dtype())
```
the above produces a `TypeError: object cannot be converted to a FloatingDtype`:
<details>
```python-traceback
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-20-a9dee24fff9e> in <module>
15 assert series.astype('float64').dtype == 'float64'
16 # TypeError: object cannot be converted to a FloatingDtype - same for DataFrames
---> 17 series.astype(pd.Float64Dtype())
18
~/.pyenv/versions/3.8.2/envs/woodwork/lib/python3.8/site-packages/pandas/core/generic.py in astype(self, dtype, copy, errors)
5875 else:
5876 # else, only a single dtype is given
-> 5877 new_data = self._mgr.astype(dtype=dtype, copy=copy, errors=errors)
5878 return self._constructor(new_data).__finalize__(self, method="astype")
5879
~/.pyenv/versions/3.8.2/envs/woodwork/lib/python3.8/site-packages/pandas/core/internals/managers.py in astype(self, dtype, copy, errors)
629 self, dtype, copy: bool = False, errors: str = "raise"
630 ) -> "BlockManager":
--> 631 return self.apply("astype", dtype=dtype, copy=copy, errors=errors)
632
633 def convert(
~/.pyenv/versions/3.8.2/envs/woodwork/lib/python3.8/site-packages/pandas/core/internals/managers.py in apply(self, f, align_keys, ignore_failures, **kwargs)
425 applied = b.apply(f, **kwargs)
426 else:
--> 427 applied = getattr(b, f)(**kwargs)
428 except (TypeError, NotImplementedError):
429 if not ignore_failures:
~/.pyenv/versions/3.8.2/envs/woodwork/lib/python3.8/site-packages/pandas/core/internals/blocks.py in astype(self, dtype, copy, errors)
671 vals1d = values.ravel()
672 try:
--> 673 values = astype_nansafe(vals1d, dtype, copy=True)
674 except (ValueError, TypeError):
675 # e.g. astype_nansafe can fail on object-dtype of strings
~/.pyenv/versions/3.8.2/envs/woodwork/lib/python3.8/site-packages/pandas/core/dtypes/cast.py in astype_nansafe(arr, dtype, copy, skipna)
1017 # dispatch on extension dtype if needed
1018 if is_extension_array_dtype(dtype):
-> 1019 return dtype.construct_array_type()._from_sequence(arr, dtype=dtype, copy=copy)
1020
1021 if not isinstance(dtype, np.dtype):
~/.pyenv/versions/3.8.2/envs/woodwork/lib/python3.8/site-packages/pandas/core/arrays/floating.py in _from_sequence(cls, scalars, dtype, copy)
278 cls, scalars, *, dtype=None, copy: bool = False
279 ) -> "FloatingArray":
--> 280 values, mask = coerce_to_array(scalars, dtype=dtype, copy=copy)
281 return FloatingArray(values, mask)
282
~/.pyenv/versions/3.8.2/envs/woodwork/lib/python3.8/site-packages/pandas/core/arrays/floating.py in coerce_to_array(values, dtype, mask, copy)
160 "mixed-integer-float",
161 ]:
--> 162 raise TypeError(f"{values.dtype} cannot be converted to a FloatingDtype")
163
164 elif is_bool_dtype(values) and is_float_dtype(dtype):
TypeError: object cannot be converted to a FloatingDtype
```
</details>
#### Problem description
With `float64`, this conversion works, and as the series' dtype would get inferred as `object` even if no dtype was specified, it is unexpected to me that we would not be able to convert to the `Float64Dtype` from that.
#### Expected Output
```python
pd.Series([1.0, 2.0, 3.0, 4.0], dtype=Float64Dtype)
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.8.2.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Sun Jul 5 00:43:10 PDT 2020; root:xnu-6153.141.1~9/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.3
numpy : 1.19.5
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 41.2.0
Cython : None
pytest : 6.0.1
hypothesis : None
sphinx : 3.2.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.18.1
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.8.7
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 3.0.0
pyxlsb : None
s3fs : None
scipy : 1.6.2
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40729/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40729/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40730 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40730/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40730/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40730/events | https://github.com/pandas-dev/pandas/issues/40730 | 848,501,764 | MDU6SXNzdWU4NDg1MDE3NjQ= | 40,730 | BUG: qcut fails with Float64Dtype | {
"avatar_url": "https://avatars.githubusercontent.com/u/64278226?v=4",
"events_url": "https://api.github.com/users/tamargrey/events{/privacy}",
"followers_url": "https://api.github.com/users/tamargrey/followers",
"following_url": "https://api.github.com/users/tamargrey/following{/other_user}",
"gists_url": "https://api.github.com/users/tamargrey/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tamargrey",
"id": 64278226,
"login": "tamargrey",
"node_id": "MDQ6VXNlcjY0Mjc4MjI2",
"organizations_url": "https://api.github.com/users/tamargrey/orgs",
"received_events_url": "https://api.github.com/users/tamargrey/received_events",
"repos_url": "https://api.github.com/users/tamargrey/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tamargrey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tamargrey/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tamargrey"
} | [
{
"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": "9aace2",
"default": false,
"description": "cut, qcut",
"id": 1639305834,
"name": "cut",
"node_id": "MDU6TGFiZWwxNjM5MzA1ODM0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/cut"
},
{
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | "2021-04-01T14:07:16Z" | "2021-04-28T14:38:51Z" | "2021-04-28T14:38:51Z" | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
series = pd.Series([1.0, 2.0, 3.0, 4.4], dtype=pd.Float64Dtype())
pd.qcut(series, 2)
```
#### Problem description
`pd.qcut` currently accepts the nullable `Int64Dtype` as well as `'float64'`, so I would expect it to work with the `Float64Dtype` as well. Instead the following error is produced:
```python-traceback
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-29-1db98f70db38> in <module>
1 series = pd.Series([1.0,2.0,3.0,4.0], dtype=pd.Float64Dtype())
----> 2 pd.qcut(series, 2)
~/.pyenv/versions/3.8.2/envs/woodwork/lib/python3.8/site-packages/pandas/core/reshape/tile.py in qcut(x, q, labels, retbins, precision, duplicates)
356 quantiles = q
357 bins = algos.quantile(x, quantiles)
--> 358 fac, bins = _bins_to_cuts(
359 x,
360 bins,
~/.pyenv/versions/3.8.2/envs/woodwork/lib/python3.8/site-packages/pandas/core/reshape/tile.py in _bins_to_cuts(x, bins, right, labels, precision, include_lowest, dtype, duplicates, ordered)
408
409 if include_lowest:
--> 410 ids[x == bins[0]] = 1
411
412 na_mask = isna(x) | (ids == len(bins)) | (ids == 0)
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
```
#### Expected Output
Should match that of `float64`
```
0 (0.999, 2.5]
1 (0.999, 2.5]
2 (2.5, 4.0]
3 (2.5, 4.0]
dtype: category
Categories (2, interval[float64]): [(0.999, 2.5] < (2.5, 4.0]]
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.8.2.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Sun Jul 5 00:43:10 PDT 2020; root:xnu-6153.141.1~9/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.3
numpy : 1.19.5
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 41.2.0
Cython : None
pytest : 6.0.1
hypothesis : None
sphinx : 3.2.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.18.1
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.8.7
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 3.0.0
pyxlsb : None
s3fs : None
scipy : 1.6.2
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40730/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40730/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40731 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40731/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40731/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40731/events | https://github.com/pandas-dev/pandas/pull/40731 | 848,528,659 | MDExOlB1bGxSZXF1ZXN0NjA3NDUzMTY0 | 40,731 | ENH: `Styler.to_latex` conversion from CSS | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "006b75",
"default": false,
"description": "to_latex",
"id": 251382258,
"name": "IO LaTeX",
"node_id": "MDU6TGFiZWwyNTEzODIyNTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20LaTeX"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 5 | "2021-04-01T14:39:30Z" | "2021-06-16T13:25:12Z" | "2021-06-16T00:20:10Z" | CONTRIBUTOR | null | This is an extension PR to #40422 (most of this code is included there), and must be committed after it.
This PR only adds the `_parse_latex_css_conversion` function and associated `convert_css` argument.
Below is the relevant section added to the user guide:

| {
"+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/40731/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40731/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40731.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40731",
"merged_at": "2021-06-16T00:20:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40731.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40731"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40732 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40732/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40732/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40732/events | https://github.com/pandas-dev/pandas/issues/40732 | 848,532,889 | MDU6SXNzdWU4NDg1MzI4ODk= | 40,732 | BUG: Dtypes change when using `replace` with nullable dtypes | {
"avatar_url": "https://avatars.githubusercontent.com/u/64278226?v=4",
"events_url": "https://api.github.com/users/tamargrey/events{/privacy}",
"followers_url": "https://api.github.com/users/tamargrey/followers",
"following_url": "https://api.github.com/users/tamargrey/following{/other_user}",
"gists_url": "https://api.github.com/users/tamargrey/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tamargrey",
"id": 64278226,
"login": "tamargrey",
"node_id": "MDQ6VXNlcjY0Mjc4MjI2",
"organizations_url": "https://api.github.com/users/tamargrey/orgs",
"received_events_url": "https://api.github.com/users/tamargrey/received_events",
"repos_url": "https://api.github.com/users/tamargrey/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tamargrey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tamargrey/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tamargrey"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "01a886",
"default": false,
"description": "replace method",
"id": 1652721180,
"name": "replace",
"node_id": "MDU6TGFiZWwxNjUyNzIxMTgw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/replace"
},
{
"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"
} | 3 | "2021-04-01T14:44:35Z" | "2021-08-19T03:47:15Z" | null | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
floats = pd.Series([1.0, 2.0, 3.999, 4.4], dtype=pd.Float64Dtype())
ints = pd.Series([1, 2, 3, 4], dtype=pd.Int64Dtype())
assert floats.replace({1.0: 9}).dtype == 'int64' # results in [9, 2, 3, 4]
assert floats.replace({1.0: 9.0}).dtype == 'float64'
assert ints.replace({1: 9}).dtype == 'int64'
assert ints.replace({1: 9.0}).dtype == 'float64'
```
#### Problem description
The dtype of the resulting series is being changed when `replace` is being called with `Int64Dtype` and `Float64Dtype` series'.
There are two problems here, from what I can tell:
- We lose the nullable dtypes in favor of `int64` and `float64`.
- When doing `replace` on a float series with an integer value, the resulting series gets converted to ints, truncating the decimals
#### Expected Output
```python
assert floats.replace({1.0: 9}).dtype == pd.Float64Dtype() # Matching how an int passed to replace gets converted to a float with float64
assert floats.replace({1.0: 9.0}).dtype == pd.Float64Dtype()
assert ints.replace({1: 9}).dtype == pd.Int64Dtype()
assert ints.replace({1: 9.0}).dtype == pd.Float64Dtype() # Matching how int -> float if a float is passed to replace
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.8.2.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Sun Jul 5 00:43:10 PDT 2020; root:xnu-6153.141.1~9/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.3
numpy : 1.19.5
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 41.2.0
Cython : None
pytest : 6.0.1
hypothesis : None
sphinx : 3.2.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.18.1
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.8.7
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 3.0.0
pyxlsb : None
s3fs : None
scipy : 1.6.2
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40732/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40732/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40733 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40733/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40733/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40733/events | https://github.com/pandas-dev/pandas/pull/40733 | 848,624,838 | MDExOlB1bGxSZXF1ZXN0NjA3NTMzMTEw | 40,733 | REF: implement groupby.ops.WrappedCythonFunc | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | "2021-04-01T16:43:21Z" | "2021-04-02T18:24:33Z" | "2021-04-02T01:43:12Z" | MEMBER | null | I think this is much closer to "the correct" abstraction here (i find the layered abstractions with similar names in core.groupby hard to follow). Contains \approx 0 groupby logic (takes ngroups as an argument in some methods) and is only about how to wrap/call/unwrap the libgroupby functions.
There are a few more parts of _cython_operation I'd like to move, but I'm holding off on that pending some non-refactor work that touches those pieces.
No specific plans, but I'm hopeful that something like this can be re-used to de-duplicate logic in nanops and maybe algorithms.
This uses classmethods/staticmethods (i like the explicit statelessness) and passes how+kind as arguments, but an alternative would be to instantiate with how+kind passed to `__init__`.
The only potentially-logical change is that when defining `out_dtype`, this returns "float64" instead of "float". I haven't checked if that makes a difference on 32bit builds, but after weeks of dealing with np.intp much prefer the explicitness.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40733/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40733/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40733.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40733",
"merged_at": "2021-04-02T01:43:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40733.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40733"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40734 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40734/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40734/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40734/events | https://github.com/pandas-dev/pandas/pull/40734 | 848,686,017 | MDExOlB1bGxSZXF1ZXN0NjA3NTg0NTAz | 40,734 | Backport PR #40723 on branch 1.2.x (BUG: fix comparison of NaT with numpy array) | {
"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": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] | closed | false | null | [] | {
"closed_at": "2021-04-13T15:44:36Z",
"closed_issues": 46,
"created_at": "2021-03-01T08:32:08Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-04-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/84",
"id": 6490488,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/84/labels",
"node_id": "MDk6TWlsZXN0b25lNjQ5MDQ4OA==",
"number": 84,
"open_issues": 0,
"state": "closed",
"title": "1.2.4",
"updated_at": "2021-04-14T14:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/84"
} | 0 | "2021-04-01T18:18:26Z" | "2021-04-06T13:30:24Z" | "2021-04-06T13:30:24Z" | NONE | null | Backport PR #40723: BUG: fix comparison of NaT with numpy array | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40734/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40734/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40734.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40734",
"merged_at": "2021-04-06T13:30:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40734.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40734"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40735 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40735/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40735/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40735/events | https://github.com/pandas-dev/pandas/issues/40735 | 848,704,871 | MDU6SXNzdWU4NDg3MDQ4NzE= | 40,735 | BUG (?): dtype.value_counts() shows categorical multiple times | {
"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": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
},
{
"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"
}
] | open | false | null | [] | null | 6 | "2021-04-01T18:47:58Z" | "2021-08-19T03:48:32Z" | null | MEMBER | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
>>> df = pd.DataFrame({'a': [1], 'b': ['2'], 'c': [3], 'd': [3]}).astype({'a': 'category', 'c': 'category', 'd': 'category'})
>>> df
a b c d
0 1 2 3 3
>>> df.dtypes.value_counts()
category 2
category 1
object 1
dtype: int64
```
#### Problem description
`category` appears twice with different counts
#### Expected Output
Either
```python
category 3
object 1
dtype: int64
```
or
```python
CategoricalDtype(categories=[3], ordered=False) 2
CategoricalDtype(categories=[1], ordered=False) 1
object 1
dtype: int64
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 8064973159c46d3c4608e3aaf637196e224eba91
python : 3.8.6.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-70-generic
Version : #78-Ubuntu SMP Fri Mar 19 13:29:52 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_GB.UTF-8
LOCALE : en_GB.UTF-8
pandas : 1.3.0.dev0+1211.g8064973159
numpy : 1.19.5
pytz : 2021.1
dateutil : 2.8.1
pip : 20.3.3
setuptools : 49.6.0.post20201009
Cython : 0.29.22
pytest : 6.2.2
hypothesis : 6.8.1
sphinx : 3.5.2
blosc : None
feather : None
xlsxwriter : 1.3.7
lxml.etree : 4.6.2
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.19.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : 1.3.2
fsspec : 0.8.7
fastparquet : 0.5.0
gcsfs : 0.7.2
matplotlib : 3.3.3
numexpr : 2.7.3
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : 2.0.0
pyxlsb : None
s3fs : 0.5.2
scipy : 1.6.1
sqlalchemy : 1.4.2
tables : 3.6.1
tabulate : 0.8.9
xarray : 0.17.0
xlrd : 2.0.1
xlwt : 1.3.0
numba : 0.52.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/40735/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40735/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40736 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40736/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40736/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40736/events | https://github.com/pandas-dev/pandas/pull/40736 | 848,708,662 | MDExOlB1bGxSZXF1ZXN0NjA3NjAzNDcw | 40,736 | CLN: minor changes to `_translate` to simplify and setup for other chgs. | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"color": "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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-01T18:53:48Z" | "2021-04-02T06:58:52Z" | "2021-04-01T21:24:52Z" | CONTRIBUTOR | null | minor changes here to decouple the render dict `d` into sections for code readability.
this is also first part of other changes to improve readability of this method.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40736/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40736/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40736.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40736",
"merged_at": "2021-04-01T21:24:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40736.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40736"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40737 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40737/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40737/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40737/events | https://github.com/pandas-dev/pandas/issues/40737 | 848,710,021 | MDU6SXNzdWU4NDg3MTAwMjE= | 40,737 | TYP overload fillna | {
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
} | [
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/33496254?v=4",
"events_url": "https://api.github.com/users/LarWong/events{/privacy}",
"followers_url": "https://api.github.com/users/LarWong/followers",
"following_url": "https://api.github.com/users/LarWong/following{/other_user}",
"gists_url": "https://api.github.com/users/LarWong/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/LarWong",
"id": 33496254,
"login": "LarWong",
"node_id": "MDQ6VXNlcjMzNDk2MjU0",
"organizations_url": "https://api.github.com/users/LarWong/orgs",
"received_events_url": "https://api.github.com/users/LarWong/received_events",
"repos_url": "https://api.github.com/users/LarWong/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/LarWong/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LarWong/subscriptions",
"type": "User",
"url": "https://api.github.com/users/LarWong"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/33496254?v=4",
"events_url": "https://api.github.com/users/LarWong/events{/privacy}",
"followers_url": "https://api.github.com/users/LarWong/followers",
"following_url": "https://api.github.com/users/LarWong/following{/other_user}",
"gists_url": "https://api.github.com/users/LarWong/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/LarWong",
"id": 33496254,
"login": "LarWong",
"node_id": "MDQ6VXNlcjMzNDk2MjU0",
"organizations_url": "https://api.github.com/users/LarWong/orgs",
"received_events_url": "https://api.github.com/users/LarWong/received_events",
"repos_url": "https://api.github.com/users/LarWong/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/LarWong/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LarWong/subscriptions",
"type": "User",
"url": "https://api.github.com/users/LarWong"
}
] | null | 11 | "2021-04-01T18:55:55Z" | "2021-04-15T21:21:56Z" | "2021-04-15T21:21:56Z" | MEMBER | null | `fillna` has a different return type according to whether `inplace` is `True` or `False`. We could overload it to provide a better typing experience
See https://github.com/pandas-dev/pandas/pull/40197 for a very similar issue
Task here is:
1. read through #40197, make sure you understand it
2. try doing the same for `fillna`
3. check it works. See the above PR for an example, but it should be something like the following (but for `fillna` instead of `reset_index` - some of the other arguments probably need changing too)
```python
# t.py
import pandas as pd
inplace: bool
reveal_type(pd.DataFrame([1,2,3]).reset_index(level=0))
reveal_type(pd.DataFrame([1,2,3]).reset_index(inplace=False))
reveal_type(pd.DataFrame([1,2,3]).reset_index(drop=True, inplace=True))
reveal_type(pd.DataFrame([1,2,3]).reset_index(level=0, inplace=True))
reveal_type(pd.DataFrame([1,2,3]).reset_index(level=0, drop=False, inplace=True))
reveal_type(pd.DataFrame([1,2,3]).reset_index(level=0, inplace=True, col_fill='a'))
reveal_type(pd.DataFrame([1,2,3]).reset_index(level=0, col_fill='a'))
reveal_type(pd.DataFrame([1,2,3]).reset_index(inplace=True))
reveal_type(pd.DataFrame([1,2,3]).reset_index(inplace=inplace))
reveal_type(pd.DataFrame([1,2,3]).reset_index(drop=True, inplace=inplace))
reveal_type(pd.DataFrame([1,2,3]).reset_index(level=0, inplace=inplace))
reveal_type(pd.DataFrame([1,2,3]).reset_index(level=0, drop=False, inplace=inplace))
reveal_type(pd.DataFrame([1,2,3]).reset_index(level=0, inplace=inplace, col_fill='a'))
reveal_type(pd.DataFrame([1,2,3]).reset_index(inplace=inplace))
```
output:
```python
$ mypy t.py
t.py:5: note: Revealed type is 'pandas.core.frame.DataFrame'
t.py:6: note: Revealed type is 'pandas.core.frame.DataFrame'
t.py:7: note: Revealed type is 'None'
t.py:8: note: Revealed type is 'None'
t.py:9: note: Revealed type is 'None'
t.py:10: note: Revealed type is 'None'
t.py:11: note: Revealed type is 'pandas.core.frame.DataFrame'
t.py:12: note: Revealed type is 'None'
t.py:13: note: Revealed type is 'Union[pandas.core.frame.DataFrame, None]'
t.py:14: note: Revealed type is 'Union[pandas.core.frame.DataFrame, None]'
t.py:15: note: Revealed type is 'Union[pandas.core.frame.DataFrame, None]'
t.py:16: note: Revealed type is 'Union[pandas.core.frame.DataFrame, None]'
t.py:17: note: Revealed type is 'Union[pandas.core.frame.DataFrame, None]'
t.py:18: note: Revealed type is 'Union[pandas.core.frame.DataFrame, None]'
```
---
I've marked this as 'good first issue' as it doesn't require any knowledge of the pandas core codebase, though it's probably not the easiest if you're not at least somewhat familiar with mypy / typing | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40737/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40737/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40738 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40738/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40738/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40738/events | https://github.com/pandas-dev/pandas/pull/40738 | 848,722,532 | MDExOlB1bGxSZXF1ZXN0NjA3NjE1MjEz | 40,738 | BUG: Fix nanvar for large float16 arrays | {
"avatar_url": "https://avatars.githubusercontent.com/u/34072635?v=4",
"events_url": "https://api.github.com/users/trentondelahaye/events{/privacy}",
"followers_url": "https://api.github.com/users/trentondelahaye/followers",
"following_url": "https://api.github.com/users/trentondelahaye/following{/other_user}",
"gists_url": "https://api.github.com/users/trentondelahaye/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/trentondelahaye",
"id": 34072635,
"login": "trentondelahaye",
"node_id": "MDQ6VXNlcjM0MDcyNjM1",
"organizations_url": "https://api.github.com/users/trentondelahaye/orgs",
"received_events_url": "https://api.github.com/users/trentondelahaye/received_events",
"repos_url": "https://api.github.com/users/trentondelahaye/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/trentondelahaye/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/trentondelahaye/subscriptions",
"type": "User",
"url": "https://api.github.com/users/trentondelahaye"
} | [
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
},
{
"color": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] | closed | false | null | [] | null | 6 | "2021-04-01T19:15:53Z" | "2021-05-02T23:48:50Z" | "2021-05-02T23:48:38Z" | NONE | null | Summary of bug:
Above a certain length, calling `.std()` and `.var()` on a Series or DataFrame fails for float types. The is easily shown with float16 in the following example:
```python
>>> import pandas as pd
>>> import numpy as np
>>> zeros = 32760
>>> ones = 32759
>>> pd.Series([0] * zeros + [1] * ones).astype("float16").var()
0.25
>>> zeros = 32760
>>> ones = 32760
>>> pd.Series([0] * zeros + [1] * ones).astype("float16").var()
0.0
```
What is happening here is that both `count` and `d` overflow to `inf` as 65519 is the largest integer float16 can represent. Example:
```python
>>> import numpy as np
>>> np.float16(65519)
65500.0
>>> np.float16(65520)
inf
```
This makes the variance go to 0.0. Since the `avg` calculation on line 927 of this file casts to float64 anyway, it seems like there is no downside to not casting `count` and `d`. It will also improve accuracy in cases where the overflow does not happen.
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.8.2.final.0
python-bits : 64
OS : Darwin
OS-release : 20.3.0
Version : Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_GB.UTF-8
LOCALE : en_GB.UTF-8
pandas : 1.2.3
numpy : 1.20.1
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40738/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40738/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40738.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40738",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/40738.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40738"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40739 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40739/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40739/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40739/events | https://github.com/pandas-dev/pandas/pull/40739 | 848,730,606 | MDExOlB1bGxSZXF1ZXN0NjA3NjIyMTQ0 | 40,739 | Backport PR #40718 on branch 1.2.x (COMPAT: matplotlib 3.4.0) | {
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] | closed | false | null | [] | {
"closed_at": "2021-04-13T15:44:36Z",
"closed_issues": 46,
"created_at": "2021-03-01T08:32:08Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-04-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/84",
"id": 6490488,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/84/labels",
"node_id": "MDk6TWlsZXN0b25lNjQ5MDQ4OA==",
"number": 84,
"open_issues": 0,
"state": "closed",
"title": "1.2.4",
"updated_at": "2021-04-14T14:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/84"
} | 3 | "2021-04-01T19:28:19Z" | "2021-04-06T13:29:00Z" | "2021-04-06T13:28:20Z" | NONE | null | Backport PR #40718: COMPAT: matplotlib 3.4.0 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40739/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40739/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40739.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40739",
"merged_at": "2021-04-06T13:28:19Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40739.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40739"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40740 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40740/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40740/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40740/events | https://github.com/pandas-dev/pandas/issues/40740 | 848,756,938 | MDU6SXNzdWU4NDg3NTY5Mzg= | 40,740 | ENH: LogicalSlice object | {
"avatar_url": "https://avatars.githubusercontent.com/u/36213781?v=4",
"events_url": "https://api.github.com/users/Melendowski/events{/privacy}",
"followers_url": "https://api.github.com/users/Melendowski/followers",
"following_url": "https://api.github.com/users/Melendowski/following{/other_user}",
"gists_url": "https://api.github.com/users/Melendowski/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Melendowski",
"id": 36213781,
"login": "Melendowski",
"node_id": "MDQ6VXNlcjM2MjEzNzgx",
"organizations_url": "https://api.github.com/users/Melendowski/orgs",
"received_events_url": "https://api.github.com/users/Melendowski/received_events",
"repos_url": "https://api.github.com/users/Melendowski/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Melendowski/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Melendowski/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Melendowski"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] | closed | false | null | [] | null | 3 | "2021-04-01T20:11:48Z" | "2021-04-28T05:41:41Z" | "2021-04-10T13:55:54Z" | NONE | null | EDIT: Updated Example Code
#### Is your feature request related to a problem?
I was trying to perform a method chained logical mask without an intermediate assignment and found the method of passing the logical mask or callable to `.loc` to be verbose. I am trying to reduce that verbosity.
Examples
```python
(df_xtra_metadata.loc[(df_xtra_metadata['column'] == val) & (df_xtra_metadata['column2'] >= val2)]
.reset_index()
)
# or with a callable, shorter but still long
(df_xtra_metadata.loc[lambda x: (x['column'] == val) & (x['column2'] >= val2)]
.reset_index()
)
# not as long but requires assigning and deleting the mask in the scope
mask = (df_xtra_metadata['column'] == val) & (df_xtra_metadata['column2'] >= val2)
df.loc[mask].reset_index()
```
#### Describe the solution you'd like
I would like an object similar to `pd.IndexSlice` but instead is initialized with some metadata and then when called (which takes in the dataframe) computes the logical mask.
#### API breaking implications
This feature would add to the existing API but in a non obtrusive way and would not conflict with any of the current API.
#### Describe alternatives you've considered
I haven't considered any alternatives, I wrote this for myself and thought maybe it would be useful to others.
#### Additional context
So below is the code I wrote toying around with this idea.
```python
from __future__ import annotations
from operator import and_, eq, ge, getitem, gt, invert, le, lt, ne, or_, xor
from typing import Any, Callable, Literal, Union
import pandas as pd
class LogicalSlice:
"""Create objects to more easily calculate logical masks inplace for slicing DataFrames."""
ops = {
">": gt,
"<": lt,
">=": ge,
"<=": le,
"==": eq,
"!=": ne,
"in": pd.Series.isin,
}
__slots__ = ("_repr", "_closure", "_body")
def __init__(
self, column: Any, op: Literal[">", "<", ">=", "<=", "==", "!=", "in"], val: Any
) -> None:
operation: Union[gt, lt, ge, le, eq, ne, pd.Series.isin] = self.ops[op]
def closure(df: pd.DataFrame) -> pd.Series:
return operation(getitem(df, column), val)
self._closure: Callable[pd.DataFrame, pd.Series] = closure
if isinstance(column, str):
col: str = f"'{column}'"
else:
col: str = str(column)
if op == "in":
op_rhs: str = f".isin({val})"
else:
op_rhs: str = f" {op} {val}"
body: str = f"df[{col}]{op_rhs}"
self._set_body(body)
def __call__(self, df: pd.DataFrame) -> pd.Series:
return self._closure(df)
def __repr__(self) -> str:
return self._repr
def __invert__(self) -> LogicalSlice:
inverted: LogicalSlice = self._compose(invert, self)
body: str = f"~({self._body})"
inverted._set_body(body)
return inverted
def __and__(self, other: LogicalSlice) -> LogicalSlice:
conjunction: LogicalSlice = self._compose(and_, self, other)
body: str = f"({self._body}) & ({other._body})"
conjunction._set_body(body)
return conjunction
def __or__(self, other: LogicalSlice) -> LogicalSlice:
disjunction: LogicalSlice = self._compose(or_, self, other)
body: str = f"({self._body}) | ({other._body})"
disjunction._set_body(body)
return disjunction
def __xor__(self, other: LogicalSlice):
symetric_difference: LogicalSlice = self._compose(xor, self, other)
body: str = f"({self._body}) ^ ({other._body})"
symetric_difference._set_body(body)
return symetric_difference
def _set_body(self, body: str) -> None:
self._body = body
self._repr = f"lambda df: {body}"
@classmethod
def _compose(
cls, operation: Union[invert, xor, and_, or_], *operands: LogicalSlice
) -> LogicalSlice:
new_logical_slice = cls.__new__(cls)
def closure(df: pd.DataFrame) -> pd.Series:
return operation(*(operand(df) for operand in operands))
new_logical_slice._closure = closure
return new_logical_slice
```
Here is some example code of the API. I suppose it should
```python
In [7]: import pandas as pd
In [8]: import numpy as np
In [9]: mask = pd.LogicalSlice
In [10]: # create dummy dataframe for example
In [11]: df = pd.DataFrame(np.random.randn(8, 5), index=list(range(8)), columns=[1,2,3,4,5])
In [12]: df
Out[12]:
1 2 3 4 5
0 2.146687 1.111394 0.782805 -0.664520 -0.775198
1 0.266829 1.021803 0.112757 1.912192 -0.629621
2 0.796544 -0.584199 -0.958174 0.817412 -0.148881
3 0.436404 0.528461 0.911095 0.854496 2.047070
4 -0.144312 -2.274132 0.129994 -2.413109 1.248950
5 -0.233113 -2.028095 -0.164058 0.912749 2.717956
6 -1.537385 1.881949 -1.567367 0.489918 -1.142897
7 -0.411876 -1.044270 -0.869536 0.878700 0.077144
In [13]: # get the rows where column 1 is greater than 0 using pd.LogicalSlice
In [16]: df.loc[mask(1, ">", 0)]
Out[16]:
1 2 3 4 5
0 2.146687 1.111394 0.782805 -0.664520 -0.775198
1 0.266829 1.021803 0.112757 1.912192 -0.629621
2 0.796544 -0.584199 -0.958174 0.817412 -0.148881
3 0.436404 0.528461 0.911095 0.854496 2.047070
In [17]: # bind the mask to a variable for later user
In [18]: non_neg = mask(1, ">", 0)
In [19]: # repr displays a lambda but its a closure under the hood
In [20]: non_neg
Out[20]: lambda df: df[1] > 0
In [21]: df.loc[non_neg]
Out[21]:
1 2 3 4 5
0 2.146687 1.111394 0.782805 -0.664520 -0.775198
1 0.266829 1.021803 0.112757 1.912192 -0.629621
2 0.796544 -0.584199 -0.958174 0.817412 -0.148881
3 0.436404 0.528461 0.911095 0.854496 2.047070
In [22]: # multiple LogicalSlices can be combined using bitwise operators
In [23]: non_neg & mask(2, ">", 0)
Out[23]: lambda df: (df[1] > 0) & (df[2] > 0)
In [24]: df.loc[non_neg & mask(2, ">", 0)]
Out[24]:
1 2 3 4 5
0 2.146687 1.111394 0.782805 -0.664520 -0.775198
1 0.266829 1.021803 0.112757 1.912192 -0.629621
3 0.436404 0.528461 0.911095 0.854496 2.047070
In [25]: # the traditional method
In [26]: df.loc[(df[1] > 0) & (df[2] > 0)]
Out[26]:
1 2 3 4 5
0 2.146687 1.111394 0.782805 -0.664520 -0.775198
1 0.266829 1.021803 0.112757 1.912192 -0.629621
3 0.436404 0.528461 0.911095 0.854496 2.047070
In [27]: # combining multiple masks
In [28]: ~(non_neg & mask(2, ">", 0)) | mask(4, "<", 0)
Out[28]: lambda df: (~((df[1] > 0) & (df[2] > 0))) | (df[4] < 0)
In [29]: big_mask = ~(non_neg & mask(2, ">", 0)) | mask(4, "<", 0)
In [30]: big_mask
Out[30]: lambda df: (~((df[1] > 0) & (df[2] > 0))) | (df[4] < 0)
In [31]: df.loc[big_mask]
Out[31]:
1 2 3 4 5
0 2.146687 1.111394 0.782805 -0.664520 -0.775198
2 0.796544 -0.584199 -0.958174 0.817412 -0.148881
4 -0.144312 -2.274132 0.129994 -2.413109 1.248950
5 -0.233113 -2.028095 -0.164058 0.912749 2.717956
6 -1.537385 1.881949 -1.567367 0.489918 -1.142897
7 -0.411876 -1.044270 -0.869536 0.878700 0.077144
``` | {
"+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/40740/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40740/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40741 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40741/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40741/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40741/events | https://github.com/pandas-dev/pandas/pull/40741 | 848,789,870 | MDExOlB1bGxSZXF1ZXN0NjA3NjcxNjYw | 40,741 | BUG: DTBlock/TDBlock.delete casting to ndarray | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
] | 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 | "2021-04-01T21:07:39Z" | "2021-04-02T02:24:12Z" | "2021-04-02T01:47:09Z" | MEMBER | null | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
xref #40386 (does not close) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40741/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40741/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40741.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40741",
"merged_at": "2021-04-02T01:47:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40741.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40741"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40742 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40742/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40742/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40742/events | https://github.com/pandas-dev/pandas/pull/40742 | 848,836,635 | MDExOlB1bGxSZXF1ZXN0NjA3NzEwODM2 | 40,742 | Revert "PERF: numexpr doesn't support floordiv, so don't try (#40727)" | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | {
"closed_at": "2021-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 | "2021-04-01T22:47:14Z" | "2021-04-01T22:47:26Z" | "2021-04-01T22:47:26Z" | CONTRIBUTOR | null | This reverts commit e6f7e7b20ebb1512d6debee5e8592b0b5351ac49.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40742/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40742/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40742.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40742",
"merged_at": "2021-04-01T22:47:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40742.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40742"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40743 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40743/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40743/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40743/events | https://github.com/pandas-dev/pandas/pull/40743 | 848,886,032 | MDExOlB1bGxSZXF1ZXN0NjA3NzUxOTk3 | 40,743 | STY: enable subset of flake8-bugbear | {
"avatar_url": "https://avatars.githubusercontent.com/u/6618166?v=4",
"events_url": "https://api.github.com/users/twoertwein/events{/privacy}",
"followers_url": "https://api.github.com/users/twoertwein/followers",
"following_url": "https://api.github.com/users/twoertwein/following{/other_user}",
"gists_url": "https://api.github.com/users/twoertwein/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/twoertwein",
"id": 6618166,
"login": "twoertwein",
"node_id": "MDQ6VXNlcjY2MTgxNjY=",
"organizations_url": "https://api.github.com/users/twoertwein/orgs",
"received_events_url": "https://api.github.com/users/twoertwein/received_events",
"repos_url": "https://api.github.com/users/twoertwein/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/twoertwein/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/twoertwein/subscriptions",
"type": "User",
"url": "https://api.github.com/users/twoertwein"
} | [
{
"color": "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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-02T01:04:21Z" | "2021-06-05T20:50:20Z" | "2021-04-02T02:57:31Z" | CONTRIBUTOR | null | part of #40570
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40743/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40743/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40743.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40743",
"merged_at": "2021-04-02T02:57:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40743.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40743"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40744 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40744/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40744/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40744/events | https://github.com/pandas-dev/pandas/pull/40744 | 848,931,049 | MDExOlB1bGxSZXF1ZXN0NjA3Nzg4MDU0 | 40,744 | TYP: indexes | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 6 | "2021-04-02T03:27:00Z" | "2021-04-13T17:19:40Z" | "2021-04-13T17:16:26Z" | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40744/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40744/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40744.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40744",
"merged_at": "2021-04-13T17:16:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40744.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40744"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40745 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40745/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40745/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40745/events | https://github.com/pandas-dev/pandas/pull/40745 | 849,145,718 | MDExOlB1bGxSZXF1ZXN0NjA3OTY4OTg3 | 40,745 | CLN: create core Styler rendering functions and subclass conditional styling applications | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "eb6420",
"default": false,
"description": "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": "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"
} | 3 | "2021-04-02T10:45:13Z" | "2021-04-12T15:00:22Z" | "2021-04-12T14:49:33Z" | CONTRIBUTOR | null | Here is a first draft at splitting up `style.py`, ahead of adding new LaTeX functionality
### Key Points
- All rendering and formatting methods moved to `style_render.py`:
```
class StylerRenderer:
jinja2_loader
def render()
def format()
def _translate()
def _compute()
+ their module level helper functions
```
- `style.py` maintains all the conditional application methods and the utility methods and is subclass:
```
class Styler(StylerRenderer):
...
```
All methods copied, no changes made, other than deprivatizing shared method names.
Technically this now works:
```
df = pd.DataFrame([['a b', 'c v']])
from pandas.io.formats.style_render import StylerRenderer
StylerRenderer(df).format(str.upper).render()
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40745/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40745/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40745.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40745",
"merged_at": "2021-04-12T14:49:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40745.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40745"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40746 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40746/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40746/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40746/events | https://github.com/pandas-dev/pandas/pull/40746 | 849,168,317 | MDExOlB1bGxSZXF1ZXN0NjA3OTg3OTY5 | 40,746 | ENH: Set column to work for datetimes for Xlsxwriter | {
"avatar_url": "https://avatars.githubusercontent.com/u/55484403?v=4",
"events_url": "https://api.github.com/users/shraddhazpy/events{/privacy}",
"followers_url": "https://api.github.com/users/shraddhazpy/followers",
"following_url": "https://api.github.com/users/shraddhazpy/following{/other_user}",
"gists_url": "https://api.github.com/users/shraddhazpy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shraddhazpy",
"id": 55484403,
"login": "shraddhazpy",
"node_id": "MDQ6VXNlcjU1NDg0NDAz",
"organizations_url": "https://api.github.com/users/shraddhazpy/orgs",
"received_events_url": "https://api.github.com/users/shraddhazpy/received_events",
"repos_url": "https://api.github.com/users/shraddhazpy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shraddhazpy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shraddhazpy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shraddhazpy"
} | [
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] | closed | false | null | [] | null | 1 | "2021-04-02T11:36:23Z" | "2021-05-01T01:10:49Z" | "2021-04-30T06:26:33Z" | NONE | null | - [x] closes #30275
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Enhancement for Xlsxwriter to enable the usage of `set_column` for datetime columns for setting the format , just like how it can be done for numbers.
Exception includes the datetime columns which already have a formatting, for eg - `DatetimeIndex`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40746/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40746/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40746.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40746",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/40746.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40746"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40747 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40747/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40747/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40747/events | https://github.com/pandas-dev/pandas/pull/40747 | 849,180,416 | MDExOlB1bGxSZXF1ZXN0NjA3OTk3OTE3 | 40,747 | DOC: [ArrowStringArray] release note and other documentation | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"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 | [] | null | 2 | "2021-04-02T12:05:58Z" | "2021-05-01T12:14:47Z" | "2021-05-01T12:14:47Z" | MEMBER | null | extremely draft status. placeholder for discussion.
we may want to combine this with #39908, and merge #40708 before #39908
#39908 makes changes to the user facing api that affects the existing StringDtype so that may need an separate section in the release notes.
other sections of the documentation may also need updating. e.g. doc/source/user_guide/text.rst, doc/source/development/roadmap.rst and doc/source/user_guide/basics.rst | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40747/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40747/timeline | null | 1 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40747.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40747",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/40747.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40747"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40748 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40748/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40748/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40748/events | https://github.com/pandas-dev/pandas/issues/40748 | 849,202,238 | MDU6SXNzdWU4NDkyMDIyMzg= | 40,748 | TST: Potential inconistency between numpy and numexp | {
"avatar_url": "https://avatars.githubusercontent.com/u/6618166?v=4",
"events_url": "https://api.github.com/users/twoertwein/events{/privacy}",
"followers_url": "https://api.github.com/users/twoertwein/followers",
"following_url": "https://api.github.com/users/twoertwein/following{/other_user}",
"gists_url": "https://api.github.com/users/twoertwein/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/twoertwein",
"id": 6618166,
"login": "twoertwein",
"node_id": "MDQ6VXNlcjY2MTgxNjY=",
"organizations_url": "https://api.github.com/users/twoertwein/orgs",
"received_events_url": "https://api.github.com/users/twoertwein/received_events",
"repos_url": "https://api.github.com/users/twoertwein/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/twoertwein/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/twoertwein/subscriptions",
"type": "User",
"url": "https://api.github.com/users/twoertwein"
} | [
{
"color": "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": "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 | 0 | "2021-04-02T12:55:29Z" | "2021-04-06T01:53:02Z" | null | CONTRIBUTOR | null | The loop variable `engine` should probably be used here instead of `self.engine`:
https://github.com/pandas-dev/pandas/blob/1367cacd7c90694a5d0563d46dd10a1e8a3ea8b3/pandas/tests/computation/test_eval.py#L466
Making this change leads to a few failed tests:
```
======================================================================== short test summary info =========================================================================
FAILED pandas/tests/computation/test_eval.py::TestEvalNumexprPandas::test_compound_invert_op[4-0-in] - AssertionError: Input are different
FAILED pandas/tests/computation/test_eval.py::TestEvalNumexprPandas::test_compound_invert_op[4-0-not in] - AssertionError: Input are different
FAILED pandas/tests/computation/test_eval.py::TestEvalNumexprPandas::test_compound_invert_op[4-1-in] - AssertionError: Input are different
FAILED pandas/tests/computation/test_eval.py::TestEvalNumexprPandas::test_compound_invert_op[4-1-not in] - AssertionError: Input are different
FAILED pandas/tests/computation/test_eval.py::TestEvalNumexprPandas::test_compound_invert_op[4-2-in] - AssertionError: Input are different
FAILED pandas/tests/computation/test_eval.py::TestEvalNumexprPandas::test_compound_invert_op[4-2-not in] - AssertionError: Input are different
FAILED pandas/tests/computation/test_eval.py::TestEvalNumexprPandas::test_compound_invert_op[4-3-in] - AssertionError: Input are different
FAILED pandas/tests/computation/test_eval.py::TestEvalNumexprPandas::test_compound_invert_op[4-3-not in] - AssertionError: Input are different
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40748/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40748/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40749 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40749/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40749/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40749/events | https://github.com/pandas-dev/pandas/pull/40749 | 849,205,068 | MDExOlB1bGxSZXF1ZXN0NjA4MDE4MzM2 | 40,749 | TST: [ArrowStringArray] more parameterised testing - part 2 | {
"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": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "5319e7",
"default": false,
"description": "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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | "2021-04-02T13:01:32Z" | "2021-04-15T10:35:47Z" | "2021-04-15T09:31:34Z" | MEMBER | null | only a few tests updated in this PR to ensure this approach is accepted.
if we try to add directly to the parametrization of the existing tests we get `ImportError` on environments without pyarrow installed. https://github.com/pandas-dev/pandas/pull/40679#discussion_r603345758 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40749/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40749/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40749.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40749",
"merged_at": "2021-04-15T09:31:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40749.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40749"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40750 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40750/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40750/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40750/events | https://github.com/pandas-dev/pandas/issues/40750 | 849,227,749 | MDU6SXNzdWU4NDkyMjc3NDk= | 40,750 | BUG: outer merge with indicator | {
"avatar_url": "https://avatars.githubusercontent.com/u/491720?v=4",
"events_url": "https://api.github.com/users/bioinfornatics/events{/privacy}",
"followers_url": "https://api.github.com/users/bioinfornatics/followers",
"following_url": "https://api.github.com/users/bioinfornatics/following{/other_user}",
"gists_url": "https://api.github.com/users/bioinfornatics/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bioinfornatics",
"id": 491720,
"login": "bioinfornatics",
"node_id": "MDQ6VXNlcjQ5MTcyMA==",
"organizations_url": "https://api.github.com/users/bioinfornatics/orgs",
"received_events_url": "https://api.github.com/users/bioinfornatics/received_events",
"repos_url": "https://api.github.com/users/bioinfornatics/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bioinfornatics/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bioinfornatics/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bioinfornatics"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "207de5",
"default": false,
"description": "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 | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 4 | "2021-04-02T13:45:43Z" | "2021-04-08T15:22:24Z" | "2021-04-06T11:31:49Z" | NONE | null | # Inconsistencies of pandas merge
I tried to do an outer merge two dataframes and I observed that `left_only` values are missing but if I take a subset of those data `left_only` values appear
unfortunately I am not allowed to share those data and I have not yet found a minimal test case
**From full dataset**
```
(Pdb) outer_full = pd.merge(left_df, right_df,how='outer',on=['start', 'stop', 'reference', 'alternative'], indicator=True)
(Pdb) outer_full[outer_full['sequence_id_y']=='something']
start stop reference alternative sequence_id_x sequence_id_y _merge
886 23604 23604 C A sample_of_interest something both
63840 8512 8512 A G sample_of_interest something both
65224 28270 28271 TA T sample_of_interest something both
124138 28111 28111 A G sample_of_interest something both
182893 27972 27972 C T sample_of_interest something both
241900 913 913 C T sample_of_interest something both
299398 18171 18171 C T sample_of_interest something both
300613 21990 21993 TTTA T sample_of_interest something both
358445 9190 9190 G T sample_of_interest something both
359600 6954 6954 T C sample_of_interest something both
418297 28282 28282 T A sample_of_interest something both
476408 23063 23063 A T sample_of_interest something both
541127 241 241 C T sample_of_interest something both
815175 28977 28977 C T sample_of_interest something both
874649 23709 23709 C T sample_of_interest something both
934071 11287 11296 GTCTGGTTTT G sample_of_interest something both
995638 24914 24914 G C sample_of_interest something both
1054348 28280 28280 G C sample_of_interest something both
1112331 5986 5986 C T sample_of_interest something both
1171810 28281 28281 A T sample_of_interest something both
1229819 14676 14676 C T sample_of_interest something both
1478469 21764 21770 ATACATG A NaN something right_only
```
**subset**
```
(Pdb) outer = pd.merge(left_df, right_df[right_df['sequence_id']=='something'],how='outer',on=['start', 'stop', 'reference', 'alternative'], indicator=True)
outer
start stop reference alternative sequence_id_x sequence_id_y _merge
0 23604 23604 C A sample_of_interest something both
1 8512 8512 A G sample_of_interest something both
2 28270 28271 TA T sample_of_interest something both
3 705 705 A G sample_of_interest NaN left_only
4 28111 28111 A G sample_of_interest something both
5 29442 29442 A G sample_of_interest NaN left_only
6 27972 27972 C T sample_of_interest something both
7 913 913 C T sample_of_interest something both
8 18171 18171 C T sample_of_interest something both
9 21990 21993 TTTA T sample_of_interest something both
10 9190 9190 G T sample_of_interest something both
11 6954 6954 T C sample_of_interest something both
12 5264 5264 A G sample_of_interest NaN left_only
13 28282 28282 T A sample_of_interest something both
14 23063 23063 A T sample_of_interest something both
15 241 241 C T sample_of_interest something both
16 28977 28977 C T sample_of_interest something both
17 23709 23709 C T sample_of_interest something both
18 11287 11296 GTCTGGTTTT G sample_of_interest something both
19 24914 24914 G C sample_of_interest something both
20 28280 28280 G C sample_of_interest something both
21 5986 5986 C T sample_of_interest something both
22 1438 1438 T C sample_of_interest NaN left_only
23 28281 28281 A T sample_of_interest something both
24 14676 14676 C T sample_of_interest something both
25 21764 21770 ATACATG A NaN something right_only
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40750/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40750/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40751 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40751/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40751/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40751/events | https://github.com/pandas-dev/pandas/issues/40751 | 849,235,307 | MDU6SXNzdWU4NDkyMzUzMDc= | 40,751 | ENH: enhance pivot_table to keep rows that containing any missing values | {
"avatar_url": "https://avatars.githubusercontent.com/u/54766615?v=4",
"events_url": "https://api.github.com/users/dcsaba89/events{/privacy}",
"followers_url": "https://api.github.com/users/dcsaba89/followers",
"following_url": "https://api.github.com/users/dcsaba89/following{/other_user}",
"gists_url": "https://api.github.com/users/dcsaba89/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dcsaba89",
"id": 54766615,
"login": "dcsaba89",
"node_id": "MDQ6VXNlcjU0NzY2NjE1",
"organizations_url": "https://api.github.com/users/dcsaba89/orgs",
"received_events_url": "https://api.github.com/users/dcsaba89/received_events",
"repos_url": "https://api.github.com/users/dcsaba89/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dcsaba89/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dcsaba89/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dcsaba89"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] | closed | false | null | [] | null | 2 | "2021-04-02T13:59:53Z" | "2021-08-19T03:55:38Z" | "2021-08-19T03:55:37Z" | NONE | null | #### Is your feature request related to a problem?
I wish I could keep rows in a dataframe where any data point is missing while using pivot_table method.
#### Describe the solution you'd like
`pivot_table` should get a new parameter `keep_na` that enables keeping the rows of the dataframe containing NANs. Alternatively the current behaviour of `drop_na` could be enhanced to handle not only the all NaN rows, but any NaN rows as well.
#### API breaking implications
`keep_na` must be False (or None) by default to make it backward compatible.
#### Describe alternatives you've considered
The current workaround is to fill the index columns manually with some dummy shit, appy pivot_table, then revert dummy values to NaNs.
#### Additional context
```python
import pandas as pd
import numpy as np
df = pd.DataFrame({'A': ['a', np.nan, 'a', 'a'], 'B': ['b', 'b', np.nan, 'b'], 'X': [5, 10, 15, 20]})
A B X
0 a b 5
1 NaN b 10
2 a NaN 15
3 a b 20
output:
pd.pivot_table(df, index=['A', 'B'], values=['X'], aggfunc=np.sum)
A B X
0 a b 25
expected output:
pd.pivot_table(df, index=['A', 'B'], values=['X'], aggfunc=np.sum, keep_na=True)
A B X
0 a b 25
1 NaN b 10
2 a NaN 15
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40751/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40751/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40752 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40752/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40752/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40752/events | https://github.com/pandas-dev/pandas/pull/40752 | 849,238,410 | MDExOlB1bGxSZXF1ZXN0NjA4MDQ1ODg2 | 40,752 | TST: use a few unused loop variables | {
"avatar_url": "https://avatars.githubusercontent.com/u/6618166?v=4",
"events_url": "https://api.github.com/users/twoertwein/events{/privacy}",
"followers_url": "https://api.github.com/users/twoertwein/followers",
"following_url": "https://api.github.com/users/twoertwein/following{/other_user}",
"gists_url": "https://api.github.com/users/twoertwein/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/twoertwein",
"id": 6618166,
"login": "twoertwein",
"node_id": "MDQ6VXNlcjY2MTgxNjY=",
"organizations_url": "https://api.github.com/users/twoertwein/orgs",
"received_events_url": "https://api.github.com/users/twoertwein/received_events",
"repos_url": "https://api.github.com/users/twoertwein/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/twoertwein/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/twoertwein/subscriptions",
"type": "User",
"url": "https://api.github.com/users/twoertwein"
} | [
{
"color": "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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-02T14:05:44Z" | "2021-06-05T20:50:12Z" | "2021-04-02T22:41:20Z" | CONTRIBUTOR | null | part of #40570
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40752/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40752/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40752.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40752",
"merged_at": "2021-04-02T22:41:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40752.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40752"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40753 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40753/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40753/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40753/events | https://github.com/pandas-dev/pandas/issues/40753 | 849,285,310 | MDU6SXNzdWU4NDkyODUzMTA= | 40,753 | BUG: Inconcistency in DataFrame column numeric dtype comparison | {
"avatar_url": "https://avatars.githubusercontent.com/u/39420640?v=4",
"events_url": "https://api.github.com/users/aaraney/events{/privacy}",
"followers_url": "https://api.github.com/users/aaraney/followers",
"following_url": "https://api.github.com/users/aaraney/following{/other_user}",
"gists_url": "https://api.github.com/users/aaraney/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aaraney",
"id": 39420640,
"login": "aaraney",
"node_id": "MDQ6VXNlcjM5NDIwNjQw",
"organizations_url": "https://api.github.com/users/aaraney/orgs",
"received_events_url": "https://api.github.com/users/aaraney/received_events",
"repos_url": "https://api.github.com/users/aaraney/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aaraney/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aaraney/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aaraney"
} | [
{
"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": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "be21f2",
"default": false,
"description": "May be closeable, needs more eyeballs",
"id": 2365504893,
"name": "Closing Candidate",
"node_id": "MDU6TGFiZWwyMzY1NTA0ODkz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Closing%20Candidate"
}
] | closed | false | null | [] | null | 3 | "2021-04-02T15:33:21Z" | "2021-04-03T23:38:19Z" | "2021-04-03T23:38:19Z" | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
#### Code Sample
```python
import pandas as pd
import numpy as np
df = pd.DataFrame({"int": [1,2,3], "float": [1.,2.,3.]})
# Below shows the unexpected differences
df.select_dtypes(np.number)
>>> int float
>>> 0 1 1.0
>>> 1 2 2.0
>>> 2 3 3.0
df[df.columns[df.dtypes.eq(np.number)]]
>>> float
>>> 0 1.0
>>> 1 2.0
>>> 2 3.0
# More explicitly
df.dtypes.eq(np.number) #<- returns False for int64 type
>>> int False
>>> float True
>>> dtype: bool
```
#### Problem description
I realize this may be as intended or just an edge case that has not been handled, but I thought it was worth documenting as an issue. There is, what I would consider, unexpected behavior when trying to filter a dataframe to retrieve numeric columns. As shown in the above examples, when using the `df.select_dtypes(np.number)`, I get back what I would expected. However, when using `df.dtypes.eq(np.number)`, I get back a `pd.Series` noting that the column container an `int64` type is not equivalent to `np.number`.
#### Expected Output
```python
df.dtypes.eq(np.number)
>>> int True
>>> float True
>>> dtype: bool
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.8.5.final.0
python-bits : 64
OS : Darwin
OS-release : 18.7.0
Version : Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.3
numpy : 1.19.4
pytz : 2020.4
dateutil : 2.8.1
pip : 21.0.1
setuptools : 50.3.1.post20201107
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : 0.8.7
fastparquet : None
gcsfs : None
matplotlib : 3.3.2
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.5.4
sqlalchemy : None
tables : None
tabulate : None
xarray : 0.17.0
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40753/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40753/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40754 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40754/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40754/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40754/events | https://github.com/pandas-dev/pandas/issues/40754 | 849,294,746 | MDU6SXNzdWU4NDkyOTQ3NDY= | 40,754 | BUG: to_csv produces improper output for categorical datetimes | {
"avatar_url": "https://avatars.githubusercontent.com/u/10714694?v=4",
"events_url": "https://api.github.com/users/qwertystop/events{/privacy}",
"followers_url": "https://api.github.com/users/qwertystop/followers",
"following_url": "https://api.github.com/users/qwertystop/following{/other_user}",
"gists_url": "https://api.github.com/users/qwertystop/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/qwertystop",
"id": 10714694,
"login": "qwertystop",
"node_id": "MDQ6VXNlcjEwNzE0Njk0",
"organizations_url": "https://api.github.com/users/qwertystop/orgs",
"received_events_url": "https://api.github.com/users/qwertystop/received_events",
"repos_url": "https://api.github.com/users/qwertystop/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/qwertystop/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/qwertystop/subscriptions",
"type": "User",
"url": "https://api.github.com/users/qwertystop"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "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"
}
] | open | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/82109078?v=4",
"events_url": "https://api.github.com/users/kyleolaughlin/events{/privacy}",
"followers_url": "https://api.github.com/users/kyleolaughlin/followers",
"following_url": "https://api.github.com/users/kyleolaughlin/following{/other_user}",
"gists_url": "https://api.github.com/users/kyleolaughlin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kyleolaughlin",
"id": 82109078,
"login": "kyleolaughlin",
"node_id": "MDQ6VXNlcjgyMTA5MDc4",
"organizations_url": "https://api.github.com/users/kyleolaughlin/orgs",
"received_events_url": "https://api.github.com/users/kyleolaughlin/received_events",
"repos_url": "https://api.github.com/users/kyleolaughlin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kyleolaughlin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kyleolaughlin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kyleolaughlin"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/82109078?v=4",
"events_url": "https://api.github.com/users/kyleolaughlin/events{/privacy}",
"followers_url": "https://api.github.com/users/kyleolaughlin/followers",
"following_url": "https://api.github.com/users/kyleolaughlin/following{/other_user}",
"gists_url": "https://api.github.com/users/kyleolaughlin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kyleolaughlin",
"id": 82109078,
"login": "kyleolaughlin",
"node_id": "MDQ6VXNlcjgyMTA5MDc4",
"organizations_url": "https://api.github.com/users/kyleolaughlin/orgs",
"received_events_url": "https://api.github.com/users/kyleolaughlin/received_events",
"repos_url": "https://api.github.com/users/kyleolaughlin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kyleolaughlin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kyleolaughlin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kyleolaughlin"
}
] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 3 | "2021-04-02T15:52:21Z" | "2021-06-23T13:14:52Z" | null | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
>>> ser = pd.to_datetime(pd.Series(["2021-03-27"]), format="%Y-%m-%d")
>>> ser
0 2021-03-27
dtype: datetime64[ns]
>>> ser.to_csv()
',0\n0,2021-03-27\n'
>>> ser.astype("category")
0 2021-03-27
dtype: category
Categories (1, datetime64[ns]): [2021-03-27]
>>> ser.astype("category").to_csv()
',0\n0,1616803200000000000\n'
>>> ser.astype("category").to_csv(date_format="%Y-%m-%dT%H:%M:%S")
',0\n0,1616803200000000000\n'
```
#### Problem description
When a categorical datetime is written as CSV, it disregards date_format (even if given explicitly) and writes the timestamp in integer nanoseconds.
#### Expected Output
```python
>>> ser.astype("category").to_csv()
',0\n0,2021-03-27\n'
>>> ser.astype("category").to_csv(date_format="%Y-%m-%dT%H:%M:%S")
',0\n0,2021-03-27T00:00:00\n'
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.9.1.final.0
python-bits : 64
OS : Linux
OS-release : 5.11.8-arch1-1
Version : #1 SMP PREEMPT Sun, 21 Mar 2021 01:55:51 +0000
machine : x86_64
processor :
byteorder : little
LC_ALL :
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.3
numpy : 1.19.5
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 49.2.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.20.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.8.7
fastparquet : None
gcsfs : None
matplotlib : 3.3.4
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.0
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40754/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40754/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40755 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40755/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40755/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40755/events | https://github.com/pandas-dev/pandas/pull/40755 | 849,300,665 | MDExOlB1bGxSZXF1ZXN0NjA4MDk2OTc5 | 40,755 | TST: [ArrowStringArray] more parameterised testing - part 3 | {
"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": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "5319e7",
"default": false,
"description": "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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-02T16:03:52Z" | "2021-04-09T08:54:13Z" | "2021-04-09T07:45:16Z" | MEMBER | null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40755/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40755/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40755.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40755",
"merged_at": "2021-04-09T07:45:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40755.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40755"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/40756 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40756/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40756/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40756/events | https://github.com/pandas-dev/pandas/pull/40756 | 849,343,160 | MDExOlB1bGxSZXF1ZXN0NjA4MTMzNjE1 | 40,756 | CLN: remove maybe_upcast_putmask | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [] | closed | false | null | [] | null | 1 | "2021-04-02T17:08:58Z" | "2021-04-02T18:58:08Z" | "2021-04-02T18:18:43Z" | MEMBER | null | The last non-test usage of this is made unnecessary by #40728 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40756/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40756/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40756.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40756",
"merged_at": "2021-04-02T18:18:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40756.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40756"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40757 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40757/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40757/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40757/events | https://github.com/pandas-dev/pandas/pull/40757 | 849,348,268 | MDExOlB1bGxSZXF1ZXN0NjA4MTM3Njcw | 40,757 | REF: implement libinternals.NumpyBlock | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
] | 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 | "2021-04-02T17:20:06Z" | "2021-04-08T14:31:38Z" | "2021-04-08T12:46:05Z" | MEMBER | null | on its own this is perf-neutral. It is in conjunction with implementing BlockManager.get_slice in cython that i see real gains | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40757/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40757/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40757.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40757",
"merged_at": "2021-04-08T12:46:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40757.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40757"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40758 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40758/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40758/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40758/events | https://github.com/pandas-dev/pandas/pull/40758 | 849,360,662 | MDExOlB1bGxSZXF1ZXN0NjA4MTQ3Njgy | 40,758 | TYP: fix type:ignores | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": "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 | "2021-04-02T17:47:42Z" | "2021-04-05T15:52:27Z" | "2021-04-05T14:56:59Z" | MEMBER | null | In some cases these are pre-emptive for things that pop up when not-yet-pushed .pyi files are implemented | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40758/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40758/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40758.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40758",
"merged_at": "2021-04-05T14:56:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40758.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40758"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40759 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40759/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40759/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40759/events | https://github.com/pandas-dev/pandas/issues/40759 | 849,390,823 | MDU6SXNzdWU4NDkzOTA4MjM= | 40,759 | STYLE remove --keep-runtime-typing from pyupgrade | {
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
} | [
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] | closed | false | null | [] | null | 4 | "2021-04-02T18:29:50Z" | "2021-04-06T18:08:30Z" | "2021-04-06T18:08:30Z" | MEMBER | null | xref @simonjayhawkins 's comment: https://github.com/pandas-dev/pandas/pull/40545#discussion_r606360410
Task is:
- remove `keep-runtime-typing` from:
https://github.com/pandas-dev/pandas/blob/cc84a2383c641998d4817cfaeb33c64f017b7454/.pre-commit-config.yaml#L57
- run `pre-commit run pyupgrade --all-files`
- run `pre-commit run flake8 --all-files`, fixup any errors (probably some about extra imports)
Finally, run `pre-commit run --all-files` (this may take a few minutes), fixup any hooks which don't pass, and when everything passes, open a pull request :rocket: | {
"+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/40759/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40759/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40760 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40760/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40760/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40760/events | https://github.com/pandas-dev/pandas/pull/40760 | 849,394,801 | MDExOlB1bGxSZXF1ZXN0NjA4MTc3ODY3 | 40,760 | TYP: libalgos.pyi | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-02T18:38:31Z" | "2021-04-08T14:26:44Z" | "2021-04-08T12:53:37Z" | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40760/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40760/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40760.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40760",
"merged_at": "2021-04-08T12:53:37Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40760.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40760"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40761 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40761/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40761/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40761/events | https://github.com/pandas-dev/pandas/pull/40761 | 849,416,976 | MDExOlB1bGxSZXF1ZXN0NjA4MTk2MDEx | 40,761 | DOC: collapse subpages in sidebar for API reference docs | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-06-22T09:35:40Z",
"closed_issues": 50,
"created_at": "2021-04-12T08:10:59Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-05-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/85",
"id": 6650632,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/85/labels",
"node_id": "MDk6TWlsZXN0b25lNjY1MDYzMg==",
"number": 85,
"open_issues": 0,
"state": "closed",
"title": "1.2.5",
"updated_at": "2021-06-23T08:13:15Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/85"
} | 5 | "2021-04-02T19:29:52Z" | "2021-04-13T12:26:52Z" | "2021-04-13T12:24:53Z" | MEMBER | null | The latest version of the theme added the capability to collapse/expand subsections in the sidebar (without directly navigating to the page), see eg the new dropdown arrows on https://pandas.pydata.org/docs/dev/getting_started/index.html
But, an unintended consequence is that the build takes*much* longer (this the reason that the Web / Doc CI build is now always slow on the current open PRs), and this is especially due to our API reference page, which has more than 1000 subpages, and all those pages now have the full navigation structure to all other 1000 pages.
In this PR I am trying to override the base theme template for the sidebar navigation, to not do this for the reference section of our docs.
xref https://github.com/pydata/pydata-sphinx-theme/issues/364 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40761/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40761/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40761.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40761",
"merged_at": "2021-04-13T12:24:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40761.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40761"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40762 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40762/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40762/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40762/events | https://github.com/pandas-dev/pandas/issues/40762 | 849,437,232 | MDU6SXNzdWU4NDk0MzcyMzI= | 40,762 | BUG: invalid type annotation for equal operator of Series | {
"avatar_url": "https://avatars.githubusercontent.com/u/328125?v=4",
"events_url": "https://api.github.com/users/ikokostya/events{/privacy}",
"followers_url": "https://api.github.com/users/ikokostya/followers",
"following_url": "https://api.github.com/users/ikokostya/following{/other_user}",
"gists_url": "https://api.github.com/users/ikokostya/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ikokostya",
"id": 328125,
"login": "ikokostya",
"node_id": "MDQ6VXNlcjMyODEyNQ==",
"organizations_url": "https://api.github.com/users/ikokostya/orgs",
"received_events_url": "https://api.github.com/users/ikokostya/received_events",
"repos_url": "https://api.github.com/users/ikokostya/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ikokostya/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ikokostya/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ikokostya"
} | [
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
},
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | open | false | null | [] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 4 | "2021-04-02T19:52:06Z" | "2021-11-12T21:17:48Z" | null | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
df = pd.DataFrame(
{'kind' : ['a', 'b', 'a'],
'value' : [1, 2, 3]})
res: pd.Series = df['kind'] == 'a'
print(type(res))
```
#### Problem description
`mypy` returns the following error:
```
$ mypy test.py
test.py:7: error: Incompatible types in assignment (expression has type "bool", variable has type
"Series")
res: pd.Series = df['kind'] == 'a'
^
Found 1 error in 1 file (checked 1 source file)
$ mypy --version
mypy 0.812
```
But actual type of the result at runtime is `Series`:
```
$ python test.py
<class 'pandas.core.series.Series'>
```
#### Expected Output
No compile errors.
#### Output of ``pd.show_versions()``
<details>
```
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.8.5.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-70-generic
Version : #78-Ubuntu SMP Fri Mar 19 13:29:52 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.3
numpy : 1.20.2
pytz : 2021.1
dateutil : 2.8.1
pip : 20.0.2
setuptools : 44.0.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
```
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40762/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40762/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40763 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40763/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40763/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40763/events | https://github.com/pandas-dev/pandas/pull/40763 | 849,506,882 | MDExOlB1bGxSZXF1ZXN0NjA4Mjc0ODc5 | 40,763 | BUG: Series.__delitem__ converting EAs to ndarrays | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | "2021-04-02T22:14:08Z" | "2021-04-05T16:21:39Z" | "2021-04-05T16:19:43Z" | MEMBER | null | - [x] closes #40386
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40763/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40763/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40763.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40763",
"merged_at": "2021-04-05T16:19:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40763.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40763"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40764 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40764/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40764/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40764/events | https://github.com/pandas-dev/pandas/pull/40764 | 849,515,190 | MDExOlB1bGxSZXF1ZXN0NjA4MjgxNzA3 | 40,764 | Bug in loc not ordering rhs correctly for mixed indexer | {
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] | closed | false | null | [] | {
"closed_at": "2021-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"
} | 5 | "2021-04-02T22:42:54Z" | "2021-11-01T23:14:41Z" | "2021-04-13T23:19:56Z" | MEMBER | null | - [x] closes #40480
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40764/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40764/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40764.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40764",
"merged_at": "2021-04-13T23:19:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40764.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40764"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40765 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40765/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40765/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40765/events | https://github.com/pandas-dev/pandas/pull/40765 | 849,570,222 | MDExOlB1bGxSZXF1ZXN0NjA4MzI0NjQ1 | 40,765 | CLN/TYP: _libs | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-03T03:51:47Z" | "2021-04-05T15:53:09Z" | "2021-04-05T14:56:17Z" | MEMBER | null | mercifully getting towards the end of these | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40765/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40765/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40765.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40765",
"merged_at": "2021-04-05T14:56:17Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40765.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40765"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40766 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40766/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40766/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40766/events | https://github.com/pandas-dev/pandas/pull/40766 | 849,574,591 | MDExOlB1bGxSZXF1ZXN0NjA4MzI4MDA4 | 40,766 | TYP: timedeltas.pyi | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 3 | "2021-04-03T04:26:55Z" | "2021-04-14T14:27:38Z" | "2021-04-14T14:25:47Z" | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
@simonjayhawkins mypy is unhappy about `Timedelta.__new__` potentially returning `NaT`. Thoughts on how to handle this? (it'll come up again in Timestamp and Period)
```
pandas/_libs/tslibs/timedeltas.pyi:51: error: "__new__" must return a class instance (got "Union[Timedelta, NaTType]") [misc]
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40766/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40766/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40766.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40766",
"merged_at": "2021-04-14T14:25:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40766.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40766"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40767 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40767/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40767/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40767/events | https://github.com/pandas-dev/pandas/pull/40767 | 849,575,354 | MDExOlB1bGxSZXF1ZXN0NjA4MzI4NTc0 | 40,767 | BUG: incorrect rounding in groupby.cummin near int64 implementation bounds | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 6 | "2021-04-03T04:33:24Z" | "2021-04-14T14:14:30Z" | "2021-04-14T12:56:24Z" | MEMBER | null | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
xref #40719
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40767/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40767/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40767.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40767",
"merged_at": "2021-04-14T12:56:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40767.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40767"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40768 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40768/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40768/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40768/events | https://github.com/pandas-dev/pandas/pull/40768 | 849,595,949 | MDExOlB1bGxSZXF1ZXN0NjA4MzQyNTcw | 40,768 | DOC/CI: temp pin of decorator (IPython dependency) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"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": "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"
} | 5 | "2021-04-03T06:57:48Z" | "2021-04-06T16:03:01Z" | "2021-04-03T09:49:28Z" | MEMBER | null | The doc builds are failing since yesterday (in enhancingperf.rst, where using the cython ipython magic). By comparing the env from the last working / first failing build on master, one of the differences is a version bump of the `decorator` package, which is a dependency of IPython.
So checking if pinning this package fixes the issue. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40768/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40768/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40768.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40768",
"merged_at": "2021-04-03T09:49:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40768.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40768"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40769 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40769/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40769/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40769/events | https://github.com/pandas-dev/pandas/issues/40769 | 849,657,816 | MDU6SXNzdWU4NDk2NTc4MTY= | 40,769 | BUG: Min/max markers on box plot are not visible with 'dark_background' theme | {
"avatar_url": "https://avatars.githubusercontent.com/u/2547618?v=4",
"events_url": "https://api.github.com/users/sandyscott/events{/privacy}",
"followers_url": "https://api.github.com/users/sandyscott/followers",
"following_url": "https://api.github.com/users/sandyscott/following{/other_user}",
"gists_url": "https://api.github.com/users/sandyscott/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sandyscott",
"id": 2547618,
"login": "sandyscott",
"node_id": "MDQ6VXNlcjI1NDc2MTg=",
"organizations_url": "https://api.github.com/users/sandyscott/orgs",
"received_events_url": "https://api.github.com/users/sandyscott/received_events",
"repos_url": "https://api.github.com/users/sandyscott/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sandyscott/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sandyscott/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sandyscott"
} | [
{
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"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 | {
"avatar_url": "https://avatars.githubusercontent.com/u/56703401?v=4",
"events_url": "https://api.github.com/users/jnchngc/events{/privacy}",
"followers_url": "https://api.github.com/users/jnchngc/followers",
"following_url": "https://api.github.com/users/jnchngc/following{/other_user}",
"gists_url": "https://api.github.com/users/jnchngc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jnchngc",
"id": 56703401,
"login": "jnchngc",
"node_id": "MDQ6VXNlcjU2NzAzNDAx",
"organizations_url": "https://api.github.com/users/jnchngc/orgs",
"received_events_url": "https://api.github.com/users/jnchngc/received_events",
"repos_url": "https://api.github.com/users/jnchngc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jnchngc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jnchngc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jnchngc"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/56703401?v=4",
"events_url": "https://api.github.com/users/jnchngc/events{/privacy}",
"followers_url": "https://api.github.com/users/jnchngc/followers",
"following_url": "https://api.github.com/users/jnchngc/following{/other_user}",
"gists_url": "https://api.github.com/users/jnchngc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jnchngc",
"id": 56703401,
"login": "jnchngc",
"node_id": "MDQ6VXNlcjU2NzAzNDAx",
"organizations_url": "https://api.github.com/users/jnchngc/orgs",
"received_events_url": "https://api.github.com/users/jnchngc/received_events",
"repos_url": "https://api.github.com/users/jnchngc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jnchngc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jnchngc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jnchngc"
}
] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | "2021-04-03T13:26:16Z" | "2021-05-10T09:34:28Z" | "2021-05-10T09:34:28Z" | NONE | null | The min & max markers (the short lines at the ends of the whiskers) aren't visible with the 'dark_background' theme
#### Code Sample, a copy-pastable example
```python
import pandas as pd
import matplotlib.pyplot as plt
# Data is from the pandas plotting demo
# https://pandas.pydata.org/docs/getting_started/intro_tutorials/04_plotting.html
air_quality = pd.read_csv("air_quality_no2.csv", index_col=0, parse_dates=True)
plt.style.use('default')
air_quality.plot.box()
plt.style.use('dark_background')
air_quality.plot.box()
```
#### Problem description
The min & max markers (the short lines at the ends of the whiskers) aren't visible with the 'dark_background' theme

I initially reported this as matplotlib bug here: https://github.com/matplotlib/matplotlib/issues/19778
They concluded it was an issue with pandas.
diegopetrola said: "I also briefly investigated pandas and it seems they have a function called `_get_standard_colors()` in line 83 of the script called `boxplot.py`. I am fairly confident that it is this function that overrides the theme and causes the issue."
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.8.6.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.72-microsoft-standard-WSL2
Version : #1 SMP Wed Oct 28 23:40:43 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.3
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 49.6.0
Cython : 0.29.21
pytest : None
hypothesis : None
sphinx : 3.1.2
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.13.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40769/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40769/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40770 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40770/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40770/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40770/events | https://github.com/pandas-dev/pandas/pull/40770 | 849,667,606 | MDExOlB1bGxSZXF1ZXN0NjA4MzkzMTM0 | 40,770 | EHN: multi-column explode | {
"avatar_url": "https://avatars.githubusercontent.com/u/20906652?v=4",
"events_url": "https://api.github.com/users/stphnlyd/events{/privacy}",
"followers_url": "https://api.github.com/users/stphnlyd/followers",
"following_url": "https://api.github.com/users/stphnlyd/following{/other_user}",
"gists_url": "https://api.github.com/users/stphnlyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/stphnlyd",
"id": 20906652,
"login": "stphnlyd",
"node_id": "MDQ6VXNlcjIwOTA2NjUy",
"organizations_url": "https://api.github.com/users/stphnlyd/orgs",
"received_events_url": "https://api.github.com/users/stphnlyd/received_events",
"repos_url": "https://api.github.com/users/stphnlyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/stphnlyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stphnlyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/stphnlyd"
} | [
{
"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": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 15 | "2021-04-03T14:21:41Z" | "2021-06-21T13:06:44Z" | "2021-06-21T13:06:25Z" | CONTRIBUTOR | null | - [x] closes #39240
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40770/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40770/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40770.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40770",
"merged_at": "2021-06-21T13:06:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40770.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40770"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40771 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40771/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40771/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40771/events | https://github.com/pandas-dev/pandas/pull/40771 | 849,704,614 | MDExOlB1bGxSZXF1ZXN0NjA4NDE4NjE4 | 40,771 | BUG: remove part of error handler #40729 | {
"avatar_url": "https://avatars.githubusercontent.com/u/26526439?v=4",
"events_url": "https://api.github.com/users/junjunjunk/events{/privacy}",
"followers_url": "https://api.github.com/users/junjunjunk/followers",
"following_url": "https://api.github.com/users/junjunjunk/following{/other_user}",
"gists_url": "https://api.github.com/users/junjunjunk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/junjunjunk",
"id": 26526439,
"login": "junjunjunk",
"node_id": "MDQ6VXNlcjI2NTI2NDM5",
"organizations_url": "https://api.github.com/users/junjunjunk/orgs",
"received_events_url": "https://api.github.com/users/junjunjunk/received_events",
"repos_url": "https://api.github.com/users/junjunjunk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/junjunjunk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/junjunjunk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/junjunjunk"
} | [] | closed | false | null | [] | null | 0 | "2021-04-03T17:34:36Z" | "2021-04-03T18:24:45Z" | "2021-04-03T18:24:40Z" | CONTRIBUTOR | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40771/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40771/timeline | null | 1 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40771.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40771",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/40771.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40771"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40772 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40772/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40772/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40772/events | https://github.com/pandas-dev/pandas/pull/40772 | 849,725,050 | MDExOlB1bGxSZXF1ZXN0NjA4NDMzMDYw | 40,772 | TYP: lib.pyi | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": "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 | "2021-04-03T19:31:33Z" | "2021-04-09T10:56:52Z" | "2021-04-08T13:40:02Z" | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40772/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40772/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40772.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40772",
"merged_at": "2021-04-08T13:40:02Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40772.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40772"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40773 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40773/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40773/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40773/events | https://github.com/pandas-dev/pandas/pull/40773 | 849,725,480 | MDExOlB1bGxSZXF1ZXN0NjA4NDMzMzgy | 40,773 | STY: remove --keep-runtime-typing from pyupgrade Part-1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/42073497?v=4",
"events_url": "https://api.github.com/users/fathomer/events{/privacy}",
"followers_url": "https://api.github.com/users/fathomer/followers",
"following_url": "https://api.github.com/users/fathomer/following{/other_user}",
"gists_url": "https://api.github.com/users/fathomer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fathomer",
"id": 42073497,
"login": "fathomer",
"node_id": "MDQ6VXNlcjQyMDczNDk3",
"organizations_url": "https://api.github.com/users/fathomer/orgs",
"received_events_url": "https://api.github.com/users/fathomer/received_events",
"repos_url": "https://api.github.com/users/fathomer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fathomer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fathomer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fathomer"
} | [
{
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 4 | "2021-04-03T19:34:15Z" | "2021-04-06T15:51:42Z" | "2021-04-06T15:51:42Z" | CONTRIBUTOR | null | - [x] xref #40759
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40773/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40773/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40773.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40773",
"merged_at": "2021-04-06T15:51:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40773.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40773"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40774 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40774/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40774/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40774/events | https://github.com/pandas-dev/pandas/issues/40774 | 849,760,353 | MDU6SXNzdWU4NDk3NjAzNTM= | 40,774 | QST: Why does reading CSV dates return datetime instead of Timestamp? | {
"avatar_url": "https://avatars.githubusercontent.com/u/22419519?v=4",
"events_url": "https://api.github.com/users/Pilipets/events{/privacy}",
"followers_url": "https://api.github.com/users/Pilipets/followers",
"following_url": "https://api.github.com/users/Pilipets/following{/other_user}",
"gists_url": "https://api.github.com/users/Pilipets/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Pilipets",
"id": 22419519,
"login": "Pilipets",
"node_id": "MDQ6VXNlcjIyNDE5NTE5",
"organizations_url": "https://api.github.com/users/Pilipets/orgs",
"received_events_url": "https://api.github.com/users/Pilipets/received_events",
"repos_url": "https://api.github.com/users/Pilipets/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Pilipets/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Pilipets/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Pilipets"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] | closed | false | null | [] | null | 5 | "2021-04-03T23:36:01Z" | "2021-04-04T22:38:38Z" | "2021-04-04T15:20:57Z" | NONE | null | _Problem description:_
I'm reading CSV historical prices data with `pandas.read_csv(...),` but the problem is with reading the dates column - I want the values to be in `pandas.Timestamp` type, but the method returns them in `datetime` instead.
_Question:_
**What's wrong here?**
Why does pandas return `<class 'datetime.datetime'>` instead of `<class 'pandas._libs.tslibs.timestamps.Timestamp'>`, and how could I read in the Timestamp?
_Data example:_
```
Local time | Open | High | Low | Close | Volume
28.02.2014 02:00:00.000 GMT+0200 | 1.37067 | 1.3825 | 1.36943 | 1.38042 | 176839
```
_Reading attempts:_
1.
```
data = pd.read_csv(fp, parse_dates = ["Local time"], dtype={'Local time': pd.Timestamp})
#data = pd.read_csv(fp, dtype={'Local time': pd.Timestamp})
```
Result: `TypeError: dtype '<class 'pandas._libs.tslibs.timestamps.Timestamp'>' not understood`.
2.
```
data = pd.read_csv(fp, parse_dates = ["Local time"])
print(type(data['Local time'][0]))
```
Result: `<class 'datetime.datetime'>`.
3.
```
data = pd.read_csv(fp, parse_dates = ["Local time"])
print(type(pd.Timestamp(data['Local time'][0])))
```
Result: `<class 'pandas._libs.tslibs.timestamps.Timestamp'>`. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40774/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40774/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40775 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40775/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40775/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40775/events | https://github.com/pandas-dev/pandas/pull/40775 | 849,776,961 | MDExOlB1bGxSZXF1ZXN0NjA4NDcxNjMz | 40,775 | TYP/CLN: factorize_from_iterable(s) | {
"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": "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": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-04T01:47:31Z" | "2021-04-05T16:28:57Z" | "2021-04-05T15:24:48Z" | CONTRIBUTOR | null | `factorize_from_iterable` didn't return an `CategoricalIndex`, if its input was a categorical-like. Instead it returned a plain `Categorical`. This PR fixes that + adds return types.
Also makes the return value for `factorize_from_iterables` clearer and easier to read.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40775/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40775/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40775.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40775",
"merged_at": "2021-04-05T15:24:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40775.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40775"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40776 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40776/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40776/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40776/events | https://github.com/pandas-dev/pandas/pull/40776 | 849,782,197 | MDExOlB1bGxSZXF1ZXN0NjA4NDc1NTMz | 40,776 | REF: move Series-specific methods from NDFrame | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
}
] | closed | false | null | [] | {
"closed_at": "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 | "2021-04-04T02:32:38Z" | "2021-04-08T14:40:11Z" | "2021-04-08T12:55:38Z" | MEMBER | null | This makes it easier to identify BlockManager methods which are 1D/2D-specific, which lets us push further on #40625 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40776/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40776/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40776.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40776",
"merged_at": "2021-04-08T12:55:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40776.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40776"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40777 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40777/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40777/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40777/events | https://github.com/pandas-dev/pandas/pull/40777 | 849,880,721 | MDExOlB1bGxSZXF1ZXN0NjA4NTUwMzg3 | 40,777 | Fix legend yerr | {
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 5 | "2021-04-04T13:59:26Z" | "2021-04-09T07:36:47Z" | "2021-04-09T00:52:25Z" | MEMBER | null | - [x] closes #40044
- [x] xref #39522
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
I spent several hours on this, and I don't think there's a simple solution at the moment (though I'd love to be proved wrong!)
Background:
in Nov 2017, #18222 was opened, in which it was noted that marker info isn't preserved in legends. This is because we were getting legend handles using `leg.legendHandles`:
https://github.com/pandas-dev/pandas/blob/b623a9df3cf3d69fbdddab0f02a03ad69281c8b0/pandas/plotting/_matplotlib/core.py#L574
Due to [an open issue in matplotlib](https://github.com/matplotlib/matplotlib/issues/11357), `leg.legendHandles` doesn't preserve marker info. So, in #27808, the code was updated to use `ax.get_legend_handles_labels`:
https://github.com/pandas-dev/pandas/blob/5d3b492743e199e82e3018bb943545181ed0018f/pandas/plotting/_matplotlib/core.py#L604
This preserves marker info _but_ has the problem that it may contain additional objects which aren't visible in the legend. The result of this is the permutations observed in #39522 .
I think that having wrong colours in the legend, as in #39522 and #40044, is _far_ worse than the legend not preserving marker info. Solving everything together doesn't currently seem doable, at least not until https://github.com/matplotlib/matplotlib/issues/11357 is solved in matplotlib.
So my suggestion is to revert some of the changes in #27808, so that at least the colors are right, and when the matplotlib issue is addressed, then the marker info can be preserved.
----
#39522 on master:

on this branch:

---
#40044 on master:

on this branch:

| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40777/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40777/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40777.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40777",
"merged_at": "2021-04-09T00:52:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40777.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40777"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40778 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40778/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40778/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40778/events | https://github.com/pandas-dev/pandas/pull/40778 | 849,914,659 | MDExOlB1bGxSZXF1ZXN0NjA4NTc2MDk3 | 40,778 | CLN: ensure_int64->ensure_platform_int | {
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | "2021-04-04T16:50:54Z" | "2021-04-09T03:37:42Z" | "2021-04-09T03:33:04Z" | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40778/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40778/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40778.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40778",
"merged_at": "2021-04-09T03:33:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40778.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40778"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40779 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40779/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40779/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40779/events | https://github.com/pandas-dev/pandas/issues/40779 | 849,991,631 | MDU6SXNzdWU4NDk5OTE2MzE= | 40,779 | ENH: Option to turn off cell wrap in notebook output. | {
"avatar_url": "https://avatars.githubusercontent.com/u/81045987?v=4",
"events_url": "https://api.github.com/users/autoscraper/events{/privacy}",
"followers_url": "https://api.github.com/users/autoscraper/followers",
"following_url": "https://api.github.com/users/autoscraper/following{/other_user}",
"gists_url": "https://api.github.com/users/autoscraper/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/autoscraper",
"id": 81045987,
"login": "autoscraper",
"node_id": "MDQ6VXNlcjgxMDQ1OTg3",
"organizations_url": "https://api.github.com/users/autoscraper/orgs",
"received_events_url": "https://api.github.com/users/autoscraper/received_events",
"repos_url": "https://api.github.com/users/autoscraper/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/autoscraper/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/autoscraper/subscriptions",
"type": "User",
"url": "https://api.github.com/users/autoscraper"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "006b75",
"default": false,
"description": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
},
{
"color": "be21f2",
"default": false,
"description": "May be closeable, needs more eyeballs",
"id": 2365504893,
"name": "Closing Candidate",
"node_id": "MDU6TGFiZWwyMzY1NTA0ODkz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Closing%20Candidate"
}
] | closed | false | null | [] | null | 2 | "2021-04-05T00:14:01Z" | "2021-10-31T19:23:19Z" | "2021-10-31T19:23:19Z" | NONE | null | #### Option to turn off cell wrap in notebook output.
Behavior:

Wanted:

there is df.style.set_properties(**{'white-space': 'nowrap'}), but I could not find a way to set it as default for pandas.
#### Solution I'd like
Implementation of `pd.options.display.wrap_cells`
#### Alternatives considered
##### Per DataFrame:
```
df.style.set_properties(**{'white-space': 'nowrap'})
```
##### Per Notebook
(from https://stackoverflow.com/a/65371335)
In the first cell of your notebook put
```
%%html
<style>
/* Any CSS style can go in here. */
.dataframe th {
font-size: 18px;
}
.dataframe td {
font-size: 16px;
}
</style>
```
#### Additional context
Tried all of those:
```
pd.options.display.width
pd.options.display.max_colwidth
pd.options.display.expand_frame_repr
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40779/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40779/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40780 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40780/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40780/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40780/events | https://github.com/pandas-dev/pandas/pull/40780 | 850,045,079 | MDExOlB1bGxSZXF1ZXN0NjA4Njc2ODU4 | 40,780 | PERF: avoid doing check at each step in loop | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-05T03:40:10Z" | "2021-04-05T14:26:01Z" | "2021-04-05T13:09:10Z" | MEMBER | null | no measured perf difference, but its the principle of the thing | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40780/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40780/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40780.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40780",
"merged_at": "2021-04-05T13:09:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40780.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40780"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40781 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40781/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40781/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40781/events | https://github.com/pandas-dev/pandas/issues/40781 | 850,225,467 | MDU6SXNzdWU4NTAyMjU0Njc= | 40,781 | BUG: xlim and ylim not restricting plot area | {
"avatar_url": "https://avatars.githubusercontent.com/u/23026528?v=4",
"events_url": "https://api.github.com/users/regmibijay/events{/privacy}",
"followers_url": "https://api.github.com/users/regmibijay/followers",
"following_url": "https://api.github.com/users/regmibijay/following{/other_user}",
"gists_url": "https://api.github.com/users/regmibijay/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/regmibijay",
"id": 23026528,
"login": "regmibijay",
"node_id": "MDQ6VXNlcjIzMDI2NTI4",
"organizations_url": "https://api.github.com/users/regmibijay/orgs",
"received_events_url": "https://api.github.com/users/regmibijay/received_events",
"repos_url": "https://api.github.com/users/regmibijay/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/regmibijay/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/regmibijay/subscriptions",
"type": "User",
"url": "https://api.github.com/users/regmibijay"
} | [
{
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"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 | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 5 | "2021-04-05T09:16:48Z" | "2021-10-10T17:42:31Z" | null | CONTRIBUTOR | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
df = pd.read_csv(myfile) #contains 2 columns, Time in ms and Voltage in mV
xlabel = "Time in ms"
ylabel = "Volate in mV"
xlim = [0,120]
ylim = [0,8]
df.plot(x = "Time", xlabel= xlabel, ylabel=ylabel, xlim = xlim, ylim = ylim, kind="line")
plt.show()
```
#### Problem description
I am plotting a large dataset using `dataframe.plot()` in pandas. Dataset contains data in csv format. As per documentation, I specify `xlim `and `ylim` as arg in df.plot. Now the axes take the xlim and ylim values accordingly but the figure does not scale to these values and plot shows some part of of graph but not the area defined by 'xlim' and 'ylim'.
without xlim :

with xlim set :

sample files here: [samples](https://github.com/regmibijay/opencarp-analyzer/tree/main/samples)
project: [project](https://github.com/regmibijay/opencarp-analyzer)
#### Expected Output
I want to plot only the specified area. In my example image it would be the spike.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.9.2.final.0
python-bits : 64
OS : Linux
OS-release : 4.4.0-19041-Microsoft
Version : #488-Microsoft Mon Sep 01 13:43:00 PST 2020
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.3
numpy : 1.20.2
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 52.0.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.3
IPython : 7.22.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.4.1
numexpr : None
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.2
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40781/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40781/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40782 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40782/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40782/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40782/events | https://github.com/pandas-dev/pandas/pull/40782 | 850,278,698 | MDExOlB1bGxSZXF1ZXN0NjA4ODc3OTQ5 | 40,782 | CI, STYLE Consolidate pygrep checks | {
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
} | [
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-05T10:43:49Z" | "2021-04-05T13:21:52Z" | "2021-04-05T13:08:04Z" | MEMBER | null | These checks can be consolidated using multi-line expressions and verbose regex
I think this should make it easier to extend them, so it should be straightforward to port over the remaining ones in code_checks.sh without having to keep increasing the number of hooks
It also reduces the total number of distinct checks (26 now, down from 31 on master), leading to less visual clutter every time we make a commit
The output will still be clear, as it'll just show the line in which an offending pattern was found. E.g. inserting `import conftest` into `pandas/tests/io/formats/test_info.py` results in:
```console
$ pre-commit run unwanted-patterns-in-tests -a
Unwanted patterns in tests...............................................Failed
- hook id: unwanted-patterns-in-tests
- exit code: 1
pandas/tests/io/formats/test_info.py:2:import conftest
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40782/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40782/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40782.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40782",
"merged_at": "2021-04-05T13:08:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40782.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40782"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40783 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40783/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40783/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40783/events | https://github.com/pandas-dev/pandas/pull/40783 | 850,387,142 | MDExOlB1bGxSZXF1ZXN0NjA4OTY5NDYw | 40,783 | CI, STYLE sync flake8 versions | {
"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": "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": "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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | "2021-04-05T13:59:54Z" | "2021-04-09T19:51:08Z" | "2021-04-09T19:46:59Z" | MEMBER | null | There's been a couple of recent CI failures due to differences in flake8 versions: #40481, #40457
CI failures due to style checks are really annoying, so I think it's worth adding a check to ensure they're in-sync. There's already a hook with `pyyaml` as additional dependency, so that environment will be reused for this check. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40783/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40783/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40783.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40783",
"merged_at": "2021-04-09T19:46:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40783.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40783"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40784 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40784/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40784/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40784/events | https://github.com/pandas-dev/pandas/issues/40784 | 850,391,788 | MDU6SXNzdWU4NTAzOTE3ODg= | 40,784 | STYLE use subprocess to validate flake8 on docstrings instead of Application | {
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
} | [
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/23437545?v=4",
"events_url": "https://api.github.com/users/hasan-yaman/events{/privacy}",
"followers_url": "https://api.github.com/users/hasan-yaman/followers",
"following_url": "https://api.github.com/users/hasan-yaman/following{/other_user}",
"gists_url": "https://api.github.com/users/hasan-yaman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hasan-yaman",
"id": 23437545,
"login": "hasan-yaman",
"node_id": "MDQ6VXNlcjIzNDM3NTQ1",
"organizations_url": "https://api.github.com/users/hasan-yaman/orgs",
"received_events_url": "https://api.github.com/users/hasan-yaman/received_events",
"repos_url": "https://api.github.com/users/hasan-yaman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hasan-yaman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hasan-yaman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hasan-yaman"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/23437545?v=4",
"events_url": "https://api.github.com/users/hasan-yaman/events{/privacy}",
"followers_url": "https://api.github.com/users/hasan-yaman/followers",
"following_url": "https://api.github.com/users/hasan-yaman/following{/other_user}",
"gists_url": "https://api.github.com/users/hasan-yaman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hasan-yaman",
"id": 23437545,
"login": "hasan-yaman",
"node_id": "MDQ6VXNlcjIzNDM3NTQ1",
"organizations_url": "https://api.github.com/users/hasan-yaman/orgs",
"received_events_url": "https://api.github.com/users/hasan-yaman/received_events",
"repos_url": "https://api.github.com/users/hasan-yaman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hasan-yaman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hasan-yaman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hasan-yaman"
}
] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-05T14:06:59Z" | "2021-04-09T01:40:08Z" | "2021-04-09T01:40:08Z" | MEMBER | null | According to flake8's creator, [the `Application` class from flake8 isn't meant to be used a library](https://github.com/s-weigand/flake8-nb/issues/111#issuecomment-804997221). As their sole maintainer isn't the original author, the library's internals could well change without warning, and this would break `scripts/validate_docstrings`.
This part probably wants changing:
https://github.com/pandas-dev/pandas/blob/77ea98e9b76f872dd0f2a1f3c8aa7871ae23d8bd/scripts/validate_docstrings.py#L186-L199
We're already writing the docstring to a temporary file, so we could just run `flake8` on that via `subprocess.run` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40784/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40784/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40785 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40785/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40785/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40785/events | https://github.com/pandas-dev/pandas/pull/40785 | 850,486,751 | MDExOlB1bGxSZXF1ZXN0NjA5MDUyMzYz | 40,785 | future annotations | {
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
} | [
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 4 | "2021-04-05T16:26:07Z" | "2021-09-30T15:27:38Z" | "2021-04-13T12:13:36Z" | MEMBER | null | - [x] closes #40533
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40785/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40785/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40785.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40785",
"merged_at": "2021-04-13T12:13:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40785.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40785"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40786 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40786/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40786/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40786/events | https://github.com/pandas-dev/pandas/issues/40786 | 850,491,402 | MDU6SXNzdWU4NTA0OTE0MDI= | 40,786 | BUG: Datetime duplicates | {
"avatar_url": "https://avatars.githubusercontent.com/u/50236861?v=4",
"events_url": "https://api.github.com/users/monkiravn/events{/privacy}",
"followers_url": "https://api.github.com/users/monkiravn/followers",
"following_url": "https://api.github.com/users/monkiravn/following{/other_user}",
"gists_url": "https://api.github.com/users/monkiravn/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/monkiravn",
"id": 50236861,
"login": "monkiravn",
"node_id": "MDQ6VXNlcjUwMjM2ODYx",
"organizations_url": "https://api.github.com/users/monkiravn/orgs",
"received_events_url": "https://api.github.com/users/monkiravn/received_events",
"repos_url": "https://api.github.com/users/monkiravn/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/monkiravn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/monkiravn/subscriptions",
"type": "User",
"url": "https://api.github.com/users/monkiravn"
} | [
{
"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": "be21f2",
"default": false,
"description": "May be closeable, needs more eyeballs",
"id": 2365504893,
"name": "Closing Candidate",
"node_id": "MDU6TGFiZWwyMzY1NTA0ODkz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Closing%20Candidate"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 4 | "2021-04-05T16:33:56Z" | "2021-04-06T11:30:21Z" | "2021-04-06T11:30:15Z" | NONE | null |
#### Problem description
Today I get a error from AutoML in Azuer is `Error: The specified time column, 'SolarDate', contains rows with duplicate timestamps. If your data contains multiple time series, review the time series identifier column setting to define the time series identifiers for your data. If the dataset needs to be aggregated, please provide freq and target_aggregation_function parameters and run AutoML again.`
So I check for duplicates in 'SolarDate' - a datetime column, the result is this column is duplicated at a certain time of day
#### Output of ``pd.show_versions()``
`df[['Solar_Date']]`

```
df['Solar_Date'] = pd.to_datetime(df['Solar_Date'],format="%Y/%m/%d %H:%M:%S")
df[df.duplicated(subset=['Solar_Date'])][['Solar_Date']]
```

| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40786/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40786/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40787 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40787/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40787/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40787/events | https://github.com/pandas-dev/pandas/pull/40787 | 850,505,237 | MDExOlB1bGxSZXF1ZXN0NjA5MDY3NjUy | 40,787 | REF: share methods between ExtensionBlock, NDArrayBackedExtensionBlock | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
] | closed | false | null | [] | null | 1 | "2021-04-05T16:55:42Z" | "2021-04-07T21:35:39Z" | "2021-04-07T20:47:47Z" | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40787/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40787/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40787.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40787",
"merged_at": "2021-04-07T20:47:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40787.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40787"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40788 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40788/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40788/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40788/events | https://github.com/pandas-dev/pandas/issues/40788 | 850,556,606 | MDU6SXNzdWU4NTA1NTY2MDY= | 40,788 | BUG: DataFrame aggregation methods ignore numeric_only= when level= is specified | {
"avatar_url": "https://avatars.githubusercontent.com/u/675055?v=4",
"events_url": "https://api.github.com/users/TheNeuralBit/events{/privacy}",
"followers_url": "https://api.github.com/users/TheNeuralBit/followers",
"following_url": "https://api.github.com/users/TheNeuralBit/following{/other_user}",
"gists_url": "https://api.github.com/users/TheNeuralBit/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TheNeuralBit",
"id": 675055,
"login": "TheNeuralBit",
"node_id": "MDQ6VXNlcjY3NTA1NQ==",
"organizations_url": "https://api.github.com/users/TheNeuralBit/orgs",
"received_events_url": "https://api.github.com/users/TheNeuralBit/received_events",
"repos_url": "https://api.github.com/users/TheNeuralBit/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TheNeuralBit/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TheNeuralBit/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TheNeuralBit"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 4 | "2021-04-05T18:15:32Z" | "2021-04-05T19:24:18Z" | "2021-04-05T18:37:52Z" | CONTRIBUTOR | null | - [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
[notebook](https://colab.research.google.com/drive/1NYuEzyU3QDERoY7KOvD_-HxfGBvG517F?usp=sharing)
```python
In [1]: import pandas as pd
...: df = pd.DataFrame({
...: 'int': [1,2,3],
...: 'flt': [3.14,1.0,2.0],
...: 'str': ['z', 'a', 'b'],
...: 'bool': [True, False, True],
...: }, index=['a','a','b'])
...: df
Out[1]:
int flt str bool
a 1 3.14 z True
a 2 1.00 a False
b 3 2.00 b True
In [2]: df.dtypes
Out[2]:
int int64
flt float64
str object
bool bool
dtype: object
In [3]: df.sum(numeric_only=True) # WAI without level= arg
Out[3]:
int 6.00
flt 6.14
bool 2.00
dtype: float64
In [4]: df.sum()
Out[4]:
int 6
flt 6.14
str zab
bool 2
dtype: object
In [5]: df.sum(level=0, numeric_only=None) # behaves as if numeric_only is True no matter the input
Out[5]:
int flt bool
a 3 4.14 1
b 3 2.00 1
In [6]: df.sum(level=0, numeric_only=True)
Out[6]:
int flt bool
a 3 4.14 1
b 3 2.00 1
In [8]: df.max(level=0, numeric_only=None) # behaves as if numeric_only is None no matter the input
Out[8]:
int flt str bool
a 2 3.14 z True
b 3 2.00 b True
In [9]: df.max(level=0, numeric_only=True)
Out[9]:
int flt str bool
a 2 3.14 z True
b 3 2.00 b True
```
#### Problem description
The documentation for numeric aggregation methods on DataFrame (mean, median, sum, max, ..) indicates that `numeric_only` will drop all but float, int, and boolean columns. This works as expected in the traditional mode, but the argument seems to be ignored when doing a grouped aggregation via the `level=` arg. Some methods (e.g. sum) behave as if numeric_only is always True, some (e.g. max) behave as if its always None.
#### Expected Output
I'd expect that `str` would be dropped iff `numeric_only=True`, all other examples would include the `str` column.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.8.6.final.0
python-bits : 64
OS : Linux
OS-release : 5.7.17-1rodete5-amd64
Version : #1 SMP Debian 5.7.17-1rodete5 (2021-01-08)
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.3
numpy : 1.19.5
pytz : 2019.3
dateutil : 2.8.1
pip : 20.2.1
setuptools : 49.2.1
Cython : 0.29.13
pytest : 4.6.11
hypothesis : None
sphinx : 1.8.5
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.8.6 (dt dec pq3 ext lo64)
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 3.0.0
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.20
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40788/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40788/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40789 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40789/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40789/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40789/events | https://github.com/pandas-dev/pandas/pull/40789 | 850,558,474 | MDExOlB1bGxSZXF1ZXN0NjA5MTEyMTQ4 | 40,789 | BUG: RollingGroupby ignored as_index=False | {
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 4 | "2021-04-05T18:18:30Z" | "2021-04-10T05:24:41Z" | "2021-04-09T19:42:45Z" | MEMBER | null | - [x] closes #39433
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40789/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40789/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40789.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40789",
"merged_at": "2021-04-09T19:42:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40789.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40789"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40790 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40790/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40790/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40790/events | https://github.com/pandas-dev/pandas/pull/40790 | 850,672,973 | MDExOlB1bGxSZXF1ZXN0NjA5MjA1ODcx | 40,790 | BUG: groupby.agg/transform casts UDF results | {
"avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4",
"events_url": "https://api.github.com/users/rhshadrach/events{/privacy}",
"followers_url": "https://api.github.com/users/rhshadrach/followers",
"following_url": "https://api.github.com/users/rhshadrach/following{/other_user}",
"gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rhshadrach",
"id": 45562402,
"login": "rhshadrach",
"node_id": "MDQ6VXNlcjQ1NTYyNDAy",
"organizations_url": "https://api.github.com/users/rhshadrach/orgs",
"received_events_url": "https://api.github.com/users/rhshadrach/received_events",
"repos_url": "https://api.github.com/users/rhshadrach/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rhshadrach"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 5 | "2021-04-05T21:04:14Z" | "2021-05-08T21:59:15Z" | "2021-05-03T00:04:56Z" | MEMBER | null | - [x] closes #21240
- [x] closes #17035
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
This PR stops casting when the func is a callable since we can't tell when casting will be more harmful than helpful. I think this results in a more expected/consistent behavior for users. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40790/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40790/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40790.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40790",
"merged_at": "2021-05-03T00:04:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40790.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40790"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40791 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40791/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40791/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40791/events | https://github.com/pandas-dev/pandas/pull/40791 | 850,749,162 | MDExOlB1bGxSZXF1ZXN0NjA5Mjc1ODUw | 40,791 | ENH: Upgrade sql module for SQLAlchemy 2.0 #40686 | {
"avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4",
"events_url": "https://api.github.com/users/fangchenli/events{/privacy}",
"followers_url": "https://api.github.com/users/fangchenli/followers",
"following_url": "https://api.github.com/users/fangchenli/following{/other_user}",
"gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fangchenli",
"id": 7614606,
"login": "fangchenli",
"node_id": "MDQ6VXNlcjc2MTQ2MDY=",
"organizations_url": "https://api.github.com/users/fangchenli/orgs",
"received_events_url": "https://api.github.com/users/fangchenli/received_events",
"repos_url": "https://api.github.com/users/fangchenli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fangchenli"
} | [
{
"color": "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": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
},
{
"color": "78bced",
"default": false,
"description": "Waiting for review/response from a maintainer.",
"id": 2324533627,
"name": "Needs Review",
"node_id": "MDU6TGFiZWwyMzI0NTMzNjI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Review"
}
] | open | false | null | [] | null | 3 | "2021-04-05T22:21:17Z" | "2021-10-09T16:41:36Z" | null | MEMBER | null | - [ ] closes #40686
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40791/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40791/timeline | null | 1 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40791.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40791",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/40791.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40791"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40792 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40792/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40792/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40792/events | https://github.com/pandas-dev/pandas/pull/40792 | 850,786,352 | MDExOlB1bGxSZXF1ZXN0NjA5MzEwMTUz | 40,792 | CLN: use ensure_block_shape | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
] | 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 | "2021-04-05T23:01:32Z" | "2021-04-07T20:04:49Z" | "2021-04-07T20:02:13Z" | MEMBER | null | Broken off from #40149 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40792/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40792/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40792.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40792",
"merged_at": "2021-04-07T20:02:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40792.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40792"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40793 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40793/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40793/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40793/events | https://github.com/pandas-dev/pandas/pull/40793 | 850,884,623 | MDExOlB1bGxSZXF1ZXN0NjA5MzkyNjU0 | 40,793 | REF: simplify Index.join dispatch/wrapping | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-06T01:56:45Z" | "2021-04-07T20:04:24Z" | "2021-04-07T20:00:24Z" | MEMBER | null | Handle `return_indexers` in exactly one place. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40793/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40793/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40793.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40793",
"merged_at": "2021-04-07T20:00:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40793.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40793"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40794 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40794/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40794/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40794/events | https://github.com/pandas-dev/pandas/pull/40794 | 850,923,962 | MDExOlB1bGxSZXF1ZXN0NjA5NDIzMTQy | 40,794 | TYP: implement typing.Positional | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": "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 | "2021-04-06T03:41:08Z" | "2021-04-08T14:28:40Z" | "2021-04-08T12:47:18Z" | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40794/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40794/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40794.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40794",
"merged_at": "2021-04-08T12:47:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40794.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40794"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40795 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40795/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40795/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40795/events | https://github.com/pandas-dev/pandas/pull/40795 | 850,939,747 | MDExOlB1bGxSZXF1ZXN0NjA5NDM1Njk3 | 40,795 | TST: groupby of idxmax/min with mixed types | {
"avatar_url": "https://avatars.githubusercontent.com/u/52805678?v=4",
"events_url": "https://api.github.com/users/bsun94/events{/privacy}",
"followers_url": "https://api.github.com/users/bsun94/followers",
"following_url": "https://api.github.com/users/bsun94/following{/other_user}",
"gists_url": "https://api.github.com/users/bsun94/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bsun94",
"id": 52805678,
"login": "bsun94",
"node_id": "MDQ6VXNlcjUyODA1Njc4",
"organizations_url": "https://api.github.com/users/bsun94/orgs",
"received_events_url": "https://api.github.com/users/bsun94/received_events",
"repos_url": "https://api.github.com/users/bsun94/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bsun94/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bsun94/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bsun94"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-06T04:23:55Z" | "2021-04-14T12:55:46Z" | "2021-04-14T12:55:40Z" | CONTRIBUTOR | null | - [x] closes #40346
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry - didn't think this was necessary, just added a test case to a solved problem.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40795/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40795/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40795.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40795",
"merged_at": "2021-04-14T12:55:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40795.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40795"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40796 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40796/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40796/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40796/events | https://github.com/pandas-dev/pandas/pull/40796 | 850,941,045 | MDExOlB1bGxSZXF1ZXN0NjA5NDM2Nzg4 | 40,796 | Enable server side cursors | {
"avatar_url": "https://avatars.githubusercontent.com/u/8011761?v=4",
"events_url": "https://api.github.com/users/J0/events{/privacy}",
"followers_url": "https://api.github.com/users/J0/followers",
"following_url": "https://api.github.com/users/J0/following{/other_user}",
"gists_url": "https://api.github.com/users/J0/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/J0",
"id": 8011761,
"login": "J0",
"node_id": "MDQ6VXNlcjgwMTE3NjE=",
"organizations_url": "https://api.github.com/users/J0/orgs",
"received_events_url": "https://api.github.com/users/J0/received_events",
"repos_url": "https://api.github.com/users/J0/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/J0/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/J0/subscriptions",
"type": "User",
"url": "https://api.github.com/users/J0"
} | [
{
"color": "5319e7",
"default": false,
"description": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
}
] | closed | false | null | [] | null | 17 | "2021-04-06T04:27:19Z" | "2021-09-08T02:18:44Z" | "2021-09-08T02:18:43Z" | NONE | null | This pull request attempts to fix #35689. I read an article by @itamarst and decided to look further into the codebase. After noticing that the fix semed to be simple I decided file a PR. The fix is naive and I'm not sure the true solution is as simple as I imagine it to be. There are probably many things I'm missing as I've not read the codebase in detail so do let me know what else needs to be addressed.
- [x] closes #35689
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry(N.A.)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 2,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40796/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40796/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40796.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40796",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/40796.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40796"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40797 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40797/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40797/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40797/events | https://github.com/pandas-dev/pandas/pull/40797 | 851,125,108 | MDExOlB1bGxSZXF1ZXN0NjA5NTk5MTY3 | 40,797 | Revert "DOC/CI: temp pin of decorator (IPython dependency) (#40768)" | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"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": "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 | "2021-04-06T07:41:50Z" | "2021-04-06T11:18:42Z" | "2021-04-06T11:18:39Z" | MEMBER | null | This reverts commit 64f08445ae76bc7d3318d1e46c24254087ed5186.
Reverts #40768, as it is now fixed upstream | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40797/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40797/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40797.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40797",
"merged_at": "2021-04-06T11:18:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40797.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40797"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40798 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40798/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40798/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40798/events | https://github.com/pandas-dev/pandas/pull/40798 | 851,129,529 | MDExOlB1bGxSZXF1ZXN0NjA5NjAzMDMw | 40,798 | TYP fixup overload in reset_index | {
"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": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-06T07:46:05Z" | "2021-04-07T16:40:00Z" | "2021-04-07T16:39:57Z" | MEMBER | null | If we have `t.py`:
```python
import pandas as pd
inplace: bool
reveal_type(pd.DataFrame([1,2,3]).reset_index(0, inplace=True, col_fill='a'))
```
then on `master`, the last line would be revelead as `Revealed type is 'Union[pandas.core.frame.DataFrame, None]'`. With the current changes, it will be revealed as `Revealed type is 'None'`
This function takes arguments `level, drop, inplace` - if `drop` isn't passed, then `inplace` needs to be passed by keyword, but `level` can be passed positionally | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40798/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40798/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40798.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40798",
"merged_at": "2021-04-07T16:39:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40798.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40798"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40799 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40799/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40799/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40799/events | https://github.com/pandas-dev/pandas/issues/40799 | 851,335,184 | MDU6SXNzdWU4NTEzMzUxODQ= | 40,799 | BUG: behavior change in dataframe.shift(, freq=infer) when upgrading from pandas 1.1.5 to 1.2.x | {
"avatar_url": "https://avatars.githubusercontent.com/u/82028655?v=4",
"events_url": "https://api.github.com/users/laurent-mutricy/events{/privacy}",
"followers_url": "https://api.github.com/users/laurent-mutricy/followers",
"following_url": "https://api.github.com/users/laurent-mutricy/following{/other_user}",
"gists_url": "https://api.github.com/users/laurent-mutricy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/laurent-mutricy",
"id": 82028655,
"login": "laurent-mutricy",
"node_id": "MDQ6VXNlcjgyMDI4NjU1",
"organizations_url": "https://api.github.com/users/laurent-mutricy/orgs",
"received_events_url": "https://api.github.com/users/laurent-mutricy/received_events",
"repos_url": "https://api.github.com/users/laurent-mutricy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/laurent-mutricy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/laurent-mutricy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/laurent-mutricy"
} | [
{
"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": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] | open | false | null | [] | {
"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"
} | 14 | "2021-04-06T11:35:24Z" | "2021-06-16T14:46:21Z" | null | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import pandas as pd
import numpy as np
import io
# replicate the typical data I am reading with pd.rea_csv
dates=np.arange(0,600.1,0.1)
dateString="time, count\n"
for count, time in enumerate(dates):
dateString=dateString+"{:0.3f}, {}\n".format(time, count)
# create dataframe and convert 'time' as a datetime and put it to index.
df=pd.read_csv(io.BytesIO(dateString.encode()),sep=',')
df['date']=pd.to_datetime(df.time, unit='s')
df.set_index('date', inplace=True, drop=False)
df.shift(1, freq='infer') # <-- this is working with pandas 1.1.5 but not any more with 1.2.0 and above
```
```python-traceback
Traceback (most recent call last):
File "debugPandas.py", line 23, in <module>
df.shift(1, freq='infer')
File "\lib\site-packages\pandas\core\frame.py", line 4600, in shift
return super().shift(
File "\lib\site-packages\pandas\core\generic.py", line 9453, in shift
raise ValueError(msg)
ValueError: Freq was not set in the index hence cannot be inferred
```
#### Problem description
I am reading time series results from an other software with `pd.read_csv` and I put the time vector converted as datetime in index. At some stage in the data processing I need to use `dataframe.shift` using `freq='infer'`. This was working fine with pandas 1.1.5 but stopped working when upgrading to pandas 1.2.0 getting a `ValueError`. I could not find any reference of this in the change log so I guess it might be considered as a regression.
I worked it around forcing the proper frequency in the shift function instead of using `infer`
#### Investigations
<details>
Trying to go into more depth in the issue using the above dataframe `df`
```python
print(df.index.inferred_freq)
print(pd._libs.algos.unique_deltas(df.index.asi8))
```
returns for pandas 1.1.5
```
100L
[100000000]
```
and for pandas 1.2.x
```
None
[ 99999999 100000000 100000001]
```
There is some kind of rounding issue when converting the floats serie to datatime serie. This is not the case if the index is created directly from the `dates` ndarray so there might be something with the `read_csv` part.
This is working fine waterver version of pandas:
```python
dates=np.arange(0,600.1,0.1)
df=pd.DataFrame(data=dates, columns=['time'])
df['date']=pd.to_datetime(df.time, unit='s')
df.set_index('date', inplace=True, drop=False)
df.shift(1, freq='infer') # <-- works with pandas 1.2.x
print(df.index.inferred_freq) # --> 100L
print(pd._libs.algos.unique_deltas(df.index.asi8)) # --> [100000000]
```
</details>
#### Output of ``pd.show_versions()``
for pandas 1.2.3
<details>
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.9.1.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.14393
machine : AMD64
processor : Intel64 Family 6 Model 85 Stepping 7, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : English_United States.1252
pandas : 1.2.3
numpy : 1.20.1
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 52.0.0.post20210125
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.21.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.4
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
for pandas 1.1.5
<details>
INSTALLED VERSIONS
------------------
commit : b5958ee1999e9aead1938c0bba2b674378807b3d
python : 3.9.1.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.14393
machine : AMD64
processor : Intel64 Family 6 Model 85 Stepping 7, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : English_United States.1252
pandas : 1.1.5
numpy : 1.20.1
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 52.0.0.post20210125
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.21.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.4
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details> | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40799/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40799/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40800 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40800/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40800/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40800/events | https://github.com/pandas-dev/pandas/issues/40800 | 851,379,049 | MDU6SXNzdWU4NTEzNzkwNDk= | 40,800 | BUG: StringArray __array_ufunc__ validation of result should not require strings | {
"avatar_url": "https://avatars.githubusercontent.com/u/1417503?v=4",
"events_url": "https://api.github.com/users/johnflavin/events{/privacy}",
"followers_url": "https://api.github.com/users/johnflavin/followers",
"following_url": "https://api.github.com/users/johnflavin/following{/other_user}",
"gists_url": "https://api.github.com/users/johnflavin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/johnflavin",
"id": 1417503,
"login": "johnflavin",
"node_id": "MDQ6VXNlcjE0MTc1MDM=",
"organizations_url": "https://api.github.com/users/johnflavin/orgs",
"received_events_url": "https://api.github.com/users/johnflavin/received_events",
"repos_url": "https://api.github.com/users/johnflavin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/johnflavin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/johnflavin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/johnflavin"
} | [
{
"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"
}
] | open | false | null | [] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 2 | "2021-04-06T12:34:27Z" | "2021-04-07T21:10:19Z" | null | NONE | null | - [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
Note: This code sample requires pygeos, a python interface to the GEOS library. I don't know how to reproduce in a more minimal way without pygeos because the sample requires the numpy ufunc mechanism, which I can't easily exercise with sample code. Maybe someone with more C experience could make a smaller reproduction.
```python
>>> import pandas as pd
>>> import pygeos
>>> pd.array(["POINT (0 0)"])
<StringArray>
['POINT (0 0)']
Length: 1, dtype: string
>>> pygeos.from_wkt(pd.array(["POINT (0 0)"]))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/Caskroom/miniconda/base/envs/geopandas-dev/lib/python3.9/site-packages/pygeos/io.py", line 181, in from_wkt
return lib.from_wkt(geometry, **kwargs)
File "/usr/local/Caskroom/miniconda/base/envs/geopandas-dev/lib/python3.9/site-packages/pandas/core/arrays/numpy_.py", line 254, in __array_ufunc__
result = type(self)(result)
File "/usr/local/Caskroom/miniconda/base/envs/geopandas-dev/lib/python3.9/site-packages/pandas/core/arrays/string_.py", line 195, in __init__
self._validate()
File "/usr/local/Caskroom/miniconda/base/envs/geopandas-dev/lib/python3.9/site-packages/pandas/core/arrays/string_.py", line 200, in _validate
raise ValueError("StringArray requires a sequence of strings or pandas.NA")
ValueError: StringArray requires a sequence of strings or pandas.NA
```
#### Problem description
The `pygeos.from_wkt` function takes an array of strings and returns an array of geometry objects. But when this input array is a pandas `StringArray` we get an error. It seems that the `PandasArray.__array_ufunc__` implementation assumes the results of the ufunc will go into the same type of array as the input, in this case a `StringArray`, which produces an error when the results are not a string. (Credit to @jorisvandenbossche in a comment on pygeos/pygeos#338.)
#### Expected Output
If we pass a numpy array into `pygeos.from_wkt` it works fine and produces an output array of geometries.
```python
>>> import numpy as np
>>> np.array(["POINT (0 0)"])
array(['POINT (0 0)'], dtype='<U11')
>>> pygeos.from_wkt(np.array(["POINT (0 0)"]))
array([<pygeos.Geometry POINT (0 0)>], dtype=object)
```
I would expect the same output using a `StringArray`.
```python
>>> pygeos.from_wkt(pd.array(["POINT (0 0)"]))
array([<pygeos.Geometry POINT (0 0)>], dtype=object)
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.9.2.final.0
python-bits : 64
OS : Darwin
OS-release : 20.3.0
Version : Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.3
numpy : 1.20.2
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 49.6.0.post20210108
Cython : None
pytest : 6.2.3
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.22.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40800/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40800/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40801 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40801/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40801/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40801/events | https://github.com/pandas-dev/pandas/pull/40801 | 851,409,386 | MDExOlB1bGxSZXF1ZXN0NjA5ODM4MjM4 | 40,801 | Backport PR #38574 on branch 1.2.x (TST: fix some mpl warnings) | {
"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"
},
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
] | closed | false | null | [] | {
"closed_at": "2021-04-13T15:44:36Z",
"closed_issues": 46,
"created_at": "2021-03-01T08:32:08Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-04-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/84",
"id": 6490488,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/84/labels",
"node_id": "MDk6TWlsZXN0b25lNjQ5MDQ4OA==",
"number": 84,
"open_issues": 0,
"state": "closed",
"title": "1.2.4",
"updated_at": "2021-04-14T14:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/84"
} | 1 | "2021-04-06T13:11:05Z" | "2021-04-06T15:43:43Z" | "2021-04-06T15:43:43Z" | NONE | null | Backport PR #38574: TST: fix some mpl warnings | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40801/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40801/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40801.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40801",
"merged_at": "2021-04-06T15:43:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40801.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40801"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40802 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40802/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40802/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40802/events | https://github.com/pandas-dev/pandas/pull/40802 | 851,467,987 | MDExOlB1bGxSZXF1ZXN0NjA5ODg2NTY5 | 40,802 | STY: remove --keep-runtime-typing from pyupgrade Part-2 | {
"avatar_url": "https://avatars.githubusercontent.com/u/42073497?v=4",
"events_url": "https://api.github.com/users/fathomer/events{/privacy}",
"followers_url": "https://api.github.com/users/fathomer/followers",
"following_url": "https://api.github.com/users/fathomer/following{/other_user}",
"gists_url": "https://api.github.com/users/fathomer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fathomer",
"id": 42073497,
"login": "fathomer",
"node_id": "MDQ6VXNlcjQyMDczNDk3",
"organizations_url": "https://api.github.com/users/fathomer/orgs",
"received_events_url": "https://api.github.com/users/fathomer/received_events",
"repos_url": "https://api.github.com/users/fathomer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fathomer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fathomer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fathomer"
} | [
{
"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": "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 | "2021-04-06T14:11:13Z" | "2021-04-06T15:25:32Z" | "2021-04-06T15:25:32Z" | CONTRIBUTOR | null | To fix issue #40759 :
Changes here are from PEP585 (e.g. List[str] -> list[str]) and from PEP604 (Optional[str] -> str | None), both of which are only applied in the presence of from __future__ import annotations. Some imports became unused after this so those have been removed.
As there were changes in many files (97) this has been split up into 5 smaller PRs.
This is part 2 of 5.
Refer the discussion here : #40773
- [x] closes #40759
- [] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40802/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40802/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40802.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40802",
"merged_at": "2021-04-06T15:25:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40802.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40802"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40803 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40803/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40803/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40803/events | https://github.com/pandas-dev/pandas/pull/40803 | 851,471,686 | MDExOlB1bGxSZXF1ZXN0NjA5ODg5NDI0 | 40,803 | STY: remove --keep-runtime-typing from pyupgrade Part-3 | {
"avatar_url": "https://avatars.githubusercontent.com/u/42073497?v=4",
"events_url": "https://api.github.com/users/fathomer/events{/privacy}",
"followers_url": "https://api.github.com/users/fathomer/followers",
"following_url": "https://api.github.com/users/fathomer/following{/other_user}",
"gists_url": "https://api.github.com/users/fathomer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fathomer",
"id": 42073497,
"login": "fathomer",
"node_id": "MDQ6VXNlcjQyMDczNDk3",
"organizations_url": "https://api.github.com/users/fathomer/orgs",
"received_events_url": "https://api.github.com/users/fathomer/received_events",
"repos_url": "https://api.github.com/users/fathomer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fathomer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fathomer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fathomer"
} | [
{
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-06T14:14:52Z" | "2021-04-06T16:18:44Z" | "2021-04-06T15:34:05Z" | CONTRIBUTOR | null | xref #40759 :
Changes here are from PEP585 (e.g. List[str] -> list[str]) and from PEP604 (Optional[str] -> str | None), both of which are only applied in the presence of from future import annotations. Some imports became unused after this so those have been removed.
As there were changes in many files (97) this has been split up into 5 smaller PRs.
This is PR 3 of 5.
Refer the discussion here : #40773
-
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40803/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40803/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40803.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40803",
"merged_at": "2021-04-06T15:34:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40803.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40803"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40804 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40804/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40804/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40804/events | https://github.com/pandas-dev/pandas/pull/40804 | 851,472,972 | MDExOlB1bGxSZXF1ZXN0NjA5ODkwNDIx | 40,804 | STY: remove --keep-runtime-typing from pyupgrade Part-4 | {
"avatar_url": "https://avatars.githubusercontent.com/u/42073497?v=4",
"events_url": "https://api.github.com/users/fathomer/events{/privacy}",
"followers_url": "https://api.github.com/users/fathomer/followers",
"following_url": "https://api.github.com/users/fathomer/following{/other_user}",
"gists_url": "https://api.github.com/users/fathomer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fathomer",
"id": 42073497,
"login": "fathomer",
"node_id": "MDQ6VXNlcjQyMDczNDk3",
"organizations_url": "https://api.github.com/users/fathomer/orgs",
"received_events_url": "https://api.github.com/users/fathomer/received_events",
"repos_url": "https://api.github.com/users/fathomer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fathomer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fathomer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fathomer"
} | [
{
"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": "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 | "2021-04-06T14:16:05Z" | "2021-04-06T15:33:32Z" | "2021-04-06T15:33:32Z" | CONTRIBUTOR | null | xref #40759 :
Changes here are from PEP585 (e.g. List[str] -> list[str]) and from PEP604 (Optional[str] -> str | None), both of which are only applied in the presence of from future import annotations. Some imports became unused after this so those have been removed.
As there were changes in many files (97) this has been split up into 5 smaller PRs.
This is PR 4 of 5.
Refer the discussion here : #40773
- [x] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/40804/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40804/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40804.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40804",
"merged_at": "2021-04-06T15:33:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40804.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40804"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40805 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40805/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40805/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40805/events | https://github.com/pandas-dev/pandas/pull/40805 | 851,473,724 | MDExOlB1bGxSZXF1ZXN0NjA5ODkxMDEy | 40,805 | STY: remove --keep-runtime-typing from pyupgrade Final_Part-5 | {
"avatar_url": "https://avatars.githubusercontent.com/u/42073497?v=4",
"events_url": "https://api.github.com/users/fathomer/events{/privacy}",
"followers_url": "https://api.github.com/users/fathomer/followers",
"following_url": "https://api.github.com/users/fathomer/following{/other_user}",
"gists_url": "https://api.github.com/users/fathomer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fathomer",
"id": 42073497,
"login": "fathomer",
"node_id": "MDQ6VXNlcjQyMDczNDk3",
"organizations_url": "https://api.github.com/users/fathomer/orgs",
"received_events_url": "https://api.github.com/users/fathomer/received_events",
"repos_url": "https://api.github.com/users/fathomer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fathomer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fathomer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fathomer"
} | [
{
"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": "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"
} | 3 | "2021-04-06T14:16:50Z" | "2021-04-06T18:21:11Z" | "2021-04-06T18:08:31Z" | CONTRIBUTOR | null | To fix issue #40759 :
Changes here are from PEP585 (e.g. List[str] -> list[str]) and from PEP604 (Optional[str] -> str | None), both of which are only applied in the presence of from future import annotations. Some imports became unused after this so those have been removed.
As there were changes in many files (97) this has been split up into 5 smaller PRs.
This is the final PR 5 of 5.
Checks in this one will pass only when other parts are merged as --keep-runtime-typing is removed the pyupgrade precommit hook.
Refer the discussion here : #40773
- [x] closes #40759
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40805/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40805/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40805.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40805",
"merged_at": "2021-04-06T18:08:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40805.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40805"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40806 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40806/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40806/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40806/events | https://github.com/pandas-dev/pandas/pull/40806 | 851,557,249 | MDExOlB1bGxSZXF1ZXN0NjA5OTU5Mzk3 | 40,806 | Backport PR #40768 on branch 1.2.x (DOC/CI: temp pin of decorator (IPython dependency)) | {
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"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": "2021-04-13T15:44:36Z",
"closed_issues": 46,
"created_at": "2021-03-01T08:32:08Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-04-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/84",
"id": 6490488,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/84/labels",
"node_id": "MDk6TWlsZXN0b25lNjQ5MDQ4OA==",
"number": 84,
"open_issues": 0,
"state": "closed",
"title": "1.2.4",
"updated_at": "2021-04-14T14:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/84"
} | 4 | "2021-04-06T15:44:18Z" | "2021-04-06T16:36:58Z" | "2021-04-06T16:36:58Z" | NONE | null | Backport PR #40768: DOC/CI: temp pin of decorator (IPython dependency) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40806/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40806/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40806.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40806",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/40806.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40806"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40807 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40807/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40807/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40807/events | https://github.com/pandas-dev/pandas/pull/40807 | 851,601,322 | MDExOlB1bGxSZXF1ZXN0NjA5OTk1OTYw | 40,807 | Backport PR #40407 on branch 1.2.x (DOC: remove pin for pydata-sphinx-theme + update for latest release) | {
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-04-13T15:44:36Z",
"closed_issues": 46,
"created_at": "2021-03-01T08:32:08Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-04-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/84",
"id": 6490488,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/84/labels",
"node_id": "MDk6TWlsZXN0b25lNjQ5MDQ4OA==",
"number": 84,
"open_issues": 0,
"state": "closed",
"title": "1.2.4",
"updated_at": "2021-04-14T14:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/84"
} | 0 | "2021-04-06T16:35:56Z" | "2021-04-06T18:54:24Z" | "2021-04-06T18:54:24Z" | NONE | null | Backport PR #40407: DOC: remove pin for pydata-sphinx-theme + update for latest release | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40807/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40807/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40807.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40807",
"merged_at": "2021-04-06T18:54:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40807.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40807"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40808 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40808/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40808/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40808/events | https://github.com/pandas-dev/pandas/issues/40808 | 851,603,820 | MDU6SXNzdWU4NTE2MDM4MjA= | 40,808 | DOC: to_datetime not type-stable on mixed timezones (possible bug) | {
"avatar_url": "https://avatars.githubusercontent.com/u/79832071?v=4",
"events_url": "https://api.github.com/users/mkovarik337/events{/privacy}",
"followers_url": "https://api.github.com/users/mkovarik337/followers",
"following_url": "https://api.github.com/users/mkovarik337/following{/other_user}",
"gists_url": "https://api.github.com/users/mkovarik337/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mkovarik337",
"id": 79832071,
"login": "mkovarik337",
"node_id": "MDQ6VXNlcjc5ODMyMDcx",
"organizations_url": "https://api.github.com/users/mkovarik337/orgs",
"received_events_url": "https://api.github.com/users/mkovarik337/received_events",
"repos_url": "https://api.github.com/users/mkovarik337/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mkovarik337/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mkovarik337/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mkovarik337"
} | [
{
"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": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | "2021-04-06T16:39:15Z" | "2021-04-21T16:24:18Z" | "2021-04-21T16:24:18Z" | NONE | null | _Note_: This behaviour might be a bug. I'm assuming its an undocumented feature.
#### Location of the documentation
[pandas.to_datetime.html](https://pandas.pydata.org/docs/reference/api/pandas.to_datetime.html)
#### Documentation problem
`to_datetime` outputs different types depending on if the timezones are mixed or not (assuming `utc=True` not passed in).
``` python
MIXED = ["2018-10-26 12:00 -0500", "2018-10-26 12:00 -0400"]
UNMIXED = ["2018-10-26 12:00 -0500", "2018-10-26 12:00 -0500"]
print(pandas.to_datetime(MIXED).dtype) # ==> object
print(pandas.to_datetime(UNMIXED).dtype) # ==> datetime64[ns, pytz.FixedOffset(-300)]
```
#### Suggested fix for documentation
Specify aforementioned behaviour in documentation (in the `returns` section). Or, if not intentional feature, update the API to be type-stable. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40808/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40808/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40809 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40809/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40809/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40809/events | https://github.com/pandas-dev/pandas/issues/40809 | 851,645,947 | MDU6SXNzdWU4NTE2NDU5NDc= | 40,809 | BUG: AttributeError when using dict downcast in DataFrame.fillna | {
"avatar_url": "https://avatars.githubusercontent.com/u/36887638?v=4",
"events_url": "https://api.github.com/users/hsorsky/events{/privacy}",
"followers_url": "https://api.github.com/users/hsorsky/followers",
"following_url": "https://api.github.com/users/hsorsky/following{/other_user}",
"gists_url": "https://api.github.com/users/hsorsky/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hsorsky",
"id": 36887638,
"login": "hsorsky",
"node_id": "MDQ6VXNlcjM2ODg3NjM4",
"organizations_url": "https://api.github.com/users/hsorsky/orgs",
"received_events_url": "https://api.github.com/users/hsorsky/received_events",
"repos_url": "https://api.github.com/users/hsorsky/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hsorsky/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hsorsky/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hsorsky"
} | [
{
"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"
}
] | 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 | "2021-04-06T17:33:13Z" | "2021-04-13T23:22:59Z" | "2021-04-13T23:22:59Z" | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import pandas as pd
import numpy as np
X = pd.DataFrame(
{
"col1": [1, np.nan]
}
)
X.fillna({"col1": 2}, downcast={"col1": np.int64})
```
#### Problem description
[The docs](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.fillna.html) state that supplying `downcast` as a dict of `item -> dtype` is acceptable here. I would have thought that this would fill NAs in `"col1"` with value `2` and then downcasted `"col1"` to dtype `int64`. Instead an error is raised.
```
AttributeError: 'dict' object has no attribute 'type'
```
#### Expected Output
```
col1
0 1
1 2
```
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.7.4.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.3
numpy : 1.20.1
pytz : 2021.1
dateutil : 2.8.1
pip : 19.0.3
setuptools : 40.8.0
Cython : 0.29.22
pytest : 6.2.2
hypothesis : None
sphinx : 3.5.3
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.8.6 (dt dec pq3 ext lo64)
jinja2 : 2.11.3
IPython : 7.21.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.4
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.1
sqlalchemy : None
tables : None
tabulate : 0.8.7
xarray : None
xlrd : None
xlwt : None
numba : 0.53.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/40809/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40809/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40810 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40810/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40810/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40810/events | https://github.com/pandas-dev/pandas/issues/40810 | 851,728,825 | MDU6SXNzdWU4NTE3Mjg4MjU= | 40,810 | BUG: for DataFrame subclass, astype with dict does not keep the subclass | {
"avatar_url": "https://avatars.githubusercontent.com/u/585279?v=4",
"events_url": "https://api.github.com/users/mitar/events{/privacy}",
"followers_url": "https://api.github.com/users/mitar/followers",
"following_url": "https://api.github.com/users/mitar/following{/other_user}",
"gists_url": "https://api.github.com/users/mitar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mitar",
"id": 585279,
"login": "mitar",
"node_id": "MDQ6VXNlcjU4NTI3OQ==",
"organizations_url": "https://api.github.com/users/mitar/orgs",
"received_events_url": "https://api.github.com/users/mitar/received_events",
"repos_url": "https://api.github.com/users/mitar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mitar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mitar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mitar"
} | [
{
"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": "abf98b",
"default": false,
"description": "Subclassing pandas objects",
"id": 2559562239,
"name": "Subclassing",
"node_id": "MDU6TGFiZWwyNTU5NTYyMjM5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Subclassing"
}
] | open | false | null | [] | null | 1 | "2021-04-06T19:03:15Z" | "2021-10-24T18:09:09Z" | null | CONTRIBUTOR | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
#### Code Sample, a copy-pastable example
```python
import numpy
import pandas
class CustomDataFrame(pandas.DataFrame):
@property
def _constructor(self) -> type:
return CustomDataFrame
a = CustomDataFrame({'a': [1,2,3], 'b': ['A','B','C']})
print(type(a))
b = a.astype({'a': numpy.int64, 'b': object})
print(type(b))
```
#### Problem description
If I use `astype` on a DataFrame subclass, I would expect that the DataFrame class do not change, and only dtypes of columns change.
#### Expected Output
```
<class '__main__.CustomDataFrame'>
<class '__main__.CustomDataFrame'>
```
But I get:
```
<class '__main__.CustomDataFrame'>
<class 'pandas.core.frame.DataFrame'>
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.8.5.final.0
python-bits : 64
OS : Linux
OS-release : 5.8.0-48-generic
Version : #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.3
numpy : 1.20.2
pytz : 2021.1
dateutil : 2.8.1
pip : 20.0.2
setuptools : 44.0.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40810/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40810/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40811 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40811/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40811/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40811/events | https://github.com/pandas-dev/pandas/pull/40811 | 851,741,992 | MDExOlB1bGxSZXF1ZXN0NjEwMTEzMzI1 | 40,811 | TST: Consolidate groupby any, all tests | {
"avatar_url": "https://avatars.githubusercontent.com/u/37011898?v=4",
"events_url": "https://api.github.com/users/mzeitlin11/events{/privacy}",
"followers_url": "https://api.github.com/users/mzeitlin11/followers",
"following_url": "https://api.github.com/users/mzeitlin11/following{/other_user}",
"gists_url": "https://api.github.com/users/mzeitlin11/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mzeitlin11",
"id": 37011898,
"login": "mzeitlin11",
"node_id": "MDQ6VXNlcjM3MDExODk4",
"organizations_url": "https://api.github.com/users/mzeitlin11/orgs",
"received_events_url": "https://api.github.com/users/mzeitlin11/received_events",
"repos_url": "https://api.github.com/users/mzeitlin11/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mzeitlin11/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mzeitlin11/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mzeitlin11"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-06T19:22:25Z" | "2021-04-07T19:51:36Z" | "2021-04-07T19:45:26Z" | MEMBER | null | Just a move, no change except defining `df` in `test_any` since fixture not in scope.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40811/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40811/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40811.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40811",
"merged_at": "2021-04-07T19:45:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40811.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40811"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40812 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40812/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40812/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40812/events | https://github.com/pandas-dev/pandas/pull/40812 | 851,749,670 | MDExOlB1bGxSZXF1ZXN0NjEwMTE5NTQ2 | 40,812 | Subprocess to validate flake8 | {
"avatar_url": "https://avatars.githubusercontent.com/u/23437545?v=4",
"events_url": "https://api.github.com/users/hasan-yaman/events{/privacy}",
"followers_url": "https://api.github.com/users/hasan-yaman/followers",
"following_url": "https://api.github.com/users/hasan-yaman/following{/other_user}",
"gists_url": "https://api.github.com/users/hasan-yaman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hasan-yaman",
"id": 23437545,
"login": "hasan-yaman",
"node_id": "MDQ6VXNlcjIzNDM3NTQ1",
"organizations_url": "https://api.github.com/users/hasan-yaman/orgs",
"received_events_url": "https://api.github.com/users/hasan-yaman/received_events",
"repos_url": "https://api.github.com/users/hasan-yaman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hasan-yaman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hasan-yaman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hasan-yaman"
} | [
{
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 4 | "2021-04-06T19:33:40Z" | "2021-04-09T07:29:04Z" | "2021-04-09T01:40:08Z" | CONTRIBUTOR | null | - [x] closes #40784
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40812/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40812/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40812.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40812",
"merged_at": "2021-04-09T01:40:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40812.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40812"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40813 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40813/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40813/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40813/events | https://github.com/pandas-dev/pandas/pull/40813 | 851,777,288 | MDExOlB1bGxSZXF1ZXN0NjEwMTQxOTQ0 | 40,813 | BUG: Support numpy.random.Generator as random_state input | {
"avatar_url": "https://avatars.githubusercontent.com/u/1047337?v=4",
"events_url": "https://api.github.com/users/jamesmyatt/events{/privacy}",
"followers_url": "https://api.github.com/users/jamesmyatt/followers",
"following_url": "https://api.github.com/users/jamesmyatt/following{/other_user}",
"gists_url": "https://api.github.com/users/jamesmyatt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jamesmyatt",
"id": 1047337,
"login": "jamesmyatt",
"node_id": "MDQ6VXNlcjEwNDczMzc=",
"organizations_url": "https://api.github.com/users/jamesmyatt/orgs",
"received_events_url": "https://api.github.com/users/jamesmyatt/received_events",
"repos_url": "https://api.github.com/users/jamesmyatt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jamesmyatt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jamesmyatt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jamesmyatt"
} | [] | closed | false | null | [] | null | 2 | "2021-04-06T20:15:10Z" | "2021-04-07T10:05:02Z" | "2021-04-07T10:04:45Z" | CONTRIBUTOR | null | - [x] workaround for #38100
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40813/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40813/timeline | null | 1 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40813.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40813",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/40813.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40813"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40814 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40814/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40814/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40814/events | https://github.com/pandas-dev/pandas/issues/40814 | 851,814,051 | MDU6SXNzdWU4NTE4MTQwNTE= | 40,814 | ENH: Drop numpy 1.16 in line with NEP 29 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1047337?v=4",
"events_url": "https://api.github.com/users/jamesmyatt/events{/privacy}",
"followers_url": "https://api.github.com/users/jamesmyatt/followers",
"following_url": "https://api.github.com/users/jamesmyatt/following{/other_user}",
"gists_url": "https://api.github.com/users/jamesmyatt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jamesmyatt",
"id": 1047337,
"login": "jamesmyatt",
"node_id": "MDQ6VXNlcjEwNDczMzc=",
"organizations_url": "https://api.github.com/users/jamesmyatt/orgs",
"received_events_url": "https://api.github.com/users/jamesmyatt/received_events",
"repos_url": "https://api.github.com/users/jamesmyatt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jamesmyatt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jamesmyatt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jamesmyatt"
} | [
{
"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": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
}
] | closed | false | null | [] | {
"closed_at": "2021-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"
} | 3 | "2021-04-06T21:12:03Z" | "2021-04-13T23:09:52Z" | "2021-04-13T23:09:01Z" | CONTRIBUTOR | null | #### Is your feature request related to a problem?
In order to address #38100 , I'd like to update `pandas.core.common.random_state` and anything that uses it to use the new and improved `numpy.random` API introduced in NumPy 1.17. That change is not the subject of this issue/discussion.
However, the easiest/cheapest/cleanest way to implement this would be to assume numpy 1.17, since `random_state` is only used by the `sample` method, rather than implement adapters or defensive programming. The [NEP 29](https://numpy.org/neps/nep-0029-deprecation_policy.html) deprecation policy gives the deprecation date for numpy 1.16 as Jan 13, 2021, so it would be in-line with this policy to deprecate.
I'd like to discuss this proposed change and the approach for how to implement it. In #38100, @jreback said he was "not averse" to this.
#### Describe the solution you'd like
I think that the only change initially would be to update install config files (e.g. setup.cfg) and docs to update the minimum numpy version, but no other code changes.
I think this change should be part of pandas 1.3.0 release. In line with https://github.com/pandas-dev/pandas/blob/master/pyproject.toml#L9, I suggest to make 1.17.3 the minimum numpy version.
Later pull requests would incrementally remove defensive logic to handle numpy 1.16 (e.g. `pandas.compat.numpy.np_version_under1p17`). Enhancements that depend on numpy 1.17 (e.g. using `numpy.random.Generator`) could be implemented in parallel with the work to tidy the compatibility code.
I'm happy if someone else wants to take this on, but otherwise I should be able to contribute some PRs myself.
#### API breaking implications
Mandatory dependency version would be incremented, but this is in line with the published deprecation policy.
pandas functionality should otherwise be unaffected since it already works with numpy 1.17+.
#### Describe alternatives you've considered
Doing nothing would be against the published deprecation policy and delay opportunities to implement enhancements that exploit numpy 1.17.
#### Additional context
N/A
| {
"+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/40814/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40814/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40815 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40815/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40815/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40815/events | https://github.com/pandas-dev/pandas/pull/40815 | 851,846,720 | MDExOlB1bGxSZXF1ZXN0NjEwMTk5NzA1 | 40,815 | Fix line_terminator escaping in python doc | {
"avatar_url": "https://avatars.githubusercontent.com/u/9317502?v=4",
"events_url": "https://api.github.com/users/Drarig29/events{/privacy}",
"followers_url": "https://api.github.com/users/Drarig29/followers",
"following_url": "https://api.github.com/users/Drarig29/following{/other_user}",
"gists_url": "https://api.github.com/users/Drarig29/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Drarig29",
"id": 9317502,
"login": "Drarig29",
"node_id": "MDQ6VXNlcjkzMTc1MDI=",
"organizations_url": "https://api.github.com/users/Drarig29/orgs",
"received_events_url": "https://api.github.com/users/Drarig29/received_events",
"repos_url": "https://api.github.com/users/Drarig29/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Drarig29/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Drarig29/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Drarig29"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-06T22:10:58Z" | "2021-04-07T13:44:58Z" | "2021-04-07T13:44:54Z" | CONTRIBUTOR | null | The line terminators are not escaped so we don't see the backslash here:

Source : https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_csv.html | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40815/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40815/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40815.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40815",
"merged_at": "2021-04-07T13:44:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40815.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40815"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40816 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40816/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40816/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40816/events | https://github.com/pandas-dev/pandas/pull/40816 | 851,846,965 | MDExOlB1bGxSZXF1ZXN0NjEwMTk5OTE0 | 40,816 | BUG-7023 allow error bars to use style | {
"avatar_url": "https://avatars.githubusercontent.com/u/7249846?v=4",
"events_url": "https://api.github.com/users/GLeurquin/events{/privacy}",
"followers_url": "https://api.github.com/users/GLeurquin/followers",
"following_url": "https://api.github.com/users/GLeurquin/following{/other_user}",
"gists_url": "https://api.github.com/users/GLeurquin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/GLeurquin",
"id": 7249846,
"login": "GLeurquin",
"node_id": "MDQ6VXNlcjcyNDk4NDY=",
"organizations_url": "https://api.github.com/users/GLeurquin/orgs",
"received_events_url": "https://api.github.com/users/GLeurquin/received_events",
"repos_url": "https://api.github.com/users/GLeurquin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/GLeurquin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GLeurquin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/GLeurquin"
} | [
{
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] | closed | false | null | [] | null | 2 | "2021-04-06T22:11:30Z" | "2021-05-11T19:57:29Z" | "2021-05-11T19:57:29Z" | NONE | null | - [x] closes #7023
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40816/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40816/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40816.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40816",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/40816.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40816"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40817 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40817/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40817/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40817/events | https://github.com/pandas-dev/pandas/issues/40817 | 851,856,586 | MDU6SXNzdWU4NTE4NTY1ODY= | 40,817 | BUG: Reindexing a DatetimeIndex during Daylight Saving Transition Causes Segmentation Fault with dateutil tz | {
"avatar_url": "https://avatars.githubusercontent.com/u/35540058?v=4",
"events_url": "https://api.github.com/users/JonWiggins/events{/privacy}",
"followers_url": "https://api.github.com/users/JonWiggins/followers",
"following_url": "https://api.github.com/users/JonWiggins/following{/other_user}",
"gists_url": "https://api.github.com/users/JonWiggins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JonWiggins",
"id": 35540058,
"login": "JonWiggins",
"node_id": "MDQ6VXNlcjM1NTQwMDU4",
"organizations_url": "https://api.github.com/users/JonWiggins/orgs",
"received_events_url": "https://api.github.com/users/JonWiggins/received_events",
"repos_url": "https://api.github.com/users/JonWiggins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JonWiggins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JonWiggins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JonWiggins"
} | [
{
"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"
},
{
"color": "36ede0",
"default": false,
"description": "Non-Recoverable Error",
"id": 1121248195,
"name": "Segfault",
"node_id": "MDU6TGFiZWwxMTIxMjQ4MTk1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Segfault"
}
] | open | false | null | [] | null | 3 | "2021-04-06T22:32:09Z" | "2021-11-01T19:25:02Z" | null | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import datetime
import pandas as pd
from dateutil.tz import tzfile
tz = tzfile("/usr/share/zoneinfo/America/Santiago")
dt_values = [pd.Timestamp('2021-04-03 23:00:00-03:00', tz=tz, freq='H'), pd.Timestamp('2021-04-03 23:00:00-04:00', tz=tz, freq='H'),]
dummy_values = ["first", "second"]
pd.DataFrame({"index": dt_values, "dummy_values": dummy_values}).set_index("index").reindex(["1", "2"])
```
#### Problem description
While the above code should replace the DatetimeIndex of the DataFrame with `["1", "2"]`, it instead causes a segmentation fault.
This seems to only happen during the Daylight Savings transition during this Chilean timezone, and it seems to only happen if the two values are before and after the timezone switch.
While debugging, it seems that sometime between when `self._engine.get_indexer` is called in `pandas/core/indexes/base.py:get_indexer` and when `utcoffset` is called in `dateutil/tz/tz.py` (the most granular I get get via stepping in pdb) - the value of the second index enters a broken state. Some values from within `utcoffset` are shown below.
```
(Pdb) type(dt)
<class 'pandas._libs.tslibs.timestamps.Timestamp'>
(Pdb) dt.to_pydatetime()
datetime.datetime(2021, 4, 3, 23, 0, tzinfo=tzfile('/usr/share/zoneinfo/America/Santiago'))
(Pdb) dt.tzinfo
tzfile('/usr/share/zoneinfo/America/Santiago')
(Pdb) dt.tz
tzfile('/usr/share/zoneinfo/America/Santiago')
# Notable incorrect results
(Pdb) dt.asm8
numpy.datetime64('1970-01-01T00:00:00.000000000')
(Pdb) dt.value
0
(Pdb) dt.to_datetime64()
numpy.datetime64('1970-01-01T00:00:00.000000000')
# Results in a segmentation fault
(Pdb) str(dt)
(Pdb) dt
```
In pandas version `1.1.4` I was able to solve this problem by setting `method="pad"` so that a different indexer would be used. However, in pandas `1.2.3` I get segmentation faults for all 3 values (`bfill`, `ffill`, None).
#### Expected Output
I would expect this to run normally - resetting the index of the DataFrame with the index given
```python
import datetime
import pandas as pd
from dateutil.tz import tzfile
tz = tzfile("/usr/share/zoneinfo/America/Santiago")
dt_values = [pd.Timestamp('2021-04-03 23:00:00-03:00', tz=tz, freq='H'), pd.Timestamp('2021-04-03 23:00:00-04:00', tz=tz, freq='H'),]
dummy_values = ["first", "second"]
pd.DataFrame({"index": dt_values, "dummy_values": dummy_values}).set_index("index").reindex(["1", "2"])
```
```
dummy_values
index
1 first
2 second
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.7.10.final.0
python-bits : 64
OS : Linux
OS-release : 4.19.128-microsoft-standard
Version : #1 SMP Tue Jun 23 12:58:10 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.3
numpy : 1.20.2
pytz : 2021.1
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 : 2.10
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40817/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40817/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40818 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40818/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40818/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40818/events | https://github.com/pandas-dev/pandas/pull/40818 | 851,860,775 | MDExOlB1bGxSZXF1ZXN0NjEwMjExNDYy | 40,818 | REV: Revert #40510 | {
"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": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | "2021-04-06T22:41:56Z" | "2021-04-09T07:06:27Z" | "2021-04-07T19:44:38Z" | MEMBER | null | @jorisvandenbossche reports that #40510 was performance-hurting, so this rolls it back until we can sort out why that is. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40818/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40818/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40818.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40818",
"merged_at": "2021-04-07T19:44:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40818.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40818"
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.