url
stringlengths 55
59
| repository_url
stringclasses 1
value | labels_url
stringlengths 69
73
| comments_url
stringlengths 64
68
| events_url
stringlengths 62
66
| html_url
stringlengths 44
49
| id
int64 338k
1.06B
| node_id
stringlengths 18
32
| number
int64 1
44.6k
| title
stringlengths 1
590
| user
dict | labels
listlengths 0
9
| state
stringclasses 2
values | locked
bool 2
classes | assignee
dict | assignees
listlengths 0
5
| milestone
dict | comments
int64 0
477
| created_at
timestamp[us, tz=UTC] | updated_at
timestamp[us, tz=UTC] | closed_at
timestamp[us, tz=UTC] | author_association
stringclasses 3
values | active_lock_reason
stringclasses 4
values | body
stringlengths 0
251k
⌀ | reactions
dict | timeline_url
stringlengths 64
68
| performed_via_github_app
float64 | draft
float64 0
1
⌀ | pull_request
dict |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://api.github.com/repos/pandas-dev/pandas/issues/40319 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40319/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40319/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40319/events | https://github.com/pandas-dev/pandas/pull/40319 | 825,784,202 | MDExOlB1bGxSZXF1ZXN0NTg3ODQ0ODI3 | 40,319 | STYLE use pd_array in core | {
"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"
} | 8 | 2021-03-09T11:37:57Z | 2021-04-02T16:29:47Z | 2021-04-02T15:11:53Z | MEMBER | null | As requested by @jbrockmendel [here](https://github.com/pandas-dev/pandas/pull/40150) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40319/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40319/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40319.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40319",
"merged_at": "2021-04-02T15:11:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40319.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40319"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40320 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40320/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40320/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40320/events | https://github.com/pandas-dev/pandas/pull/40320 | 825,858,663 | MDExOlB1bGxSZXF1ZXN0NTg3OTEzMTIx | 40,320 | STYLE: Extending codespell to pandas/tests | {
"avatar_url": "https://avatars.githubusercontent.com/u/46242526?v=4",
"events_url": "https://api.github.com/users/01-vyom/events{/privacy}",
"followers_url": "https://api.github.com/users/01-vyom/followers",
"following_url": "https://api.github.com/users/01-vyom/following{/other_user}",
"gists_url": "https://api.github.com/users/01-vyom/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/01-vyom",
"id": 46242526,
"login": "01-vyom",
"node_id": "MDQ6VXNlcjQ2MjQyNTI2",
"organizations_url": "https://api.github.com/users/01-vyom/orgs",
"received_events_url": "https://api.github.com/users/01-vyom/received_events",
"repos_url": "https://api.github.com/users/01-vyom/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/01-vyom/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/01-vyom/subscriptions",
"type": "User",
"url": "https://api.github.com/users/01-vyom"
} | [
{
"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"
} | 7 | 2021-03-09T12:35:04Z | 2021-03-11T13:02:50Z | 2021-03-11T10:45:01Z | CONTRIBUTOR | null | - [X] xref #38802
- [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/40320/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40320/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40320.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40320",
"merged_at": "2021-03-11T10:45:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40320.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40320"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40321 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40321/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40321/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40321/events | https://github.com/pandas-dev/pandas/issues/40321 | 825,895,524 | MDU6SXNzdWU4MjU4OTU1MjQ= | 40,321 | BUG: read_excel leads to segfault | {
"avatar_url": "https://avatars.githubusercontent.com/u/964241?v=4",
"events_url": "https://api.github.com/users/tharwan/events{/privacy}",
"followers_url": "https://api.github.com/users/tharwan/followers",
"following_url": "https://api.github.com/users/tharwan/following{/other_user}",
"gists_url": "https://api.github.com/users/tharwan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tharwan",
"id": 964241,
"login": "tharwan",
"node_id": "MDQ6VXNlcjk2NDI0MQ==",
"organizations_url": "https://api.github.com/users/tharwan/orgs",
"received_events_url": "https://api.github.com/users/tharwan/received_events",
"repos_url": "https://api.github.com/users/tharwan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tharwan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tharwan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tharwan"
} | [
{
"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": "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"
}
] | closed | false | null | [] | null | 2 | 2021-03-09T13:03:04Z | 2021-03-27T15:50:28Z | 2021-03-27T15:50:28Z | 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
from pathlib import Path
import pandas as pd
filename = 'file.xlsm'
template_df = pd.read_excel(filename, sheet_name="Muster", usecols="A:F", skiprows=1)
template_df.index = template_df["Beschreibung"]
path = 'file2.xlsx'
df = pd.read_excel(path, sheet_name="Januar", usecols="A:F", skiprows=1)
df.index = df["Beschreibung"]
template_df.loc['Fee EPEX ID Kundenhandel', "Short/Kauf/NEG"] = 0
template_df.update(df)
template_df.loc["Direktvermarktung Vertragspreis", "Long/Verkauf/POS"]
```
#### Problem description
First of all, I know that the example is not a proper minimal snippet. I also can not provide the excel files in question. However I have no idea how to debug this issue any further.
If I run the script above with python -X faulthandler I get:
```
Current thread 0x00007f76b30a3280 (most recent call first):
File ".../.venv/lib/python3.8/site-packages/pandas/core/frame.py", line 3133 in _get_value
File ".../.venv/lib/python3.8/site-packages/pandas/core/indexing.py", line 888 in __getitem__
File ".../debug.py", line 22 in <module>
fish: “python -X faulthandler .../de…” terminated by signal SIGSEGV (Address boundary error)
```
From what I can deduce there is something wrong with the template_df DataFrame. I was trying to generate an equivivalent copy of it without copying the memory so I ran it through
```
tempalte_df = pd.Dataframe.from_dict(template_df.to_dict()).
```
This does indeed seem to help. However by accident I discovered just doing
```
d = template_df.to_dict()
```
also fixes it. As if to_dict() would somehow alter the DataFrame?
So I might be completely on the wrong track. Any help on how to drill down on this would be appreciated.
#### Expected Output
No segfault :-)
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.8.2.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-65-generic
Version : #73-Ubuntu SMP Mon Jan 18 17:25:17 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.1
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 : 1.3.7
lxml.etree : 4.6.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
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 : 3.0.6
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : 1.3.23
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40321/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40321/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40322 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40322/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40322/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40322/events | https://github.com/pandas-dev/pandas/issues/40322 | 825,910,092 | MDU6SXNzdWU4MjU5MTAwOTI= | 40,322 | ENH: Method for selecting columns from DataFrameGroupBy (and maybe DataFrame) | {
"avatar_url": "https://avatars.githubusercontent.com/u/315810?v=4",
"events_url": "https://api.github.com/users/mwaskom/events{/privacy}",
"followers_url": "https://api.github.com/users/mwaskom/followers",
"following_url": "https://api.github.com/users/mwaskom/following{/other_user}",
"gists_url": "https://api.github.com/users/mwaskom/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mwaskom",
"id": 315810,
"login": "mwaskom",
"node_id": "MDQ6VXNlcjMxNTgxMA==",
"organizations_url": "https://api.github.com/users/mwaskom/orgs",
"received_events_url": "https://api.github.com/users/mwaskom/received_events",
"repos_url": "https://api.github.com/users/mwaskom/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mwaskom/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mwaskom/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mwaskom"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "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": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
] | open | false | null | [] | null | 28 | 2021-03-09T13:13:53Z | 2021-06-07T03:50:34Z | null | CONTRIBUTOR | null | #### Is your feature request related to a problem?
When using a "fluent"/"method chaining" style of programming with pandas, a common hiccup is the lack of a method for selecting columns from a `DataFrameGroupBy` object. For example, take this DataFrame
```python
import pandas as pd
df = pd.DataFrame(dict(
x=[1, 2, 3, 4, 5, 6],
y=[2, 4, 6, 1, 2, 3],
a=["a", "b", "c", "a", "b", "c"],
b=["x", "x", "y", "z", "z", "z"],
))
```
To group by one column and then return the mean of another column within each group, one has to use multiple syntactical constructs:
```python
(
df
.groupby("a")
["x"]
.mean()
)
```
There is also dot-attribute access columns:
```python
(
df
.groupby("a")
.x
.mean()
)
```
but that is not fully general: it won't work if your column name collides with an existing method, and it won't work if the column is defined by a variable.
Another option is to select the column first then groupby using a series, not a name:
```python
(
df["x"]
.groupby(df["a"])
.mean()
)
```
This is not so bad. Well, ideally each step in the pipeline would be on a new line, and it requires some duplicated typing. But the bigger issue is that it fails when you want to group by more than one column:
```python
(
df["x"]
.groupby(df[["a", "b"]])
.mean()
)
```
<details><summary>Traceback</summary>
```python-traceback
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-14-edc38a1f02b1> in <module>
1 (
----> 2 df["x"]
3 .groupby(df[["a", "b"]])
4 .mean()
5 )
~/miniconda3/envs/py39/lib/python3.9/site-packages/pandas/core/series.py in groupby(self, by, axis, level, as_index, sort, group_keys, squeeze, observed, dropna)
1689 axis = self._get_axis_number(axis)
1690
-> 1691 return SeriesGroupBy(
1692 obj=self,
1693 keys=by,
~/miniconda3/envs/py39/lib/python3.9/site-packages/pandas/core/groupby/groupby.py in __init__(self, obj, keys, axis, level, grouper, exclusions, selection, as_index, sort, group_keys, squeeze, observed, mutated, dropna)
558 from pandas.core.groupby.grouper import get_grouper
559
--> 560 grouper, exclusions, obj = get_grouper(
561 obj,
562 keys,
~/miniconda3/envs/py39/lib/python3.9/site-packages/pandas/core/groupby/grouper.py in get_grouper(obj, key, axis, level, sort, observed, mutated, validate, dropna)
826 # allow us to passing the actual Grouping as the gpr
827 ping = (
--> 828 Grouping(
829 group_axis,
830 gpr,
~/miniconda3/envs/py39/lib/python3.9/site-packages/pandas/core/groupby/grouper.py in __init__(self, index, grouper, obj, name, level, sort, observed, in_axis, dropna)
541 if getattr(self.grouper, "ndim", 1) != 1:
542 t = self.name or str(type(self.grouper))
--> 543 raise ValueError(f"Grouper for '{t}' not 1-dimensional")
544 self.grouper = self.index.map(self.grouper)
545 if not (
ValueError: Grouper for '<class 'pandas.core.frame.DataFrame'>' not 1-dimensional
```
</details>
(I actually feel like this really ought to work, independently of whether it's the best solution to this Feature Request, but let's leave it aside for now).
**So in summary:** There's no fully-general, non-awkward method for selecting a column from `DataFrameGroupBy`. While certainly not fatal, it does make fluent pandas harder to read[1] and write[2]. And this is not an esoteric application: groupby/select/apply must be one of the most common pandas workflows.
[1] The great advantage of this method chaining approach for understanding code is that you can read off the sequence of verbs that comprise the operation. Introducing the `[column]` syntax requires your brain to shift from comprehension mode to production mode — you need to generate a verb for what's happening — which is a costly operation that likely (on the margin) impairs comprehension.
[2] I really like fluent pandas but it currently can be a little bit annoying to fight with autoindent/autoformat tools when writing it. It likely would be easier to improve that tooling if one could assume each pipeline step begins with a dotted method access.
#### Describe the solution you'd like
The `DataFrameGroupBy` object could have a column selection method.
Possible names:
##### `DataFrameGroupBy.get`
This exists in `DataFrame` as a thin wrapper around `self[arg]`. Possibly adds confusion with `DataFrameGroupBy.get_group`
##### `DataFrameGroupBy.select`
This is the method I have reached for more than once. I'm broadly aware of the history of [`NDFrame.select`](https://github.com/pandas-dev/pandas/pull/17633); this name should now be available, though it could cause some confusion to reintroduce it with different semantics (but xref https://github.com/pandas-dev/pandas/issues/26642).
It probably wouldn't make sense to add `.select` *only* to `DataFrameGroupBy` and not to `DataFrame`/`NDFrame`. So this would be more work (but also more benefit?)
In code, that might look like
```python
(
df
.groupby("a")
.select("x")
.mean()
)
```
#### API breaking implications
No breakage, unless someone has very old code using `DataFrame.select` that completely missed the original deprecation cycle and gets resurrected now.
Adding new methods (especially new ways of indexing pandas objects) definitely has an API complexity cost. But I would argue that, by converging on "one way to do it" in method chains, it could provide a a net reduction in complexity from the user perspective.
#### Additional context
This originally got some discussion on [twitter](https://twitter.com/michaelwaskom/status/1369037397040726020), note especially @TomAugspurger's [response](https://twitter.com/TomAugspurger/status/1369073811035983879).
Other relevant context would be the [select verb](https://dplyr.tidyverse.org/reference/select.html) in `dplyr`. | {
"+1": 10,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 10,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40322/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40322/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40323 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40323/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40323/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40323/events | https://github.com/pandas-dev/pandas/pull/40323 | 825,934,244 | MDExOlB1bGxSZXF1ZXN0NTg3OTgxNDc4 | 40,323 | [ArrayManager] TST: run (+fix/skip) pandas/tests/frame/indexing tests | {
"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": "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": "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"
} | 3 | 2021-03-09T13:31:19Z | 2021-03-14T09:31:23Z | 2021-03-12T21:48:08Z | MEMBER | null | xref #39146
Extracting part of the test changes of https://github.com/pandas-dev/pandas/pull/39578. This PR is doing `pandas/tests/frame/indexing`. The `pandas/tests/indexing` tests are handled in https://github.com/pandas-dev/pandas/pull/40323.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40323/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40323/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40323.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40323",
"merged_at": "2021-03-12T21:48:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40323.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40323"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40324 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40324/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40324/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40324/events | https://github.com/pandas-dev/pandas/pull/40324 | 826,022,184 | MDExOlB1bGxSZXF1ZXN0NTg4MDYwNTE2 | 40,324 | BUG: Fix sort_values for empty by argument | {
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
}
] | closed | false | null | [] | {
"closed_at": "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-03-09T14:32:35Z | 2021-03-10T00:17:16Z | 2021-03-09T22:06:15Z | MEMBER | null | - [x] closes https://github.com/pandas-dev/pandas/issues/40258
- [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/40324/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40324/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40324.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40324",
"merged_at": "2021-03-09T22:06:15Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40324.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40324"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40325 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40325/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40325/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40325/events | https://github.com/pandas-dev/pandas/pull/40325 | 826,028,680 | MDExOlB1bGxSZXF1ZXN0NTg4MDY2MzEx | 40,325 | [ArrayManager] TST: run (+fix/skip) pandas/tests/indexing tests | {
"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": "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": "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 | 3 | 2021-03-09T14:37:02Z | 2021-03-17T12:02:53Z | 2021-03-17T12:02:49Z | MEMBER | null | xref #39146
Extracting part of the test changes of https://github.com/pandas-dev/pandas/pull/39578. To keep the size a bit more limited, I am splitting the PRs, so this PR is doing `pandas/tests/indexing`. The `pandas/tests/frame/indexing` are handled in https://github.com/pandas-dev/pandas/pull/40323
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40325/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40325/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40325.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40325",
"merged_at": "2021-03-17T12:02:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40325.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40325"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40326 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40326/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40326/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40326/events | https://github.com/pandas-dev/pandas/pull/40326 | 826,097,221 | MDExOlB1bGxSZXF1ZXN0NTg4MTI3NTQy | 40,326 | [ArrayManager] TST: run (+fix/skip) pandas/tests/series/indexing tests | {
"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": "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": "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"
} | 2 | 2021-03-09T15:22:41Z | 2021-03-15T07:29:53Z | 2021-03-12T22:05:45Z | MEMBER | null | xref #39146
Getting the tests passing for the indexing tests, her for `pandas/tests/series/indexing` (`pandas/tests/indexing` is done in https://github.com/pandas-dev/pandas/pull/40325 and `pandas/tests/frame/indexing` is done in https://github.com/pandas-dev/pandas/pull/40323) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40326/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40326/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40326.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40326",
"merged_at": "2021-03-12T22:05:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40326.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40326"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40327 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40327/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40327/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40327/events | https://github.com/pandas-dev/pandas/issues/40327 | 826,110,685 | MDU6SXNzdWU4MjYxMTA2ODU= | 40,327 | DOC: fixup formula for exponentially weighted mean with input vector of 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": "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": "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 | {
"avatar_url": "https://avatars.githubusercontent.com/u/37313715?v=4",
"events_url": "https://api.github.com/users/mschmookler/events{/privacy}",
"followers_url": "https://api.github.com/users/mschmookler/followers",
"following_url": "https://api.github.com/users/mschmookler/following{/other_user}",
"gists_url": "https://api.github.com/users/mschmookler/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mschmookler",
"id": 37313715,
"login": "mschmookler",
"node_id": "MDQ6VXNlcjM3MzEzNzE1",
"organizations_url": "https://api.github.com/users/mschmookler/orgs",
"received_events_url": "https://api.github.com/users/mschmookler/received_events",
"repos_url": "https://api.github.com/users/mschmookler/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mschmookler/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mschmookler/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mschmookler"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/37313715?v=4",
"events_url": "https://api.github.com/users/mschmookler/events{/privacy}",
"followers_url": "https://api.github.com/users/mschmookler/followers",
"following_url": "https://api.github.com/users/mschmookler/following{/other_user}",
"gists_url": "https://api.github.com/users/mschmookler/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mschmookler",
"id": 37313715,
"login": "mschmookler",
"node_id": "MDQ6VXNlcjM3MzEzNzE1",
"organizations_url": "https://api.github.com/users/mschmookler/orgs",
"received_events_url": "https://api.github.com/users/mschmookler/received_events",
"repos_url": "https://api.github.com/users/mschmookler/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mschmookler/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mschmookler/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mschmookler"
}
] | null | 2 | 2021-03-09T15:31:42Z | 2021-03-10T08:50:54Z | 2021-03-10T08:50:54Z | MEMBER | null | #### Location of the documentation
https://pandas.pydata.org/docs/user_guide/window.html#exponentially-weighted-window
#### Documentation problem
Currently, it reads

However, I don't understand why the denominator doesn't also sum over time, as is shown in the general formula at the beginning of the section:

#### Suggested fix for documentation

----
I haven't done much windowing at all, so this may very well be me misunderstanding something
cc @mroeschke in #40099 , then if the timedelta is zero, then I think the current formula would give an expanding sum rather than an expanding mean | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40327/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40327/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40328 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40328/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40328/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40328/events | https://github.com/pandas-dev/pandas/issues/40328 | 826,128,913 | MDU6SXNzdWU4MjYxMjg5MTM= | 40,328 | DOC: pandas Index.reindex | {
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/71850263?v=4",
"events_url": "https://api.github.com/users/ShivnarenSrinivasan/events{/privacy}",
"followers_url": "https://api.github.com/users/ShivnarenSrinivasan/followers",
"following_url": "https://api.github.com/users/ShivnarenSrinivasan/following{/other_user}",
"gists_url": "https://api.github.com/users/ShivnarenSrinivasan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShivnarenSrinivasan",
"id": 71850263,
"login": "ShivnarenSrinivasan",
"node_id": "MDQ6VXNlcjcxODUwMjYz",
"organizations_url": "https://api.github.com/users/ShivnarenSrinivasan/orgs",
"received_events_url": "https://api.github.com/users/ShivnarenSrinivasan/received_events",
"repos_url": "https://api.github.com/users/ShivnarenSrinivasan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShivnarenSrinivasan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShivnarenSrinivasan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShivnarenSrinivasan"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/71850263?v=4",
"events_url": "https://api.github.com/users/ShivnarenSrinivasan/events{/privacy}",
"followers_url": "https://api.github.com/users/ShivnarenSrinivasan/followers",
"following_url": "https://api.github.com/users/ShivnarenSrinivasan/following{/other_user}",
"gists_url": "https://api.github.com/users/ShivnarenSrinivasan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShivnarenSrinivasan",
"id": 71850263,
"login": "ShivnarenSrinivasan",
"node_id": "MDQ6VXNlcjcxODUwMjYz",
"organizations_url": "https://api.github.com/users/ShivnarenSrinivasan/orgs",
"received_events_url": "https://api.github.com/users/ShivnarenSrinivasan/received_events",
"repos_url": "https://api.github.com/users/ShivnarenSrinivasan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShivnarenSrinivasan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShivnarenSrinivasan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShivnarenSrinivasan"
}
] | {
"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"
} | 8 | 2021-03-09T15:44:09Z | 2021-10-16T15:35:07Z | 2021-10-16T15:35:07Z | CONTRIBUTOR | null | Just noticed that this is poorly documented.
It has signature `(target, method=None, level=None, limit=None, tolerance=None)` and only documents the behaviour of `target`
Is a good candidate to revisit.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40328/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40328/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40329 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40329/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40329/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40329/events | https://github.com/pandas-dev/pandas/pull/40329 | 826,188,327 | MDExOlB1bGxSZXF1ZXN0NTg4MjA5NDAw | 40,329 | Bug Ensure cache_readonly is only applied on instance | {
"avatar_url": "https://avatars.githubusercontent.com/u/8629629?v=4",
"events_url": "https://api.github.com/users/fjetter/events{/privacy}",
"followers_url": "https://api.github.com/users/fjetter/followers",
"following_url": "https://api.github.com/users/fjetter/following{/other_user}",
"gists_url": "https://api.github.com/users/fjetter/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fjetter",
"id": 8629629,
"login": "fjetter",
"node_id": "MDQ6VXNlcjg2Mjk2Mjk=",
"organizations_url": "https://api.github.com/users/fjetter/orgs",
"received_events_url": "https://api.github.com/users/fjetter/received_events",
"repos_url": "https://api.github.com/users/fjetter/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fjetter/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fjetter/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fjetter"
} | [
{
"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": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 10 | 2021-03-09T16:21:29Z | 2021-04-12T12:38:16Z | 2021-04-12T12:38:06Z | MEMBER | null | The property cache was using the attribute `_cache` which occasionally is used by other classes as a class attribute. Most prominently this is true for all subclasses of `PandasExtensionDtype`, see https://github.com/pandas-dev/pandas/blob/ce082fb04a0cf597f673d35bc47afd6c2e3c3168/pandas/core/dtypes/dtypes.py#L89
This would cause the same cash to be used for the property caching as for the extension dtype. The dtype cache is a class attribute whereas the property cache is supposed to be instance only. I fixed this by using a longer name for the property caching attribute, hoping this would lead to less collisions.
Introducing a new attribute leads to failures for Cython extension types which previously were handled with an `AttributeError`. Firstly, I believe these cases should not silently pass and secondly the previous behaviour was wrong by not executing the function w/out cache but it returned the instance of the `CachedProperty` class instead. I addressed this but enabling the caching for extension classes requires defining the attribute explicitly. I went ahead and created a mixin class for this but I'm open to other suggestions as well.
- [x] closes N/A
- [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/40329/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40329/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40329.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40329",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/40329.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40329"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40330 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40330/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40330/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40330/events | https://github.com/pandas-dev/pandas/pull/40330 | 826,394,171 | MDExOlB1bGxSZXF1ZXN0NTg4NDAwNzg0 | 40,330 | REF/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": "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"
},
{
"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"
} | 4 | 2021-03-09T18:07:53Z | 2021-03-09T21:15:26Z | 2021-03-09T20:17:10Z | MEMBER | null | The only non-trivial change here is changing `_id` from `_id = _Identity(object)` to `_id = object()`, which I found in profiling (https://github.com/pandas-dev/pandas/pull/40171#issuecomment-790219422) makes a non-trivial difference as the non-cython performance inches closer to the cython performance.
Share DTI/TDI/PI's _simple_new with Categorical.
Simplify DTI/TDI `__contains__`
Annotations.
Docstring follow-up to #40241 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40330/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40330/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40330.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40330",
"merged_at": "2021-03-09T20:17:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40330.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40330"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40331 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40331/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40331/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40331/events | https://github.com/pandas-dev/pandas/pull/40331 | 826,404,855 | MDExOlB1bGxSZXF1ZXN0NTg4NDEwNjU5 | 40,331 | REF: prelims for 2D DTA/TDA | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "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"
} | 1 | 2021-03-09T18:14:29Z | 2021-03-09T22:28:11Z | 2021-03-09T22:14:27Z | 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/40331/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40331/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40331.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40331",
"merged_at": "2021-03-09T22:14:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40331.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40331"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40332 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40332/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40332/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40332/events | https://github.com/pandas-dev/pandas/pull/40332 | 826,497,978 | MDExOlB1bGxSZXF1ZXN0NTg4NDk2NjI1 | 40,332 | STYLE: Extending codespell to pandas/tests Part 2 | {
"avatar_url": "https://avatars.githubusercontent.com/u/46242526?v=4",
"events_url": "https://api.github.com/users/01-vyom/events{/privacy}",
"followers_url": "https://api.github.com/users/01-vyom/followers",
"following_url": "https://api.github.com/users/01-vyom/following{/other_user}",
"gists_url": "https://api.github.com/users/01-vyom/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/01-vyom",
"id": 46242526,
"login": "01-vyom",
"node_id": "MDQ6VXNlcjQ2MjQyNTI2",
"organizations_url": "https://api.github.com/users/01-vyom/orgs",
"received_events_url": "https://api.github.com/users/01-vyom/received_events",
"repos_url": "https://api.github.com/users/01-vyom/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/01-vyom/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/01-vyom/subscriptions",
"type": "User",
"url": "https://api.github.com/users/01-vyom"
} | [
{
"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-03-09T19:16:16Z | 2021-03-10T10:18:20Z | 2021-03-10T08:58:31Z | CONTRIBUTOR | null | - [X] xref #38802
- [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/40332/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40332/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40332.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40332",
"merged_at": "2021-03-10T08:58:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40332.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40332"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40333 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40333/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40333/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40333/events | https://github.com/pandas-dev/pandas/issues/40333 | 826,520,181 | MDU6SXNzdWU4MjY1MjAxODE= | 40,333 | BUG: read_csv not erroring on a bad line with extra columns | {
"avatar_url": "https://avatars.githubusercontent.com/u/7690631?v=4",
"events_url": "https://api.github.com/users/ashja99/events{/privacy}",
"followers_url": "https://api.github.com/users/ashja99/followers",
"following_url": "https://api.github.com/users/ashja99/following{/other_user}",
"gists_url": "https://api.github.com/users/ashja99/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ashja99",
"id": 7690631,
"login": "ashja99",
"node_id": "MDQ6VXNlcjc2OTA2MzE=",
"organizations_url": "https://api.github.com/users/ashja99/orgs",
"received_events_url": "https://api.github.com/users/ashja99/received_events",
"repos_url": "https://api.github.com/users/ashja99/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ashja99/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ashja99/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ashja99"
} | [
{
"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"
}
] | 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"
} | 8 | 2021-03-09T19:33:48Z | 2021-04-19T16:04:59Z | 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.
---
(this was also posted to Stack Overflow, where I was told this seems like a bug https://stackoverflow.com/questions/66541816/pandas-read-csv-not-erroring-on-a-bad-line-with-extra-columns)
#### Code Sample, a copy-pastable example
I have the below simple csv
```
ownername,streetno,streetname
me,320,main st,just,absolute,garbage
you,40,mint ave
```
The command I'm using to read the file is
```python
import csv
import pandas
file = 'path_to_csv'
data = pandas.read_csv(file,',',header=0, quotechar=None, quoting = csv.QUOTE_NONE, index_col=False)
```
As long as the extra values (just,absolute,garbage) occur on the first row of data, it will parse the file without errors, giving me the below DataFrame
```
ownername streetno streetname
0 me 320 main st
1 you 40 mint ave
```
#### Problem description
This is not erroring on the bad line with extra columns as long as the bad line is the first line of data. Explicitly setting `error_bad_lines=True` has no effect.
#### Expected Output
`Error tokenizing data. C error: Expected 3 fields in line 2, saw 6`, e.g. the same as what happens when the extra columns are only on the 2nd line of data.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.7.2.final.0
python-bits : 32
OS : Windows
OS-release : 10
Version : 10.0.19041
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : None.None
pandas : 1.2.3
numpy : 1.20.1
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 54.1.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : 3.0.6
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : 1.3.23
tables : None
tabulate : None
xarray : None
xlrd : 2.0.1
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/40333/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40333/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40334 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40334/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40334/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40334/events | https://github.com/pandas-dev/pandas/pull/40334 | 826,524,516 | MDExOlB1bGxSZXF1ZXN0NTg4NTIwODA1 | 40,334 | BUG: fix regression in Styler.export/use | {
"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": "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": "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"
} | 3 | 2021-03-09T19:37:11Z | 2021-03-30T05:04:15Z | 2021-03-10T14:50:07Z | CONTRIBUTOR | null | - [x] closes #39735
#39396 solved a bug that CSS was duplicated everytime a Styler rendered. The solution maintained the computed `ctx` object and cleared the `_todo` list of methods so it wasn't recalculated. This broke the `export` and `use` methods since they rely on passing methods from the `_todo` list.
This PR solves the above duplication problem by clearing the `ctx` object before each `render`, maintaining the `_todo` from one render to another, and therefore fixes the broken methods.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40334/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40334/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40334.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40334",
"merged_at": "2021-03-10T14:50:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40334.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40334"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40335 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40335/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40335/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40335/events | https://github.com/pandas-dev/pandas/issues/40335 | 826,551,299 | MDU6SXNzdWU4MjY1NTEyOTk= | 40,335 | BUG: panda3d/core.cpython-39-darwin.so is not code signed on macOS Big Sur | {
"avatar_url": "https://avatars.githubusercontent.com/u/2931213?v=4",
"events_url": "https://api.github.com/users/HenkPoley/events{/privacy}",
"followers_url": "https://api.github.com/users/HenkPoley/followers",
"following_url": "https://api.github.com/users/HenkPoley/following{/other_user}",
"gists_url": "https://api.github.com/users/HenkPoley/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/HenkPoley",
"id": 2931213,
"login": "HenkPoley",
"node_id": "MDQ6VXNlcjI5MzEyMTM=",
"organizations_url": "https://api.github.com/users/HenkPoley/orgs",
"received_events_url": "https://api.github.com/users/HenkPoley/received_events",
"repos_url": "https://api.github.com/users/HenkPoley/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/HenkPoley/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HenkPoley/subscriptions",
"type": "User",
"url": "https://api.github.com/users/HenkPoley"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] | closed | false | null | [] | null | 1 | 2021-03-09T19:58:42Z | 2021-03-09T20:50:44Z | 2021-03-09T20:46:31Z | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [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
On macOS Big Sur 11.2.3 on MacBook Pro M1, with Python 3.9.2, pandas _master_ or _v1.2.3_ branch:
```bash
% python3.9 -c "import panda3d.core"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: dlopen(/opt/homebrew/lib/python3.9/site-packages/panda3d/core.cpython-39-darwin.so, 2): no suitable image found. Did find:
/opt/homebrew/lib/python3.9/site-packages/panda3d/core.cpython-39-darwin.so: code signature in (/opt/homebrew/lib/python3.9/site-packages/panda3d/core.cpython-39-darwin.so) not valid for use in process using Library Validation: Trying to load an unsigned library
```
Note below that pandas itself was compiled with a signature.
#### Problem description
`panda3d/core.cpython-39-darwin.so` is not code signed on macOS Big Sur
```bash
% codesign -v -v /opt/homebrew/lib/python3.9/site-packages/panda3d/core.cpython-39-darwin.so
/opt/homebrew/lib/python3.9/site-packages/panda3d/core.cpython-39-darwin.so: code object is not signed at all
In architecture: arm64
```
#### Expected Output
`import panda3d.core` should load as well.
#### Output of ``pd.show_versions()``
```bash
% python3.9 -c "import pandas; pandas.show_versions()"
```
<details>
INSTALLED VERSIONS
------------------
commit : 921477ed71b93b9f0162fd018431f1076d48b37f
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:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101
machine : arm64
processor : arm
byteorder : little
LC_ALL : None
LANG : nl_NL.UTF-8
LOCALE : nl_NL.UTF-8
pandas : 1.3.0.dev0+999.g921477ed71
numpy : 1.20.1
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 53.0.0
Cython : 0.29.22
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 : None
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 : 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/40335/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40335/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40336 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40336/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40336/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40336/events | https://github.com/pandas-dev/pandas/issues/40336 | 826,612,768 | MDU6SXNzdWU4MjY2MTI3Njg= | 40,336 | BUG: date_range fails when crossing DST boundary | {
"avatar_url": "https://avatars.githubusercontent.com/u/5324890?v=4",
"events_url": "https://api.github.com/users/teddyward/events{/privacy}",
"followers_url": "https://api.github.com/users/teddyward/followers",
"following_url": "https://api.github.com/users/teddyward/following{/other_user}",
"gists_url": "https://api.github.com/users/teddyward/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/teddyward",
"id": 5324890,
"login": "teddyward",
"node_id": "MDQ6VXNlcjUzMjQ4OTA=",
"organizations_url": "https://api.github.com/users/teddyward/orgs",
"received_events_url": "https://api.github.com/users/teddyward/received_events",
"repos_url": "https://api.github.com/users/teddyward/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/teddyward/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/teddyward/subscriptions",
"type": "User",
"url": "https://api.github.com/users/teddyward"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
] | open | false | null | [] | null | 1 | 2021-03-09T20:48:39Z | 2021-11-02T21:30:47Z | null | NONE | null | - [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
pd.date_range('2020-03-09 00:00:00-07:00', '2021-03-09 00:00:00-08:00', tz='America/Los_Angeles')
...
TypeError: Start and end cannot both be tz-aware with different timezones
```
#### Problem description
The start and end timestamps in the above line of code are both valid timestamps in the `America/Los_Angeles` timezone, but they fail when passed directly
#### Expected Output
I would expect this to match the output from the following:
```
>>> pd.date_range('2020-03-09', '2021-03-09', freq='H', tz='America/Los_Angeles')
DatetimeIndex(['2020-03-09 00:00:00-07:00', '2020-03-09 01:00:00-07:00',
'2020-03-09 02:00:00-07:00', '2020-03-09 03:00:00-07:00',
'2020-03-09 04:00:00-07:00', '2020-03-09 05:00:00-07:00',
'2020-03-09 06:00:00-07:00', '2020-03-09 07:00:00-07:00',
'2020-03-09 08:00:00-07:00', '2020-03-09 09:00:00-07:00',
...
'2021-03-08 15:00:00-08:00', '2021-03-08 16:00:00-08:00',
'2021-03-08 17:00:00-08:00', '2021-03-08 18:00:00-08:00',
'2021-03-08 19:00:00-08:00', '2021-03-08 20:00:00-08:00',
'2021-03-08 21:00:00-08:00', '2021-03-08 22:00:00-08:00',
'2021-03-08 23:00:00-08:00', '2021-03-09 00:00:00-08:00'],
dtype='datetime64[ns, America/Los_Angeles]', length=8762, freq='H')
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.7.3.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.3
numpy : 1.16.6
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.4
setuptools : 47.1.1
Cython : 0.29.21
pytest : 6.0.2
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.3.7
lxml.etree : 4.5.2
html5lib : None
pymysql : None
psycopg2 : 2.8.4 (dt dec pq3 ext lo64)
jinja2 : 2.11.2
IPython : None
pandas_datareader: None
bs4 : 4.9.1
bottleneck : None
fsspec : 0.7.4
fastparquet : None
gcsfs : 0.6.2
matplotlib : 3.3.0
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : 0.4.2
scipy : 1.5.2
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
numba : 0.50.1
</details>
| {
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40336/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40336/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40337 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40337/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40337/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40337/events | https://github.com/pandas-dev/pandas/pull/40337 | 826,738,391 | MDExOlB1bGxSZXF1ZXN0NTg4NzE2MDk0 | 40,337 | PERF: do ndim validation before Block.__init__ | {
"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"
} | 2 | 2021-03-09T22:34:50Z | 2021-03-10T22:30:25Z | 2021-03-10T21:44:58Z | 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/40337/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40337/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40337.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40337",
"merged_at": "2021-03-10T21:44:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40337.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40337"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/40338 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40338/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40338/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40338/events | https://github.com/pandas-dev/pandas/pull/40338 | 826,931,976 | MDExOlB1bGxSZXF1ZXN0NTg4ODkxMzY5 | 40,338 | REF: share code ArrayManager/BlockManager | {
"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-03-10T01:49:41Z | 2021-03-11T15:07:32Z | 2021-03-11T09:27:09Z | 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/40338/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40338/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40338.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40338",
"merged_at": "2021-03-11T09:27:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40338.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40338"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/40339 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40339/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40339/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40339/events | https://github.com/pandas-dev/pandas/pull/40339 | 826,937,152 | MDExOlB1bGxSZXF1ZXN0NTg4ODk2MDAx | 40,339 | PERF: Categorical._from_backing_data | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] | closed | false | null | [] | {
"closed_at": "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-03-10T01:55:08Z | 2021-03-10T14:45:55Z | 2021-03-10T13:13:30Z | MEMBER | null | _libs edits are unrelated | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40339/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40339/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40339.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40339",
"merged_at": "2021-03-10T13:13:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40339.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40339"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40340 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40340/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40340/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40340/events | https://github.com/pandas-dev/pandas/pull/40340 | 826,992,146 | MDExOlB1bGxSZXF1ZXN0NTg4OTQ1MTk1 | 40,340 | TYP: Add typing for remaining IO XML methods with conditional for lxml | {
"avatar_url": "https://avatars.githubusercontent.com/u/13602663?v=4",
"events_url": "https://api.github.com/users/ParfaitG/events{/privacy}",
"followers_url": "https://api.github.com/users/ParfaitG/followers",
"following_url": "https://api.github.com/users/ParfaitG/following{/other_user}",
"gists_url": "https://api.github.com/users/ParfaitG/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ParfaitG",
"id": 13602663,
"login": "ParfaitG",
"node_id": "MDQ6VXNlcjEzNjAyNjYz",
"organizations_url": "https://api.github.com/users/ParfaitG/orgs",
"received_events_url": "https://api.github.com/users/ParfaitG/received_events",
"repos_url": "https://api.github.com/users/ParfaitG/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ParfaitG/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ParfaitG/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ParfaitG"
} | [
{
"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"
},
{
"color": "1d76db",
"default": false,
"description": "read_xml, to_xml",
"id": 2707590670,
"name": "IO XML",
"node_id": "MDU6TGFiZWwyNzA3NTkwNjcw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20XML"
}
] | 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-03-10T02:52:58Z | 2021-03-17T15:06:51Z | 2021-03-16T22:02:19Z | CONTRIBUTOR | null | - [X] references #40131
- [X] tests 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 (not necessary)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40340/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40340/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40340.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40340",
"merged_at": "2021-03-16T22:02:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40340.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40340"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40341 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40341/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40341/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40341/events | https://github.com/pandas-dev/pandas/pull/40341 | 827,051,001 | MDExOlB1bGxSZXF1ZXN0NTg4OTk4OTg3 | 40,341 | BUG: RollingGroupby no longer keeps the groupby column in the result | {
"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": "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"
} | 3 | 2021-03-10T03:55:33Z | 2021-03-29T18:30:38Z | 2021-03-29T13:27:26Z | MEMBER | null | - [x] closes #32262
- [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
Borrowed some work from https://github.com/pandas-dev/pandas/pull/32332 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40341/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40341/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40341.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40341",
"merged_at": "2021-03-29T13:27:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40341.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40341"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40342 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40342/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40342/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40342/events | https://github.com/pandas-dev/pandas/pull/40342 | 827,097,528 | MDExOlB1bGxSZXF1ZXN0NTg5MDQxNjA5 | 40,342 | CLN: remove unused c_encoding | {
"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": "444444",
"default": false,
"description": "Unicode strings",
"id": 36380025,
"name": "Unicode",
"node_id": "MDU6TGFiZWwzNjM4MDAyNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode"
},
{
"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": "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-03-10T04:45:06Z | 2021-03-10T15:39:34Z | 2021-03-10T13:54:40Z | CONTRIBUTOR | null | `c_encoding` has always been `NULL` since #36997. This allows removing/simplifying a lot of code in pandas/_libs/parsers.pyx. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40342/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40342/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40342.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40342",
"merged_at": "2021-03-10T13:54:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40342.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40342"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40343 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40343/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40343/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40343/events | https://github.com/pandas-dev/pandas/pull/40343 | 827,116,152 | MDExOlB1bGxSZXF1ZXN0NTg5MDU4ODU1 | 40,343 | DOC: fixup formula for exponentially weighted mean with input vector … | {
"avatar_url": "https://avatars.githubusercontent.com/u/37313715?v=4",
"events_url": "https://api.github.com/users/mschmookler/events{/privacy}",
"followers_url": "https://api.github.com/users/mschmookler/followers",
"following_url": "https://api.github.com/users/mschmookler/following{/other_user}",
"gists_url": "https://api.github.com/users/mschmookler/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mschmookler",
"id": 37313715,
"login": "mschmookler",
"node_id": "MDQ6VXNlcjM3MzEzNzE1",
"organizations_url": "https://api.github.com/users/mschmookler/orgs",
"received_events_url": "https://api.github.com/users/mschmookler/received_events",
"repos_url": "https://api.github.com/users/mschmookler/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mschmookler/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mschmookler/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mschmookler"
} | [
{
"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": "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"
} | 3 | 2021-03-10T05:03:54Z | 2021-05-03T01:11:47Z | 2021-03-10T08:50:54Z | CONTRIBUTOR | null | …of times? #40327
- [x] closes #40327
- [ ] 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/40343/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40343/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40343.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40343",
"merged_at": "2021-03-10T08:50:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40343.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40343"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40344 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40344/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40344/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40344/events | https://github.com/pandas-dev/pandas/issues/40344 | 827,129,892 | MDU6SXNzdWU4MjcxMjk4OTI= | 40,344 | BUG: Describe is giving me different std. | {
"avatar_url": "https://avatars.githubusercontent.com/u/29797787?v=4",
"events_url": "https://api.github.com/users/ninjakx/events{/privacy}",
"followers_url": "https://api.github.com/users/ninjakx/followers",
"following_url": "https://api.github.com/users/ninjakx/following{/other_user}",
"gists_url": "https://api.github.com/users/ninjakx/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ninjakx",
"id": 29797787,
"login": "ninjakx",
"node_id": "MDQ6VXNlcjI5Nzk3Nzg3",
"organizations_url": "https://api.github.com/users/ninjakx/orgs",
"received_events_url": "https://api.github.com/users/ninjakx/received_events",
"repos_url": "https://api.github.com/users/ninjakx/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ninjakx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ninjakx/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ninjakx"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 1 | 2021-03-10T05:18:11Z | 2021-03-10T23:04:04Z | 2021-03-10T05:25:54Z | NONE | null | - [ ] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [X] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Pandas Version:**
`pandas==1.1.0`
**Data file:** [penguins1@csv](https://observablehq.com/@visnup/hello-danfo-js)
`df.head(10).describe()`
gives me:

`std` value for `bill_length_mm` is around `2`
`df.head(10)['bill_length_mm'].values
`
result in:
`array([39.1, 39.5, 40.3, nan, 36.7, 39.3, 38.9, 39.2, 34.1, 42. ])
```
import numpy as np
x = [39.1, 39.5, 40.3, 0, 36.7, 39.3, 38.9, 39.2, 34.1, 42. ]
np.std(x, ddof=1)
```
gives:
`12.445923027240687`
`pd.Series(x).std()` gives `12.445923027240687` (same)
but why describe is giving me `2`??
`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40344/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40344/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40345 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40345/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40345/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40345/events | https://github.com/pandas-dev/pandas/pull/40345 | 827,332,971 | MDExOlB1bGxSZXF1ZXN0NTg5MjU1NTcz | 40,345 | [ArrayManager] TST: enable apply tests | {
"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": "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": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] | closed | false | null | [] | null | 3 | 2021-03-10T08:21:24Z | 2021-03-16T11:14:53Z | 2021-03-16T11:14:49Z | MEMBER | null | xref #39146 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40345/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40345/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40345.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40345",
"merged_at": "2021-03-16T11:14:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40345.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40345"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40346 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40346/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40346/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40346/events | https://github.com/pandas-dev/pandas/issues/40346 | 827,340,084 | MDU6SXNzdWU4MjczNDAwODQ= | 40,346 | TST: groupby of idxmax/min with mixed types | {
"avatar_url": "https://avatars.githubusercontent.com/u/50440358?v=4",
"events_url": "https://api.github.com/users/Leejung8763/events{/privacy}",
"followers_url": "https://api.github.com/users/Leejung8763/followers",
"following_url": "https://api.github.com/users/Leejung8763/following{/other_user}",
"gists_url": "https://api.github.com/users/Leejung8763/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Leejung8763",
"id": 50440358,
"login": "Leejung8763",
"node_id": "MDQ6VXNlcjUwNDQwMzU4",
"organizations_url": "https://api.github.com/users/Leejung8763/orgs",
"received_events_url": "https://api.github.com/users/Leejung8763/received_events",
"repos_url": "https://api.github.com/users/Leejung8763/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Leejung8763/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Leejung8763/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Leejung8763"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 11 | 2021-03-10T08:27:07Z | 2021-04-14T12:55:40Z | 2021-04-14T12:55:40Z | 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
df.groupby('teamId').idxmax()
tmp.groupby('teamId').idxmax()
```
#### Problem description
DataFrame df is consist of **teamId(int64)** and **neutralMinionsKilled(int64)** and 'tmp' is consist of **teamId(Int64)** and **neutralMinionsKilled(Int64)**
`df.groupby('teamId').idxmax()` is working
But `tmp.groupby('teamId').idxmax()` is not working and showing 'TypeError: argmax() takes 1 positional argument but 2 were given'
#### Expected Output

#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag]

</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40346/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40346/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40347 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40347/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40347/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40347/events | https://github.com/pandas-dev/pandas/pull/40347 | 827,340,993 | MDExOlB1bGxSZXF1ZXN0NTg5MjYyNzA3 | 40,347 | [ArrayManager] TST: enable arrays tests | {
"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": "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-03-10T08:27:51Z | 2021-03-10T09:50:19Z | 2021-03-10T09:50:16Z | MEMBER | null | xref #39146 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40347/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40347/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40347.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40347",
"merged_at": "2021-03-10T09:50:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40347.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40347"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40348 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40348/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40348/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40348/events | https://github.com/pandas-dev/pandas/pull/40348 | 827,395,703 | MDExOlB1bGxSZXF1ZXN0NTg5MzExNTAw | 40,348 | [ArrayManager] TST: Enable extension tests | {
"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": "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": "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"
} | 4 | 2021-03-10T09:10:42Z | 2021-03-18T07:40:05Z | 2021-03-18T07:40:02Z | MEMBER | null | xref #39146
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40348/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40348/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40348.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40348",
"merged_at": "2021-03-18T07:40:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40348.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40348"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40349 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40349/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40349/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40349/events | https://github.com/pandas-dev/pandas/issues/40349 | 827,575,991 | MDU6SXNzdWU4Mjc1NzU5OTE= | 40,349 | TYP test reset_index overloads | {
"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"
}
] | open | false | null | [] | null | 0 | 2021-03-10T11:24:49Z | 2021-03-10T11:25:03Z | null | MEMBER | null | Pending on #40202 being merged, just opening so it doesn't get forgotten | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40349/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40349/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40350 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40350/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40350/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40350/events | https://github.com/pandas-dev/pandas/issues/40350 | 827,627,733 | MDU6SXNzdWU4Mjc2Mjc3MzM= | 40,350 | TYP simplify overloads of mypy issue is resolved | {
"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 | [] | null | 1 | 2021-03-10T12:03:52Z | 2021-04-22T09:51:40Z | 2021-04-22T09:51:39Z | MEMBER | null | Due to https://github.com/python/mypy/issues/6580 , we've had to add lots of overloads to #40200 - if that issue was resolved, they could be removed
Also, if https://github.com/python/mypy/issues/10194 was recognised as a bug and resolved, then the extra overload for the `bool` case in #40200 (and any others of that kind) could be removed | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40350/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40350/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40351 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40351/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40351/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40351/events | https://github.com/pandas-dev/pandas/issues/40351 | 827,770,660 | MDU6SXNzdWU4Mjc3NzA2NjA= | 40,351 | BUG: Casting string series to category raises TypeError in nightlies | {
"avatar_url": "https://avatars.githubusercontent.com/u/14908678?v=4",
"events_url": "https://api.github.com/users/siboehm/events{/privacy}",
"followers_url": "https://api.github.com/users/siboehm/followers",
"following_url": "https://api.github.com/users/siboehm/following{/other_user}",
"gists_url": "https://api.github.com/users/siboehm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/siboehm",
"id": 14908678,
"login": "siboehm",
"node_id": "MDQ6VXNlcjE0OTA4Njc4",
"organizations_url": "https://api.github.com/users/siboehm/orgs",
"received_events_url": "https://api.github.com/users/siboehm/received_events",
"repos_url": "https://api.github.com/users/siboehm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/siboehm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/siboehm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/siboehm"
} | [
{
"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": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] | closed | false | null | [] | {
"closed_at": "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-03-10T13:50:38Z | 2021-04-02T19:09:57Z | 2021-04-02T19:09:57Z | CONTRIBUTOR | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
import pandas.testing as pdt
y = pd.Series(["A"], dtype="object").astype("category")
x = pd.Series(["A"], dtype="string").astype("category")
pdt.assert_series_equal(x,y)
```
`pandas==1.2.3`: runs through, doesn't raise
`pandas==1.3.0.dev0+1005.g93c52e4e1d` (from the nightly wheels):
```python-traceback
Traceback (most recent call last):
File "/home/simon/Documents/QuantCo/quantcore.thek/test.py", line 5, in <module>
x = pd.Series(["A"], dtype="string").astype("category")
File "/home/simon/miniconda3/envs/quantcore.thek/lib/python3.9/site-packages/pandas/core/generic.py", line 5944, in astype
new_data = self._mgr.astype(dtype=dtype, copy=copy, errors=errors)
File "/home/simon/miniconda3/envs/quantcore.thek/lib/python3.9/site-packages/pandas/core/internals/managers.py", line 659, in astype
return self.apply("astype", dtype=dtype, copy=copy, errors=errors)
File "/home/simon/miniconda3/envs/quantcore.thek/lib/python3.9/site-packages/pandas/core/internals/managers.py", line 524, in apply
applied = getattr(b, f)(**kwargs)
File "/home/simon/miniconda3/envs/quantcore.thek/lib/python3.9/site-packages/pandas/core/internals/blocks.py", line 658, in astype
new_values = astype_array_safe(values, dtype, copy=copy, errors=errors)
File "/home/simon/miniconda3/envs/quantcore.thek/lib/python3.9/site-packages/pandas/core/dtypes/cast.py", line 1352, in astype_array_safe
new_values = astype_array(values, dtype, copy=copy)
File "/home/simon/miniconda3/envs/quantcore.thek/lib/python3.9/site-packages/pandas/core/dtypes/cast.py", line 1297, in astype_array
values = values.astype(dtype, copy=copy)
File "/home/simon/miniconda3/envs/quantcore.thek/lib/python3.9/site-packages/pandas/core/arrays/string_.py", line 328, in astype
elif np.issubdtype(dtype, np.floating):
File "/home/simon/miniconda3/envs/quantcore.thek/lib/python3.9/site-packages/numpy/core/numerictypes.py", line 419, in issubdtype
arg1 = dtype(arg1).type
TypeError: Cannot interpret 'CategoricalDtype(categories=None, ordered=None)' as a data type
```
#### Problem description
Seems like a regression. Converting the `string` series to `object` first works without raising:
```python
x = pd.Series(["A"], dtype="string").astype("object").astype("category")
```
#### Expected Output
`nightly` should behave like `pandas=1.2.3`, running through and producing two equal series.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 93c52e4e1d172512b32e0e76e9b09c0cf76daf21
python : 3.9.2.final.0
python-bits : 64
OS : Linux
OS-release : 5.8.0-44-generic
Version : #50-Ubuntu SMP Tue Feb 9 06:29:41 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.3.0.dev0+1005.g93c52e4e1d
numpy : 1.21.0.dev0+934.g6222e283f
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 49.6.0.post20210108
Cython : None
pytest : 6.2.2
hypothesis : None
sphinx : 3.5.2
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.21.0
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.1.0.dev317
pyxlsb : None
s3fs : None
scipy : 1.6.0
sqlalchemy : None
tables : None
tabulate : 0.8.9
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 1,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40351/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40351/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40352 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40352/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40352/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40352/events | https://github.com/pandas-dev/pandas/issues/40352 | 827,845,119 | MDU6SXNzdWU4Mjc4NDUxMTk= | 40,352 | CI upload coverage to codecov for jobs other than database | {
"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": "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 | 1 | 2021-03-10T14:41:25Z | 2021-03-10T14:53:05Z | 2021-03-10T14:53:05Z | MEMBER | null | Currently, it seems that the only job which uploads coverage reports to codecov is https://github.com/pandas-dev/pandas/blob/master/.github/workflows/database.yml
Ideally, the jobs in https://github.com/pandas-dev/pandas/blob/master/ci/azure/posix.yml would also upload coverage reports to codecov
Marking as "good first issue" as it doesn't require knowledge of the pandas codebase, though probably requires some experience/knowledge of CI systems | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40352/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40352/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40353 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40353/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40353/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40353/events | https://github.com/pandas-dev/pandas/pull/40353 | 828,026,216 | MDExOlB1bGxSZXF1ZXN0NTg5ODc3NjQ3 | 40,353 | PERF: repeated slicing along index in groupby | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "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"
} | 6 | 2021-03-10T16:45:51Z | 2021-03-16T17:05:03Z | 2021-03-16T16:55:42Z | MEMBER | null | This cuts another 25% off of the benchmark discussed https://github.com/pandas-dev/pandas/pull/40171#issuecomment-790219422, getting us to within 3x of the cython-path performance. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40353/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40353/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40353.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40353",
"merged_at": "2021-03-16T16:55:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40353.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40353"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40354 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40354/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40354/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40354/events | https://github.com/pandas-dev/pandas/pull/40354 | 828,076,272 | MDExOlB1bGxSZXF1ZXN0NTg5OTIyNTgw | 40,354 | Fix formatting in extractall example outputs | {
"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": "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"
} | 2 | 2021-03-10T17:21:53Z | 2021-03-11T16:14:39Z | 2021-03-11T02:18:24Z | CONTRIBUTOR | null | I noticed that these doctests lost some formatting in a refactor. It's a little surprising the tests were still passing, presumably doctests is configured to ignore leading whitespace? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40354/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40354/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40354.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40354",
"merged_at": "2021-03-11T02:18:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40354.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40354"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40355 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40355/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40355/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40355/events | https://github.com/pandas-dev/pandas/issues/40355 | 828,092,970 | MDU6SXNzdWU4MjgwOTI5NzA= | 40,355 | DOC: Proper alignment of column names | {
"avatar_url": "https://avatars.githubusercontent.com/u/14815473?v=4",
"events_url": "https://api.github.com/users/kengustafson/events{/privacy}",
"followers_url": "https://api.github.com/users/kengustafson/followers",
"following_url": "https://api.github.com/users/kengustafson/following{/other_user}",
"gists_url": "https://api.github.com/users/kengustafson/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kengustafson",
"id": 14815473,
"login": "kengustafson",
"node_id": "MDQ6VXNlcjE0ODE1NDcz",
"organizations_url": "https://api.github.com/users/kengustafson/orgs",
"received_events_url": "https://api.github.com/users/kengustafson/received_events",
"repos_url": "https://api.github.com/users/kengustafson/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kengustafson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kengustafson/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kengustafson"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/37313715?v=4",
"events_url": "https://api.github.com/users/mschmookler/events{/privacy}",
"followers_url": "https://api.github.com/users/mschmookler/followers",
"following_url": "https://api.github.com/users/mschmookler/following{/other_user}",
"gists_url": "https://api.github.com/users/mschmookler/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mschmookler",
"id": 37313715,
"login": "mschmookler",
"node_id": "MDQ6VXNlcjM3MzEzNzE1",
"organizations_url": "https://api.github.com/users/mschmookler/orgs",
"received_events_url": "https://api.github.com/users/mschmookler/received_events",
"repos_url": "https://api.github.com/users/mschmookler/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mschmookler/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mschmookler/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mschmookler"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/37313715?v=4",
"events_url": "https://api.github.com/users/mschmookler/events{/privacy}",
"followers_url": "https://api.github.com/users/mschmookler/followers",
"following_url": "https://api.github.com/users/mschmookler/following{/other_user}",
"gists_url": "https://api.github.com/users/mschmookler/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mschmookler",
"id": 37313715,
"login": "mschmookler",
"node_id": "MDQ6VXNlcjM3MzEzNzE1",
"organizations_url": "https://api.github.com/users/mschmookler/orgs",
"received_events_url": "https://api.github.com/users/mschmookler/received_events",
"repos_url": "https://api.github.com/users/mschmookler/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mschmookler/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mschmookler/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mschmookler"
}
] | {
"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-03-10T17:34:29Z | 2021-03-29T03:46:49Z | 2021-03-29T03:46:49Z | NONE | null | https://github.com/pandas-dev/pandas/blob/f2c8480af2f25efdbd803218b9d87980f416563e/pandas/core/strings/accessor.py#L1906
Please shift over example column names to properly align with dataframe (currently aligned starting with index). Example is confusing.
Same issue applies to L1912. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40355/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40355/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40356 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40356/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40356/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40356/events | https://github.com/pandas-dev/pandas/pull/40356 | 828,206,479 | MDExOlB1bGxSZXF1ZXN0NTkwMDQwNDM3 | 40,356 | BUG: copying from Jupyter table to excel misaligns structure | {
"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": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "006b75",
"default": false,
"description": "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"
} | 3 | 2021-03-10T19:05:37Z | 2021-03-21T22:50:06Z | 2021-03-21T21:08:13Z | CONTRIBUTOR | null | - [x] closes #12147
when copying a table from Jupyter to Excel the column header row is translated to the left because there is no value to copy.

this PR puts a non-breaking space in the empty cell so that structure is preserved.

my excel above is quite old, but this effect is worse on more recent excels since I believe they merge cells which have a rowspan (in the multiindex column headers) or a colspan (in a multiindex index labels). With columns merging in wrong place it is a bit of a nuisance. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40356/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40356/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40356.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40356",
"merged_at": "2021-03-21T21:08:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40356.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40356"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40357 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40357/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40357/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40357/events | https://github.com/pandas-dev/pandas/issues/40357 | 828,253,354 | MDU6SXNzdWU4MjgyNTMzNTQ= | 40,357 | BUG: KeyError from unexpected DatetimeIndex partial str indexing | {
"avatar_url": "https://avatars.githubusercontent.com/u/52781185?v=4",
"events_url": "https://api.github.com/users/Alpima-Quant/events{/privacy}",
"followers_url": "https://api.github.com/users/Alpima-Quant/followers",
"following_url": "https://api.github.com/users/Alpima-Quant/following{/other_user}",
"gists_url": "https://api.github.com/users/Alpima-Quant/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Alpima-Quant",
"id": 52781185,
"login": "Alpima-Quant",
"node_id": "MDQ6VXNlcjUyNzgxMTg1",
"organizations_url": "https://api.github.com/users/Alpima-Quant/orgs",
"received_events_url": "https://api.github.com/users/Alpima-Quant/received_events",
"repos_url": "https://api.github.com/users/Alpima-Quant/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Alpima-Quant/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Alpima-Quant/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Alpima-Quant"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] | open | false | null | [] | null | 2 | 2021-03-10T19:49:16Z | 2021-08-19T01:56:24Z | null | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import pandas as pd
df = pd.DataFrame({'a': [0, 1]}, index=[pd.Timestamp('2002-12-30T20'), pd.Timestamp('2003-01-03T20')])
df['T 1.75 1/3'] = [1, 2]
```
#### Problem description
When using `__setitem__` or `__getitem__` with a str key on a pandas DataFrame where the index has ._supports_partial_string_indexing = True, pandas first tries to convert the str key to a slice using index._get_string_slice(key).
It seems to me that we have too loose of an interpretation of what one of these partial string slices looks like (or perhaps when / how one might use them).
In my use case I have some timeseries data for some US treasury bills, where the names are something like f"T {coupon} {date}", e.g. "T 1.75 1/3" and I want to assign a new column to a DataFrame with some data on this instrument.
However `df['T 1.75 1/3'] = value` - as in the example above - raises "ValueError: cannot set using a slice indexer with a different length than the value"
#### Expected Output
A new column with label "T 1.75 1/3" and values [1, 2] is assigned to the pandas DataFrame `df`.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.9.2.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 :
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.3
numpy : 1.20.1
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 53.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 : 7.21.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/40357/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40357/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40358 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40358/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40358/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40358/events | https://github.com/pandas-dev/pandas/pull/40358 | 828,289,968 | MDExOlB1bGxSZXF1ZXN0NTkwMTE0NjA0 | 40,358 | DOC: Proper alignment of column names #40355 | {
"avatar_url": "https://avatars.githubusercontent.com/u/37313715?v=4",
"events_url": "https://api.github.com/users/mschmookler/events{/privacy}",
"followers_url": "https://api.github.com/users/mschmookler/followers",
"following_url": "https://api.github.com/users/mschmookler/following{/other_user}",
"gists_url": "https://api.github.com/users/mschmookler/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mschmookler",
"id": 37313715,
"login": "mschmookler",
"node_id": "MDQ6VXNlcjM3MzEzNzE1",
"organizations_url": "https://api.github.com/users/mschmookler/orgs",
"received_events_url": "https://api.github.com/users/mschmookler/received_events",
"repos_url": "https://api.github.com/users/mschmookler/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mschmookler/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mschmookler/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mschmookler"
} | [
{
"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"
} | 2 | 2021-03-10T20:23:23Z | 2021-05-03T01:12:28Z | 2021-03-29T03:46:50Z | CONTRIBUTOR | null | - [x] closes #40355
- [ ] 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/40358/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40358/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40358.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40358",
"merged_at": "2021-03-29T03:46:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40358.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40358"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40359 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40359/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40359/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40359/events | https://github.com/pandas-dev/pandas/pull/40359 | 828,369,591 | MDExOlB1bGxSZXF1ZXN0NTkwMTg1NDIw | 40,359 | BUG: IntervalArray.insert cast on failure | {
"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": "009800",
"default": false,
"description": "Interval data type",
"id": 150096370,
"name": "Interval",
"node_id": "MDU6TGFiZWwxNTAwOTYzNzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Interval"
}
] | closed | false | null | [] | {
"closed_at": "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-03-10T21:40:39Z | 2021-03-15T00:57:46Z | 2021-03-15T00:52:27Z | 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
We fixed this for DTI/TDI/PI in #39068. Also did CategoricalIndex recently, not sure where off the top. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40359/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40359/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40359.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40359",
"merged_at": "2021-03-15T00:52:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40359.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40359"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40360 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40360/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40360/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40360/events | https://github.com/pandas-dev/pandas/issues/40360 | 828,435,629 | MDU6SXNzdWU4Mjg0MzU2Mjk= | 40,360 | BUG: Can't import hvplot.pandas | {
"avatar_url": "https://avatars.githubusercontent.com/u/18649228?v=4",
"events_url": "https://api.github.com/users/stualden/events{/privacy}",
"followers_url": "https://api.github.com/users/stualden/followers",
"following_url": "https://api.github.com/users/stualden/following{/other_user}",
"gists_url": "https://api.github.com/users/stualden/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/stualden",
"id": 18649228,
"login": "stualden",
"node_id": "MDQ6VXNlcjE4NjQ5MjI4",
"organizations_url": "https://api.github.com/users/stualden/orgs",
"received_events_url": "https://api.github.com/users/stualden/received_events",
"repos_url": "https://api.github.com/users/stualden/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/stualden/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stualden/subscriptions",
"type": "User",
"url": "https://api.github.com/users/stualden"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
}
] | closed | false | null | [] | null | 2 | 2021-03-10T22:49:42Z | 2021-03-11T00:44:05Z | 2021-03-11T00:44:05Z | NONE | null | #### Code Sample, a copy-pastable example
```python
# Your code here
import hvplot.pandas
```
#### Problem description
When I try the import, I get the following when running from a Jupyter Notebook on Chrome or Edge:
```Javascript error adding output!
Error: Cannot find module '@bokehjs/styles/buttons'
See your browser Javascript console for more details.
```
With Internet Explorer, I get the following (both messages):
```
Javascript error adding output!
SyntaxError: Expected ';'
See your browser Javascript console for more details.
Javascript error adding output!
SyntaxError: Syntax error
See your browser Javascript console for more details.
```
After that, any calls to hvplot produce no output. I have checked the Javascript console, but it did not illuminate the problem for me.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.8.8.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-65-generic
Version : #73-Ubuntu SMP Mon Jan 18 17:25:17 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.19.2
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 : 4.6.2
html5lib : None
pymysql : None
psycopg2 : 2.8.6 (dt dec pq3 ext lo64)
jinja2 : 2.11.3
IPython : 7.19.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 : 1.3.23
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.52.0
</details>
Thank you! If this is a bokeh issue rather than a pandas issue, please advise.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40360/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40360/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40361 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40361/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40361/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40361/events | https://github.com/pandas-dev/pandas/pull/40361 | 828,445,580 | MDExOlB1bGxSZXF1ZXN0NTkwMjUyMzgz | 40,361 | PERF/REF: require BlockPlacement in Block.__init__ | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "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"
} | 3 | 2021-03-10T23:00:43Z | 2021-03-16T20:08:13Z | 2021-03-16T19:52:45Z | 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/40361/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40361/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40361.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40361",
"merged_at": "2021-03-16T19:52:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40361.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40361"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/40362 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40362/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40362/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40362/events | https://github.com/pandas-dev/pandas/issues/40362 | 828,596,610 | MDU6SXNzdWU4Mjg1OTY2MTA= | 40,362 | DOC: Wrong examples | {
"avatar_url": "https://avatars.githubusercontent.com/u/32332164?v=4",
"events_url": "https://api.github.com/users/JIHYO-JEON/events{/privacy}",
"followers_url": "https://api.github.com/users/JIHYO-JEON/followers",
"following_url": "https://api.github.com/users/JIHYO-JEON/following{/other_user}",
"gists_url": "https://api.github.com/users/JIHYO-JEON/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JIHYO-JEON",
"id": 32332164,
"login": "JIHYO-JEON",
"node_id": "MDQ6VXNlcjMyMzMyMTY0",
"organizations_url": "https://api.github.com/users/JIHYO-JEON/orgs",
"received_events_url": "https://api.github.com/users/JIHYO-JEON/received_events",
"repos_url": "https://api.github.com/users/JIHYO-JEON/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JIHYO-JEON/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JIHYO-JEON/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JIHYO-JEON"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/82573287?v=4",
"events_url": "https://api.github.com/users/devashish-gaikwad/events{/privacy}",
"followers_url": "https://api.github.com/users/devashish-gaikwad/followers",
"following_url": "https://api.github.com/users/devashish-gaikwad/following{/other_user}",
"gists_url": "https://api.github.com/users/devashish-gaikwad/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/devashish-gaikwad",
"id": 82573287,
"login": "devashish-gaikwad",
"node_id": "MDQ6VXNlcjgyNTczMjg3",
"organizations_url": "https://api.github.com/users/devashish-gaikwad/orgs",
"received_events_url": "https://api.github.com/users/devashish-gaikwad/received_events",
"repos_url": "https://api.github.com/users/devashish-gaikwad/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/devashish-gaikwad/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/devashish-gaikwad/subscriptions",
"type": "User",
"url": "https://api.github.com/users/devashish-gaikwad"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/82573287?v=4",
"events_url": "https://api.github.com/users/devashish-gaikwad/events{/privacy}",
"followers_url": "https://api.github.com/users/devashish-gaikwad/followers",
"following_url": "https://api.github.com/users/devashish-gaikwad/following{/other_user}",
"gists_url": "https://api.github.com/users/devashish-gaikwad/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/devashish-gaikwad",
"id": 82573287,
"login": "devashish-gaikwad",
"node_id": "MDQ6VXNlcjgyNTczMjg3",
"organizations_url": "https://api.github.com/users/devashish-gaikwad/orgs",
"received_events_url": "https://api.github.com/users/devashish-gaikwad/received_events",
"repos_url": "https://api.github.com/users/devashish-gaikwad/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/devashish-gaikwad/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/devashish-gaikwad/subscriptions",
"type": "User",
"url": "https://api.github.com/users/devashish-gaikwad"
}
] | {
"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"
} | 4 | 2021-03-11T02:01:37Z | 2021-11-14T02:13:44Z | 2021-11-14T02:13:44Z | NONE | null | #### Location of the documentation
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Index.all.html
#### Documentation problem
This documentation is about 'pandas.Index.all' but it has examples of 'pandas.Index.any'.
The examples of 'pandas.Index.any' are also included in [its own page](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Index.any.html).
#### Suggested fix for documentation
Delete 'any()' examples on the documentation of 'all()', I think this is wrong 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/40362/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40362/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40363 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40363/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40363/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40363/events | https://github.com/pandas-dev/pandas/pull/40363 | 828,669,653 | MDExOlB1bGxSZXF1ZXN0NTkwNDQ5OTA1 | 40,363 | DEPR: DataFrame(MaskedRecords) | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "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": "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-03-11T03:33:28Z | 2021-03-15T00:55:16Z | 2021-03-15T00:09:58Z | MEMBER | null | - [x] closes #38399
- [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/40363/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40363/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40363.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40363",
"merged_at": "2021-03-15T00:09:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40363.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40363"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40364 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40364/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40364/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40364/events | https://github.com/pandas-dev/pandas/pull/40364 | 828,693,809 | MDExOlB1bGxSZXF1ZXN0NTkwNDcwOTgy | 40,364 | BUG: better exception on invalid slicing on CategoricalIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "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-03-11T04:04:55Z | 2021-03-20T02:01:27Z | 2021-03-20T01:25:12Z | MEMBER | null | After fixing the CategoricalIndex behavior (first commit), the "kind" keyword is no longer needed in _maybe_cast_slice_bound, so removed that.
After this the keyword is no longer needed in get_slice_bound, slice_locs, slice_indexer, but those are technically public so didnt rip them out. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40364/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40364/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40364.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40364",
"merged_at": "2021-03-20T01:25:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40364.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40364"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40365 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40365/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40365/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40365/events | https://github.com/pandas-dev/pandas/pull/40365 | 828,700,901 | MDExOlB1bGxSZXF1ZXN0NTkwNDc3MzE1 | 40,365 | BUG: Post-merge fixup, raise on dimension-expanding | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "fbca04",
"default": false,
"description": "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"
} | 2 | 2021-03-11T04:14:35Z | 2021-03-11T15:08:16Z | 2021-03-11T09:38:49Z | MEMBER | null | Looks like a couple of individually-correct things got merged that together are causing failures on master. This should fix it. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40365/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40365/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40365.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40365",
"merged_at": "2021-03-11T09:38:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40365.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40365"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40366 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40366/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40366/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40366/events | https://github.com/pandas-dev/pandas/issues/40366 | 828,789,434 | MDU6SXNzdWU4Mjg3ODk0MzQ= | 40,366 | BUG: Inconsistent handling of None in indices | {
"avatar_url": "https://avatars.githubusercontent.com/u/72578587?v=4",
"events_url": "https://api.github.com/users/maroth96/events{/privacy}",
"followers_url": "https://api.github.com/users/maroth96/followers",
"following_url": "https://api.github.com/users/maroth96/following{/other_user}",
"gists_url": "https://api.github.com/users/maroth96/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/maroth96",
"id": 72578587,
"login": "maroth96",
"node_id": "MDQ6VXNlcjcyNTc4NTg3",
"organizations_url": "https://api.github.com/users/maroth96/orgs",
"received_events_url": "https://api.github.com/users/maroth96/received_events",
"repos_url": "https://api.github.com/users/maroth96/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/maroth96/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maroth96/subscriptions",
"type": "User",
"url": "https://api.github.com/users/maroth96"
} | [
{
"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": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
}
] | open | false | null | [] | null | 0 | 2021-03-11T06:04:43Z | 2021-08-19T01:57:16Z | 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.
---
@jreback
This is an issue I came across while working on https://github.com/pandas-dev/pandas/pull/40127.
Most Index objects can be constructed with None values:
```
pd.Index(['a', 'b', None], dtype='category')
pd.Index([1.0, 2.0, None], dtype='float64')
pd.Index(['2000-01', '2000-02', None], dtype='datetime64[ns]')
```
But (U)Int64Index and cannot accept None values:
```
>>> pd.Index([1, 2, None], dtype='int64')
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
```
This seems pretty reasonable. However, inside of a MultiIndex, None values and the int dtype can actually coexist:
```
>>> pd.MultiIndex.from_arrays([[1, 2, None]]).levels[0]
Int64Index([1, 2], dtype='int64')
```
So if we construct a DataFrame like so:
```
>>> df = pd.DataFrame([10, 20, 30], index=pd.MultiIndex.from_arrays([[1, 2, None]]))
0
1 10
2 20
NaN 30
```
Indeed, the dtype of the first and only level is correct:
```
>>> df.index.levels[0]
Int64Index([1, 2], dtype='int64')
```
The reason this works is because of `codes`, which can encode None values as `-1`.
```
>>> df.index.codes
FrozenList([[0, 1, -1]])
```
More examples of None behavior in various scenarios:
```
>>> df = pd.DataFrame(np.zeros((3, 3)), columns=pd.MultiIndex.from_arrays([['a', 'b', 'c'], [1, 2, None]]))
a b c
1 2 NaN
0 0.0 0.0 0.0
1 0.0 0.0 0.0
2 0.0 0.0 0.0
>>> df.stack(0).columns
Int64Index([1, 2], dtype='int64')
>>> df.columns.droplevel(0)
Float64Index([1.0, 2.0, nan], dtype='float64')
>>> pd.Index([1, 2, None])
Index([1, 2, None], dtype='object')
```
I'm not sure what the best solution is to normalize the treatment of Nones inside indices. So I thought I would raise this issue and see what others think about this. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40366/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40366/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40367 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40367/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40367/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40367/events | https://github.com/pandas-dev/pandas/issues/40367 | 828,863,185 | MDU6SXNzdWU4Mjg4NjMxODU= | 40,367 | ENH:Resume the 'loffset' arguments in Grouper and resample | {
"avatar_url": "https://avatars.githubusercontent.com/u/6706396?v=4",
"events_url": "https://api.github.com/users/leohazy/events{/privacy}",
"followers_url": "https://api.github.com/users/leohazy/followers",
"following_url": "https://api.github.com/users/leohazy/following{/other_user}",
"gists_url": "https://api.github.com/users/leohazy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/leohazy",
"id": 6706396,
"login": "leohazy",
"node_id": "MDQ6VXNlcjY3MDYzOTY=",
"organizations_url": "https://api.github.com/users/leohazy/orgs",
"received_events_url": "https://api.github.com/users/leohazy/received_events",
"repos_url": "https://api.github.com/users/leohazy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/leohazy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leohazy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/leohazy"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "207de5",
"default": false,
"description": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] | open | false | null | [] | null | 0 | 2021-03-11T07:24:10Z | 2021-08-19T01:57:44Z | null | NONE | null | i noticed that the 'loffset' arguments in Grouper and resample is deprecated since v1.1.0 #31809.The new arguments 'origin' and 'offset' are use to specify the start of bin.The 'loffset' is use for ajusting the result labels, which is a useful Feature.without the 'loffset',we need to add the offset to the index after group/resample,it's a little boring。
```python
from pandas.tseries.frequencies import to_offset
loffset = '19min'
ts_out = ts.resample('17min').sum()
ts_out.index = ts_out.index + to_offset(loffset)
```
To avoid the confusion,you can change 'loffset' to 'label_offset' .
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40367/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40367/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40368 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40368/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40368/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40368/events | https://github.com/pandas-dev/pandas/pull/40368 | 828,924,458 | MDExOlB1bGxSZXF1ZXN0NTkwNjc1OTEy | 40,368 | CLN: reorganise/group variables for readability | {
"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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"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"
} | 1 | 2021-03-11T08:36:27Z | 2021-03-15T14:30:16Z | 2021-03-15T00:04:19Z | CONTRIBUTOR | null | couple of comments in issues recently about complexity of `_translate` and its readability.
small commit here to group setup variables by type and function, and add some comments.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40368/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40368/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40368.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40368",
"merged_at": "2021-03-15T00:04:19Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40368.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40368"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40369 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40369/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40369/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40369/events | https://github.com/pandas-dev/pandas/pull/40369 | 828,985,804 | MDExOlB1bGxSZXF1ZXN0NTkwNzI1MDY1 | 40,369 | INT: Use Index._getitem_slice in ArrayManager | {
"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": "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 | 0 | 2021-03-11T09:54:03Z | 2021-03-12T07:22:13Z | 2021-03-12T07:22:09Z | MEMBER | null | Follow-up on https://github.com/pandas-dev/pandas/pull/40262 to actually use it in ArrayManager as well | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40369/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40369/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40369.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40369",
"merged_at": "2021-03-12T07:22:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40369.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40369"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40370 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40370/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40370/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40370/events | https://github.com/pandas-dev/pandas/pull/40370 | 829,002,441 | MDExOlB1bGxSZXF1ZXN0NTkwNzM4Mzkx | 40,370 | CI: mypy fixup | {
"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": "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": "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-03-11T10:13:34Z | 2021-03-11T11:14:53Z | 2021-03-11T11:11:54Z | 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/40370/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40370/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40370.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40370",
"merged_at": "2021-03-11T11:11:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40370.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40370"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/40371 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40371/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40371/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40371/events | https://github.com/pandas-dev/pandas/issues/40371 | 829,117,012 | MDU6SXNzdWU4MjkxMTcwMTI= | 40,371 | BUG: Change in behavior of replace with integer series and float to_replace | {
"avatar_url": "https://avatars.githubusercontent.com/u/15511539?v=4",
"events_url": "https://api.github.com/users/lbittarello/events{/privacy}",
"followers_url": "https://api.github.com/users/lbittarello/followers",
"following_url": "https://api.github.com/users/lbittarello/following{/other_user}",
"gists_url": "https://api.github.com/users/lbittarello/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lbittarello",
"id": 15511539,
"login": "lbittarello",
"node_id": "MDQ6VXNlcjE1NTExNTM5",
"organizations_url": "https://api.github.com/users/lbittarello/orgs",
"received_events_url": "https://api.github.com/users/lbittarello/received_events",
"repos_url": "https://api.github.com/users/lbittarello/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lbittarello/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lbittarello/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lbittarello"
} | [
{
"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": "01a886",
"default": false,
"description": "replace method",
"id": 1652721180,
"name": "replace",
"node_id": "MDU6TGFiZWwxNjUyNzIxMTgw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/replace"
}
] | closed | false | {
"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-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-03-11T12:43:42Z | 2021-06-01T12:36:36Z | 2021-06-01T12:36:36Z | 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.
- [ ] I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import numpy as np
import pandas as pd
pd.Series([1]).replace(np.array([1.]), [0])
```
#### Problem description
As of version 1.1.5 (and earlier), the code snippet above yielded `pd.Series([0])` (i.e. the replacement took place). As of version 1.2.0 (and later), the code snippet above yields `pd.Series([1])` (i.e. the replacement does not take place). In both versions, the replacement takes place if we pass either an integer array (`np.array([1])`) or a list (`[1.]`) to `replace` instead of a float array (`np.array([1.])`). Is this change in behavior intentional?
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.8.8.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-1038-aws
Version : #40~18.04.1-Ubuntu SMP Sat Feb 6 01:56:56 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : C.UTF-8
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.3
numpy : 1.19.5
pytz : 2020.5
dateutil : 2.8.1
pip : 21.0.1
setuptools : 49.6.0.post20210108
Cython : None
pytest : 6.2.2
hypothesis : None
sphinx : 3.5.2
blosc : None
feather : None
xlsxwriter : 1.3.7
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 : None
bottleneck : None
fsspec : 0.8.7
fastparquet : None
gcsfs : None
matplotlib : 3.3.4
numexpr : 2.7.3
odfpy : None
openpyxl : 3.0.6
pandas_gbq : None
pyarrow : 3.0.0
pyxlsb : None
s3fs : None
scipy : 1.6.0
sqlalchemy : 1.3.23
tables : None
tabulate : 0.8.9
xarray : 0.17.0
xlrd : 2.0.1
xlwt : None
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/40371/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40371/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40372 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40372/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40372/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40372/events | https://github.com/pandas-dev/pandas/pull/40372 | 829,139,296 | MDExOlB1bGxSZXF1ZXN0NTkwODUyNDkz | 40,372 | STYLE: Extending codespell to pandas/tests/ part3 38802 | {
"avatar_url": "https://avatars.githubusercontent.com/u/46242526?v=4",
"events_url": "https://api.github.com/users/01-vyom/events{/privacy}",
"followers_url": "https://api.github.com/users/01-vyom/followers",
"following_url": "https://api.github.com/users/01-vyom/following{/other_user}",
"gists_url": "https://api.github.com/users/01-vyom/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/01-vyom",
"id": 46242526,
"login": "01-vyom",
"node_id": "MDQ6VXNlcjQ2MjQyNTI2",
"organizations_url": "https://api.github.com/users/01-vyom/orgs",
"received_events_url": "https://api.github.com/users/01-vyom/received_events",
"repos_url": "https://api.github.com/users/01-vyom/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/01-vyom/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/01-vyom/subscriptions",
"type": "User",
"url": "https://api.github.com/users/01-vyom"
} | [
{
"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-03-11T13:11:55Z | 2021-03-11T20:20:21Z | 2021-03-11T19:03:30Z | CONTRIBUTOR | null | - [x] closes #38802
- [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/40372/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40372/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40372.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40372",
"merged_at": "2021-03-11T19:03:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40372.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40372"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40373 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40373/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40373/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40373/events | https://github.com/pandas-dev/pandas/issues/40373 | 829,203,009 | MDU6SXNzdWU4MjkyMDMwMDk= | 40,373 | BUG: rolling window iterator with on should replace with the window index with the on column | {
"avatar_url": "https://avatars.githubusercontent.com/u/5648645?v=4",
"events_url": "https://api.github.com/users/joshlk/events{/privacy}",
"followers_url": "https://api.github.com/users/joshlk/followers",
"following_url": "https://api.github.com/users/joshlk/following{/other_user}",
"gists_url": "https://api.github.com/users/joshlk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joshlk",
"id": 5648645,
"login": "joshlk",
"node_id": "MDQ6VXNlcjU2NDg2NDU=",
"organizations_url": "https://api.github.com/users/joshlk/orgs",
"received_events_url": "https://api.github.com/users/joshlk/received_events",
"repos_url": "https://api.github.com/users/joshlk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joshlk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joshlk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joshlk"
} | [
{
"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": "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"
} | 7 | 2021-03-11T14:26:48Z | 2021-05-26T03:27:26Z | 2021-05-26T03:27:26Z | 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
df = pd.DataFrame({'A': range(10), 'B': range(10,0,-1)}).reset_index()
for group in df.rolling(5, on='index'):
print(len(group))
```
Prints:
```
1
2
3
4
5
5
5
5
5
5
```
#### Problem description
With a rolling window all groups should be always the same size (5 in the above example) and so the first 4 groups should be skipped. The first groups are an expanding window which then turn into a rolling window.
Additionally, the API is a bit unexpected when you compare to a `for idx, group in df.groupby('col')` operation. With a `groupby` each element also provides the index, while `rolling` it just provides the grouped data and removes the grouping index column (i.e. the column `index` does not exist in `group`).
#### Expected Output
```
5
5
5
5
5
5
```
Even better it would also include the index so that:
```
for idx, group in df.rolling(5, on='index'):
print(len(group))
```
Would work
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : db08276bc116c438d3fdee492026f8223584c477
python : 3.8.5.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-1100-azure
Version : #111~16.04.1-Ubuntu SMP Thu Nov 19 06:49:21 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.3
numpy : 1.19.2
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.4
setuptools : 50.3.1.post20201107
Cython : 0.29.17
pytest : 6.1.1
hypothesis : None
sphinx : 3.2.1
blosc : None
feather : None
xlsxwriter : 1.3.7
lxml.etree : 4.6.1
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : 1.3.2
fsspec : 0.8.3
fastparquet : None
gcsfs : None
matplotlib : 3.3.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : 3.0.0
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : 1.3.20
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
numba : 0.51.2
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40373/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40373/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40374 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40374/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40374/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40374/events | https://github.com/pandas-dev/pandas/issues/40374 | 829,213,060 | MDU6SXNzdWU4MjkyMTMwNjA= | 40,374 | DOC: Rolling with method="table" to apply func to all columns and not just individual columns | {
"avatar_url": "https://avatars.githubusercontent.com/u/5648645?v=4",
"events_url": "https://api.github.com/users/joshlk/events{/privacy}",
"followers_url": "https://api.github.com/users/joshlk/followers",
"following_url": "https://api.github.com/users/joshlk/following{/other_user}",
"gists_url": "https://api.github.com/users/joshlk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joshlk",
"id": 5648645,
"login": "joshlk",
"node_id": "MDQ6VXNlcjU2NDg2NDU=",
"organizations_url": "https://api.github.com/users/joshlk/orgs",
"received_events_url": "https://api.github.com/users/joshlk/received_events",
"repos_url": "https://api.github.com/users/joshlk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joshlk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joshlk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joshlk"
} | [
{
"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": "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"
}
] | 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-03-11T14:38:03Z | 2021-03-19T17:53:57Z | null | NONE | null | #### Is your feature request related to a problem?
With a `group.apply` the applied function acts on all columns available to provide a result. With `rolling.apply` it applies the function to each column individually - it would be great if you could apply it to all the columns as well.
e.g. the following is possible with `groupby.apply`
```
df = pd.DataFrame({'A': range(10), 'B': range(10,0,-1)}).reset_index()
df['index'] = df['index'] % 3
df.groupby('index').apply(lambda df: df['A'] + df['B'])
```
However, you can't do the same equivalent with `rolling.apply`:
```
df = pd.DataFrame({'A': range(10), 'B': range(10,0,-1)}).reset_index()
df.rolling(3, on='index').apply(lambda df: (df['A'] * df['B']).sum())
```
Gives the error: `KeyError: 'A'`
This is because the `apply` function is applied to each column separately. The series is passed to the function not the dataframe. This feels inconsistent and annoying if you want to apply a function to the grouped rolling data. It would be great if there were a way to do it 😃
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40374/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40374/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40375 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40375/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40375/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40375/events | https://github.com/pandas-dev/pandas/issues/40375 | 829,223,107 | MDU6SXNzdWU4MjkyMjMxMDc= | 40,375 | DOC: Backticks missing in pandas.DataFrame.query | {
"avatar_url": "https://avatars.githubusercontent.com/u/12128514?v=4",
"events_url": "https://api.github.com/users/bersbersbers/events{/privacy}",
"followers_url": "https://api.github.com/users/bersbersbers/followers",
"following_url": "https://api.github.com/users/bersbersbers/following{/other_user}",
"gists_url": "https://api.github.com/users/bersbersbers/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bersbersbers",
"id": 12128514,
"login": "bersbersbers",
"node_id": "MDQ6VXNlcjEyMTI4NTE0",
"organizations_url": "https://api.github.com/users/bersbersbers/orgs",
"received_events_url": "https://api.github.com/users/bersbersbers/received_events",
"repos_url": "https://api.github.com/users/bersbersbers/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bersbersbers/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bersbersbers/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bersbersbers"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "f3afff",
"default": false,
"description": "pd.eval, query",
"id": 1631985267,
"name": "expressions",
"node_id": "MDU6TGFiZWwxNjMxOTg1MjY3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/expressions"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 9 | 2021-03-11T14:48:54Z | 2021-03-13T16:03:48Z | 2021-03-12T22:06:45Z | NONE | null | #### Location of the documentation
https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.query.html
#### Documentation problem

#### Suggested fix for documentation
Backticks should be shown for the second `Area (cm^2)`. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40375/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40375/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40376 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40376/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40376/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40376/events | https://github.com/pandas-dev/pandas/issues/40376 | 829,225,782 | MDU6SXNzdWU4MjkyMjU3ODI= | 40,376 | ENH: `pivot_table` no aggregation validation | {
"avatar_url": "https://avatars.githubusercontent.com/u/5648645?v=4",
"events_url": "https://api.github.com/users/joshlk/events{/privacy}",
"followers_url": "https://api.github.com/users/joshlk/followers",
"following_url": "https://api.github.com/users/joshlk/following{/other_user}",
"gists_url": "https://api.github.com/users/joshlk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joshlk",
"id": 5648645,
"login": "joshlk",
"node_id": "MDQ6VXNlcjU2NDg2NDU=",
"organizations_url": "https://api.github.com/users/joshlk/orgs",
"received_events_url": "https://api.github.com/users/joshlk/received_events",
"repos_url": "https://api.github.com/users/joshlk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joshlk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joshlk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joshlk"
} | [
{
"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 | [] | null | 4 | 2021-03-11T14:51:42Z | 2021-03-13T01:05:11Z | 2021-03-13T01:04:48Z | NONE | null | #### Is your feature request related to a problem?
`pd.pivot_table` reshapes a table and aggregates values using a `aggfunc` (default `mean`) when rows has the same `index`+`columns` values. However, it is also common to use this function to purely reshape the table without aggregation - based on the assumption that no duplicates exist in the input table. However, if the upstream data does contain duplicates the output of `pd.pivot_table` "silently" changes to an aggregation instead of a pure reshape.
This issue is a parallel issue with `pd.merge` and `1:m` "silently" converting to a `m:m` join when input tables contain duplicates.
#### Describe the solution you'd like
`pd.merge` introduced a `validate` switch which checks the inputs do not have duplicates (depending on which setting is used). I propose that `pd.pivot_table` also introduce a `validate` switch to check that the input table doesn't have duplicate rows with the same `index`+`columns` values.
#### API breaking implications
None
#### Describe alternatives you've considered
`assert df.duplicated(keys).sum() == 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/40376/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40376/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40377 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40377/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40377/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40377/events | https://github.com/pandas-dev/pandas/issues/40377 | 829,239,109 | MDU6SXNzdWU4MjkyMzkxMDk= | 40,377 | DOC: Slightly broken grammar for `groupby.apply` with fix (good first doc issue?) | {
"avatar_url": "https://avatars.githubusercontent.com/u/273210?v=4",
"events_url": "https://api.github.com/users/ianozsvald/events{/privacy}",
"followers_url": "https://api.github.com/users/ianozsvald/followers",
"following_url": "https://api.github.com/users/ianozsvald/following{/other_user}",
"gists_url": "https://api.github.com/users/ianozsvald/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ianozsvald",
"id": 273210,
"login": "ianozsvald",
"node_id": "MDQ6VXNlcjI3MzIxMA==",
"organizations_url": "https://api.github.com/users/ianozsvald/orgs",
"received_events_url": "https://api.github.com/users/ianozsvald/received_events",
"repos_url": "https://api.github.com/users/ianozsvald/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ianozsvald/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ianozsvald/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ianozsvald"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] | closed | false | null | [] | {
"closed_at": "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-03-11T15:06:03Z | 2021-03-11T21:03:51Z | 2021-03-11T20:34:28Z | CONTRIBUTOR | null | #### Location of the documentation
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.core.window.rolling.Rolling.apply.html
#### Documentation problem
For `engine` we have `None : Defaults to 'cython' or globally setting compute.use_numba`
#### Suggested fix for documentation
I'm very confident that this should read `None : Defaults to 'cython' or the global setting in compute.use_numba`.
Following the source code for `apply` to https://github.com/pandas-dev/pandas/blob/v1.2.3/pandas/core/window/rolling.py#L1307 and https://github.com/pandas-dev/pandas/blob/v1.2.3/pandas/core/util/numba_.py#L17 neither place sets the global variable, they just read from it. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40377/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40377/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40378 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40378/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40378/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40378/events | https://github.com/pandas-dev/pandas/issues/40378 | 829,295,807 | MDU6SXNzdWU4MjkyOTU4MDc= | 40,378 | BUG: TypeError when trying to group on column name and index level at the same time | {
"avatar_url": "https://avatars.githubusercontent.com/u/62142979?v=4",
"events_url": "https://api.github.com/users/dchigarev/events{/privacy}",
"followers_url": "https://api.github.com/users/dchigarev/followers",
"following_url": "https://api.github.com/users/dchigarev/following{/other_user}",
"gists_url": "https://api.github.com/users/dchigarev/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dchigarev",
"id": 62142979,
"login": "dchigarev",
"node_id": "MDQ6VXNlcjYyMTQyOTc5",
"organizations_url": "https://api.github.com/users/dchigarev/orgs",
"received_events_url": "https://api.github.com/users/dchigarev/received_events",
"repos_url": "https://api.github.com/users/dchigarev/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dchigarev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dchigarev/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dchigarev"
} | [
{
"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": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"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": 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-03-11T16:08:31Z | 2021-03-12T03:14:24Z | 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
df = pandas.DataFrame({"col1": ["a", "b", "c"]})
df.groupby("col1", level=0) # Fine
df.index = pandas.MultiIndex.from_arrays([["a", "a", "b"], [1, 2, 1]], names=["x", "y"])
df.groupby(["col1", "x"]) # Fine
df.groupby("col1", level=0) # TypeError
```
<details><summary>Traceback</summary>
```
Traceback (most recent call last):
File "rofl.py", line 7, in <module>
res = df.groupby("col1", level=0) # TypeError
File "/localdisk/dchigare/miniconda3/envs/modin_tests/lib/python3.7/site-packages/pandas/core/frame.py", line 6727, in groupby
dropna=dropna,
File "/localdisk/dchigare/miniconda3/envs/modin_tests/lib/python3.7/site-packages/pandas/core/groupby/groupby.py", line 568, in __init__
dropna=self.dropna,
File "/localdisk/dchigare/miniconda3/envs/modin_tests/lib/python3.7/site-packages/pandas/core/groupby/grouper.py", line 839, in get_grouper
if not isinstance(gpr, Grouping)
File "/localdisk/dchigare/miniconda3/envs/modin_tests/lib/python3.7/site-packages/pandas/core/groupby/grouper.py", line 485, in __init__
) = index._get_grouper_for_level(self.grouper, level)
File "/localdisk/dchigare/miniconda3/envs/modin_tests/lib/python3.7/site-packages/pandas/core/indexes/multi.py", line 1487, in _get_grouper_for_level
grouper = level_values.map(mapper)
File "/localdisk/dchigare/miniconda3/envs/modin_tests/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 5098, in map
new_values = super()._map_values(mapper, na_action=na_action)
File "/localdisk/dchigare/miniconda3/envs/modin_tests/lib/python3.7/site-packages/pandas/core/base.py", line 937, in _map_values
new_values = map_f(values, mapper)
File "pandas/_libs/lib.pyx", line 2467, in pandas._libs.lib.map_infer
TypeError: 'numpy.ndarray' object is not callable
```
</details>
#### Problem description
Getting a TypeError when specifying `by` and `level` params in `.groupby()` at the same time. It seems that grouping on column name and index level is supported since there is no error when level name is located in `by` parameter, so specifying it with `level` should also be possible.
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.7.7.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-65-generic
Version : #73-Ubuntu SMP Mon Jan 18 17:25:17 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.19.0
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 47.3.1.post20200622
Cython : None
pytest : 6.0.2
hypothesis : None
sphinx : None
blosc : None
feather : 0.4.1
xlsxwriter : None
lxml.etree : 4.5.1
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : None
pandas_datareader: None
bs4 : 4.9.1
bottleneck : None
fsspec : 0.7.4
fastparquet : None
gcsfs : None
matplotlib : 3.2.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.4
pandas_gbq : 0.13.2
pyarrow : 1.0.1
pyxlsb : None
s3fs : 0.4.2
scipy : 1.5.1
sqlalchemy : 1.3.18
tables : 3.6.1
tabulate : None
xarray : 0.15.1
xlrd : 1.2.0
xlwt : None
numba : None
```
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40378/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40378/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40379 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40379/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40379/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40379/events | https://github.com/pandas-dev/pandas/pull/40379 | 829,344,059 | MDExOlB1bGxSZXF1ZXN0NTkxMDIzNzgy | 40,379 | TYP: change ArrayLike/AnyArrayLike alias to Union | {
"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": "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"
} | 2 | 2021-03-11T17:05:05Z | 2021-03-12T11:17:01Z | 2021-03-12T02:33:29Z | MEMBER | null | follow-on from #36092
The first commit is the change in the alias.
Although this does get rid of many of the false positives, as well as removing ignores this also results is some changes in the mypy error codes and some new errors where we might need a typevar (or more likely an overload)
The subsequent commits were an attempt to ensure that this PR only removed ignores.
The PR is starting to get a bit difficult to review imo. so I have stopped for now.
I could break off the first commit and then submit the subsequent commits as separate PRs if it makes review easier. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40379/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40379/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40379.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40379",
"merged_at": "2021-03-12T02:33:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40379.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40379"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40380 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40380/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40380/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40380/events | https://github.com/pandas-dev/pandas/pull/40380 | 829,418,762 | MDExOlB1bGxSZXF1ZXN0NTkxMDg3OTg1 | 40,380 | REF: setitem_with_indexer DataFrame always go through split_path | {
"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": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] | open | false | null | [] | null | 8 | 2021-03-11T18:33:13Z | 2021-11-09T04:29:29Z | null | MEMBER | null | Still has some rough edges to round off, but putting it up bc i think it might be relevant for some of @jorisvandenbossche 's issues in getting AM behavior to match BM.
Sits on top of #39510 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40380/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40380/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40380.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40380",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/40380.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40380"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40381 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40381/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40381/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40381/events | https://github.com/pandas-dev/pandas/pull/40381 | 829,459,337 | MDExOlB1bGxSZXF1ZXN0NTkxMTIxNDE3 | 40,381 | Docs - Grammar fix #40377 | {
"avatar_url": "https://avatars.githubusercontent.com/u/10477789?v=4",
"events_url": "https://api.github.com/users/Mayurji/events{/privacy}",
"followers_url": "https://api.github.com/users/Mayurji/followers",
"following_url": "https://api.github.com/users/Mayurji/following{/other_user}",
"gists_url": "https://api.github.com/users/Mayurji/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Mayurji",
"id": 10477789,
"login": "Mayurji",
"node_id": "MDQ6VXNlcjEwNDc3Nzg5",
"organizations_url": "https://api.github.com/users/Mayurji/orgs",
"received_events_url": "https://api.github.com/users/Mayurji/received_events",
"repos_url": "https://api.github.com/users/Mayurji/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Mayurji/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Mayurji/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Mayurji"
} | [
{
"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"
} | 2 | 2021-03-11T19:31:58Z | 2021-03-11T20:35:45Z | 2021-03-11T20:34:28Z | CONTRIBUTOR | null | Reference Issue:
DOC: Slightly broken grammar for `groupby.apply` with fix [#40377](https://github.com/pandas-dev/pandas/issues/40377)
Made the grammar change as raised in 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/40381/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40381/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40381.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40381",
"merged_at": "2021-03-11T20:34:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40381.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40381"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40382 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40382/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40382/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40382/events | https://github.com/pandas-dev/pandas/issues/40382 | 829,511,071 | MDU6SXNzdWU4Mjk1MTEwNzE= | 40,382 | BUG: pip install pandas==1.2.3 triggers source build on aarch64 (manylinux2014 wheel missing from PyPi) | {
"avatar_url": "https://avatars.githubusercontent.com/u/57402305?v=4",
"events_url": "https://api.github.com/users/jakob-keller/events{/privacy}",
"followers_url": "https://api.github.com/users/jakob-keller/followers",
"following_url": "https://api.github.com/users/jakob-keller/following{/other_user}",
"gists_url": "https://api.github.com/users/jakob-keller/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jakob-keller",
"id": 57402305,
"login": "jakob-keller",
"node_id": "MDQ6VXNlcjU3NDAyMzA1",
"organizations_url": "https://api.github.com/users/jakob-keller/orgs",
"received_events_url": "https://api.github.com/users/jakob-keller/received_events",
"repos_url": "https://api.github.com/users/jakob-keller/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jakob-keller/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jakob-keller/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jakob-keller"
} | [
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"color": "c2e0c6",
"default": false,
"description": "aarch64 architecture",
"id": 2628846204,
"name": "ARM",
"node_id": "MDU6TGFiZWwyNjI4ODQ2MjA0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ARM"
}
] | closed | false | null | [] | null | 4 | 2021-03-11T20:48:01Z | 2021-09-22T19:15:01Z | 2021-07-10T18:21:23Z | NONE | null | Hello,
please accept my apologies for not adhering to the bug report template. I felt this issue doesn't quite fit it.
There is a huge increase in installation times on aarch64 Linux machines (e.g. AWS Graviton 2 based EC2 instances) running CPython 3.8 when comparing the current and previous releases of pandas:
- [``pip install pandas==1.2.2``](https://pypi.org/project/pandas/1.2.2/#files) -> completes fast, leverages the [manylinux2014 wheel](https://files.pythonhosted.org/packages/86/c2/dbb6f8b0e42da7c556fc07668b97d1614d9bb39a9dcab69eb91a78f04ba9/pandas-1.2.2-cp38-cp38-manylinux2014_aarch64.whl)
- [``pip install pandas==1.2.3``](https://pypi.org/project/pandas/1.2.3/#files) -> takes several times longer, performs source build
The cause appears to be **manylinux2014 wheels for pandas 1.2.3 missing from PyPi**. Could these please be added? Are there plans to include these for future releases?
My workaround is simply to pin the 1.2.2 release on aarch64 for the time being.
Thanks for all the effort! | {
"+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/40382/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40382/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40383 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40383/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40383/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40383/events | https://github.com/pandas-dev/pandas/pull/40383 | 829,594,015 | MDExOlB1bGxSZXF1ZXN0NTkxMjM0MDUx | 40,383 | REF: share Categorical.fillna with NDArrayBackedExtensionArray | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] | closed | false | null | [] | {
"closed_at": "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-03-11T23:05:10Z | 2021-03-15T00:43:16Z | 2021-03-15T00:03:14Z | 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/40383/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40383/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40383.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40383",
"merged_at": "2021-03-15T00:03:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40383.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40383"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40384 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40384/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40384/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40384/events | https://github.com/pandas-dev/pandas/pull/40384 | 829,618,991 | MDExOlB1bGxSZXF1ZXN0NTkxMjU2NDU4 | 40,384 | Fix frame_or_series.asfreq() dropping rows on unordered indices | {
"avatar_url": "https://avatars.githubusercontent.com/u/35386821?v=4",
"events_url": "https://api.github.com/users/nmay231/events{/privacy}",
"followers_url": "https://api.github.com/users/nmay231/followers",
"following_url": "https://api.github.com/users/nmay231/following{/other_user}",
"gists_url": "https://api.github.com/users/nmay231/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nmay231",
"id": 35386821,
"login": "nmay231",
"node_id": "MDQ6VXNlcjM1Mzg2ODIx",
"organizations_url": "https://api.github.com/users/nmay231/orgs",
"received_events_url": "https://api.github.com/users/nmay231/received_events",
"repos_url": "https://api.github.com/users/nmay231/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nmay231/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nmay231/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nmay231"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] | closed | false | null | [] | {
"closed_at": "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-03-11T23:38:48Z | 2021-03-23T23:52:13Z | 2021-03-23T17:01:39Z | CONTRIBUTOR | null | - [x] closes #39805
- [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 prevents `frame_or_series.asfreq()` from dropping rows/items if the index is not sorted.
This seemed like a relatively easy fix, and it should probably be done sooner than later. However, there wasn't much discussion in the issue so I still have some questions:
1. How should we respond to unsorted indices? For now, I went ahead with option a.
a. Silently "sort" the index before reindexing. Or we could
b. Raise a warning before "sorting." Or
c. Raise an error.
2. If it should be in the whatsnew, which version would it be added to?
3. I was thinking of converting the `asfreq` tests from class-based to functions. Can I do that in this PR or should I do that in another one? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40384/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40384/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40384.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40384",
"merged_at": "2021-03-23T17:01:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40384.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40384"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40385 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40385/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40385/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40385/events | https://github.com/pandas-dev/pandas/pull/40385 | 829,620,202 | MDExOlB1bGxSZXF1ZXN0NTkxMjU3NDc1 | 40,385 | REF/PERF: do maybe_coerce_values before Block.__init__ | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "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-03-11T23:41:22Z | 2021-03-15T00:00:53Z | 2021-03-14T23:42:21Z | MEMBER | null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40385/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40385/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40385.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40385",
"merged_at": "2021-03-14T23:42:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40385.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40385"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/40386 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40386/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40386/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40386/events | https://github.com/pandas-dev/pandas/issues/40386 | 829,632,370 | MDU6SXNzdWU4Mjk2MzIzNzA= | 40,386 | BUG: `Series.__delete__` with EA casts to object | {
"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-03-12T00:08:55Z | 2021-04-05T16:19:43Z | 2021-04-05T16:19:43Z | MEMBER | null | it calls np.delete, which casts to ndarray, which for e.g. PeriodDtype will cast to object
```
dti = pd.date_range("2016-01-01", periods=3, tz="US/Pacific")
ser = pd.Series(dti)
del ser[1]
>>> ser
0 2016-01-01 00:00:00-08:00
2 2016-01-03 00:00:00-08:00
dtype: object
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40386/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40386/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40387 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40387/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40387/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40387/events | https://github.com/pandas-dev/pandas/pull/40387 | 829,646,878 | MDExOlB1bGxSZXF1ZXN0NTkxMjc5OTcw | 40,387 | ENH: Make to_csv('filename.csv.zip') compress the output | {
"avatar_url": "https://avatars.githubusercontent.com/u/15418465?v=4",
"events_url": "https://api.github.com/users/HQDragon/events{/privacy}",
"followers_url": "https://api.github.com/users/HQDragon/followers",
"following_url": "https://api.github.com/users/HQDragon/following{/other_user}",
"gists_url": "https://api.github.com/users/HQDragon/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/HQDragon",
"id": 15418465,
"login": "HQDragon",
"node_id": "MDQ6VXNlcjE1NDE4NDY1",
"organizations_url": "https://api.github.com/users/HQDragon/orgs",
"received_events_url": "https://api.github.com/users/HQDragon/received_events",
"repos_url": "https://api.github.com/users/HQDragon/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/HQDragon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HQDragon/subscriptions",
"type": "User",
"url": "https://api.github.com/users/HQDragon"
} | [
{
"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": "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-03-12T00:42:41Z | 2021-06-18T01:39:54Z | 2021-06-18T01:39:54Z | NONE | null | - [x] closes #39465 #26023
- [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] dataframe.to_csv with zip compression now works like gzip/xz, when use 'infer' and destination path 'xxxx.csv.zip' which endwith '.zip', to_csv will create a zip file with archive_name=xxxx.csv
close old PR,do some work after read pre commit guidelines | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40387/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40387/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40387.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40387",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/40387.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40387"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40388 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40388/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40388/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40388/events | https://github.com/pandas-dev/pandas/issues/40388 | 829,661,256 | MDU6SXNzdWU4Mjk2NjEyNTY= | 40,388 | Add raw_html parameter to Styler.format, enabling richer output | {
"avatar_url": "https://avatars.githubusercontent.com/u/78827?v=4",
"events_url": "https://api.github.com/users/jnothman/events{/privacy}",
"followers_url": "https://api.github.com/users/jnothman/followers",
"following_url": "https://api.github.com/users/jnothman/following{/other_user}",
"gists_url": "https://api.github.com/users/jnothman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jnothman",
"id": 78827,
"login": "jnothman",
"node_id": "MDQ6VXNlcjc4ODI3",
"organizations_url": "https://api.github.com/users/jnothman/orgs",
"received_events_url": "https://api.github.com/users/jnothman/received_events",
"repos_url": "https://api.github.com/users/jnothman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jnothman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jnothman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jnothman"
} | [
{
"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"
}
] | 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-03-12T01:10:31Z | 2021-03-23T17:03:14Z | 2021-03-23T17:03:14Z | CONTRIBUTOR | null | `Styler.format` could allow a parameter `raw_html` (bool, False for current behaviour), enabling richer output
For example, `df.style.format(lambda s: f"<a href='https://en.wikipedia.org/wiki/{html.escape(s)}'>{html.escape(s)}</a>", raw_html=True)` could be used to turn a column of values into a column of links to English Wikipedia articles, when exported with `to_html`.
To achieve this, we would need to always pass raw HTML to the jina templates, changing how formatting is currently done in `Styler.to_html`.
Formats performed with `raw_html=True` would have no effect on `Styler.to_excel`. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40388/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40388/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40389 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40389/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40389/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40389/events | https://github.com/pandas-dev/pandas/pull/40389 | 829,724,386 | MDExOlB1bGxSZXF1ZXN0NTkxMzQzNjkw | 40,389 | TYP: fix 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-03-12T03:30:43Z | 2021-03-12T22:42:08Z | 2021-03-12T22:33:24Z | MEMBER | null | i get a bunch of noise in my local mypy output, so will have to see what the CI says | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40389/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40389/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40389.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40389",
"merged_at": "2021-03-12T22:33:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40389.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40389"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40390 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40390/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40390/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40390/events | https://github.com/pandas-dev/pandas/pull/40390 | 829,751,249 | MDExOlB1bGxSZXF1ZXN0NTkxMzY1ODY0 | 40,390 | TYP: Index.join, get_indexer, reindex | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [] | closed | false | null | [] | null | 2 | 2021-03-12T04:40:55Z | 2021-07-21T00:04:05Z | 2021-03-13T15:52:40Z | MEMBER | null | @simonjayhawkins this is technically incorrect bc im specifying returned dtypes as np.intp. Is there a valid way to do this? In working in core.internals trying to figure out whether we want int64 or intp I had to track all of these down to be sure. Would prefer to avoid re-doing this in a few weeks when I forget. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40390/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40390/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40390.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40390",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/40390.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40390"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40391 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40391/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40391/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40391/events | https://github.com/pandas-dev/pandas/pull/40391 | 829,751,955 | MDExOlB1bGxSZXF1ZXN0NTkxMzY2NDYy | 40,391 | PERF: avoid double-verify of take indices | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "207de5",
"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-03-12T04:42:40Z | 2021-03-12T20:35:49Z | 2021-03-12T19:41:24Z | 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/40391/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40391/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40391.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40391",
"merged_at": "2021-03-12T19:41:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40391.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40391"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40392 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40392/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40392/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40392/events | https://github.com/pandas-dev/pandas/pull/40392 | 829,783,475 | MDExOlB1bGxSZXF1ZXN0NTkxMzkzMjQ3 | 40,392 | CI/TYP: Window typing followup | {
"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": "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"
},
{
"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-03-12T05:53:55Z | 2021-03-12T18:41:13Z | 2021-03-12T09:03:41Z | MEMBER | null | - [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
I believe https://github.com/pandas-dev/pandas/pull/40293 may have caused the current typing failures in the CI | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40392/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40392/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40392.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40392",
"merged_at": "2021-03-12T09:03:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40392.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40392"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40393 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40393/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40393/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40393/events | https://github.com/pandas-dev/pandas/issues/40393 | 829,875,923 | MDU6SXNzdWU4Mjk4NzU5MjM= | 40,393 | BUG: convert_dtypes throws a ValueError when called on an empty DataFrame | {
"avatar_url": "https://avatars.githubusercontent.com/u/12672027?v=4",
"events_url": "https://api.github.com/users/owenlamont/events{/privacy}",
"followers_url": "https://api.github.com/users/owenlamont/followers",
"following_url": "https://api.github.com/users/owenlamont/following{/other_user}",
"gists_url": "https://api.github.com/users/owenlamont/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/owenlamont",
"id": 12672027,
"login": "owenlamont",
"node_id": "MDQ6VXNlcjEyNjcyMDI3",
"organizations_url": "https://api.github.com/users/owenlamont/orgs",
"received_events_url": "https://api.github.com/users/owenlamont/received_events",
"repos_url": "https://api.github.com/users/owenlamont/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/owenlamont/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/owenlamont/subscriptions",
"type": "User",
"url": "https://api.github.com/users/owenlamont"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"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"
} | 5 | 2021-03-12T08:27:07Z | 2021-03-15T14:00:57Z | 2021-03-15T14:00:57Z | CONTRIBUTOR | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
# Your code here
import pandas as pd
pd.DataFrame().convert_dtypes()
```
#### Problem description
convert_dtypes throws a "ValueError: No objects to concatenate" exception when called on an empty DataFrame. I find that a problem because I have use cases of chaining up DataFrame transform calls fluently that may result in an empty DataFrame before the convert_dtypes call. I don't want want to break up the transform calls to check for an empty DataFrame or handle the ValueError.
#### Expected Output
I expect calling convert_dtypes on an empty DataFrame should return an empty DataFrame without error.
```python
import pandas as pd
df = pd.DataFrame().convert_dtypes()
assert df.empty
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2c8480af2f25efdbd803218b9d87980f416563e
python : 3.8.8.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_AU.UTF-8
LOCALE : en_AU.UTF-8
pandas : 1.2.3
numpy : 1.20.1
pytz : 2020.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 49.6.0.post20200917
Cython : None
pytest : 6.0.2
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.3.7
lxml.etree : 4.6.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.21.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : 1.3.2
fsspec : 0.8.2
fastparquet : 0.5.0
gcsfs : None
matplotlib : 3.3.4
numexpr : 2.7.3
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : 3.0.0
pyxlsb : None
s3fs : 0.2.2
scipy : 1.5.3
sqlalchemy : 1.3.23
tables : 3.6.1
tabulate : 0.8.7
xarray : 0.16.1
xlrd : 2.0.1
xlwt : None
numba : 0.51.2
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40393/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40393/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40394 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40394/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40394/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40394/events | https://github.com/pandas-dev/pandas/pull/40394 | 829,966,855 | MDExOlB1bGxSZXF1ZXN0NTkxNTQ4MTU4 | 40,394 | CI run coverage on multiple builds | {
"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"
}
] | 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"
} | 7 | 2021-03-12T10:17:53Z | 2021-03-17T21:09:44Z | 2021-03-17T21:08:52Z | MEMBER | null | - [x] closes #39758
Moving the posix builds to GitHubActions + uploading coverage on every build, as they're merged by default by Codecov
----
Trying to get this in so that the codecov check in #40078 will pass | {
"+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/40394/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40394/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40394.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40394",
"merged_at": "2021-03-17T21:08:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40394.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40394"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40395 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40395/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40395/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40395/events | https://github.com/pandas-dev/pandas/issues/40395 | 829,984,171 | MDU6SXNzdWU4Mjk5ODQxNzE= | 40,395 | BUG: Regression in quantile method when using Int64 extension dtype | {
"avatar_url": "https://avatars.githubusercontent.com/u/5585221?v=4",
"events_url": "https://api.github.com/users/bashtage/events{/privacy}",
"followers_url": "https://api.github.com/users/bashtage/followers",
"following_url": "https://api.github.com/users/bashtage/following{/other_user}",
"gists_url": "https://api.github.com/users/bashtage/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bashtage",
"id": 5585221,
"login": "bashtage",
"node_id": "MDQ6VXNlcjU1ODUyMjE=",
"organizations_url": "https://api.github.com/users/bashtage/orgs",
"received_events_url": "https://api.github.com/users/bashtage/received_events",
"repos_url": "https://api.github.com/users/bashtage/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bashtage/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bashtage/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bashtage"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] | closed | false | null | [] | null | 3 | 2021-03-12T10:37:16Z | 2021-03-12T16:06:39Z | 2021-03-12T16:06:30Z | CONTRIBUTOR | null | - [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [X] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import numpy as np
import pandas as pd
s = pd.Series(np.arange(100), dtype=pd.Int64Dtype())
s.quantile(0.75)
```
produces
```
AbstractMethodError: This method must be defined in the concrete class type
```
#### Problem description
A regression in the extension dtype not raises `AbstractMethodError`. This is only true in 1.3.0dev. Found in statsmodels prerelease testing.
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit : 65abf6b2d8a1c109fca070ed95f9bc2106cfb818
python : 3.8.8.final.0
python-bits : 64
OS : Linux
OS-release : 4.19.104-microsoft-standard
Version : #1 SMP Wed Feb 19 06:37:35 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.3.0.dev0+1026.g65abf6b2d8
numpy : 1.21.0.dev0+934.g6222e283f
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 54.1.1
Cython : 0.29.22
pytest : 6.2.2
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.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 : 1.7.0.dev0+5e9eb01
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/40395/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40395/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40396 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40396/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40396/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40396/events | https://github.com/pandas-dev/pandas/pull/40396 | 829,986,612 | MDExOlB1bGxSZXF1ZXN0NTkxNTY1MTk2 | 40,396 | REF/PERF: move np.errstate out of core array_ops up to higher level | {
"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"
} | 4 | 2021-03-12T10:40:11Z | 2021-03-18T14:34:37Z | 2021-03-17T21:10:35Z | MEMBER | null | Currently, we suppress numpy warnings with `np.errstate(all="ignore")` inside the `evaluate` function in `core.computation.expressions`, which is is only used in `core.ops.array_ops._na_arithmetic_op`, which in itself is only used in `core.ops.array_ops` `arithmetic_op()` and `comparison_op()` (where we actually called `np.errstate` again, duplicatively).
So, in summary, we suppress the warnings at the level of the "array op". For the ArrayManager, we call this array op many times for each column, and repeatedly calling `np.errstate(all="ignore")` gives a big overhead. Luckily, it is easy to suppress the warnings once at a higher level, at the DataFrame/Series level, where those array ops are called.
That's what this PR is doing: removing `np.errstate(all="ignore")` in the actual array ops, and adding it in all places where we currently call the array ops.
With the benchmark case of an arithmetic op with two dataframes, this gives a considerable improvement:
```python
import numpy as np
import pandas as pd
df = pd.DataFrame(np.random.randn(1000, 1000))
df_am = df._as_manager("array")
```
```
In [2]: %timeit df_am + df_am
18.1 ms ± 1.04 ms per loop (mean ± std. dev. of 7 runs, 100 loops each) <-- master
8.57 ms ± 167 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) <-- PR
```
For BM it doesn't matter for this case, since that's a single block and `np.errstate` would be called only once anyway. But for certain cases of `df+s` ops where we potentially also work column-wise for BM, it should benefit there as well. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40396/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40396/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40396.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40396",
"merged_at": "2021-03-17T21:10:35Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40396.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40396"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40397 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40397/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40397/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40397/events | https://github.com/pandas-dev/pandas/issues/40397 | 830,046,167 | MDU6SXNzdWU4MzAwNDYxNjc= | 40,397 | API: Make _libs.lib.no_default a singleton | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "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": "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": "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-03-12T11:54:25Z | 2021-06-08T15:42:49Z | 2021-06-08T15:42:49Z | CONTRIBUTOR | null | See https://github.com/pandas-dev/pandas/issues/40397#issuecomment-797848948
---
This makes it easier for users and other libraries to inspect pandas' behavior without importing private modules (xref https://github.com/dask/dask/pull/7375).
I'm not sure what public namespace is best. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40397/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40397/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40398 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40398/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40398/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40398/events | https://github.com/pandas-dev/pandas/pull/40398 | 830,064,918 | MDExOlB1bGxSZXF1ZXN0NTkxNjMyOTM2 | 40,398 | TYP: Arraylike alias change follow up | {
"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": "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 | [] | null | 0 | 2021-03-12T12:19:05Z | 2021-03-13T15:42:48Z | 2021-03-13T15:42:42Z | MEMBER | null | follow-on from #40379 removing ignores that either changed or were added with the change of the ArrayLike alias to a Union
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40398/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40398/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40398.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40398",
"merged_at": "2021-03-13T15:42:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40398.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40398"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40399 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40399/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40399/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40399/events | https://github.com/pandas-dev/pandas/pull/40399 | 830,150,719 | MDExOlB1bGxSZXF1ZXN0NTkxNzA3MDYz | 40,399 | CLN: _maybe_upcast_for_op doesn't need to check timedelta ndarray | {
"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": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "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-03-12T14:05:39Z | 2021-03-17T07:22:13Z | 2021-03-17T07:22:07Z | MEMBER | null | The `elif isinstance(obj, np.ndarray) and obj.dtype.kind == "m":` part is ever reached, because just before calling `_maybe_upcast_for_op`, we already did a `ensure_wrapped_if_datetimelike` which basically does the same (codedov also confirms it's not covered). So therefore removing that check.
In addition, moving the Datetime/TimedeltaArray inline within the `if/elif` checks, this gives a little bit less overhead for the non-datetimelike cases. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40399/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40399/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40399.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40399",
"merged_at": "2021-03-17T07:22:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40399.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40399"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40400 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40400/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40400/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40400/events | https://github.com/pandas-dev/pandas/pull/40400 | 830,190,109 | MDExOlB1bGxSZXF1ZXN0NTkxNzQwNjA3 | 40,400 | DOC: Backticks missing in pandas.DataFrame.query | {
"avatar_url": "https://avatars.githubusercontent.com/u/22836503?v=4",
"events_url": "https://api.github.com/users/sstiijn/events{/privacy}",
"followers_url": "https://api.github.com/users/sstiijn/followers",
"following_url": "https://api.github.com/users/sstiijn/following{/other_user}",
"gists_url": "https://api.github.com/users/sstiijn/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sstiijn",
"id": 22836503,
"login": "sstiijn",
"node_id": "MDQ6VXNlcjIyODM2NTAz",
"organizations_url": "https://api.github.com/users/sstiijn/orgs",
"received_events_url": "https://api.github.com/users/sstiijn/received_events",
"repos_url": "https://api.github.com/users/sstiijn/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sstiijn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sstiijn/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sstiijn"
} | [
{
"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"
} | 2 | 2021-03-12T14:49:42Z | 2021-03-15T05:22:40Z | 2021-03-12T22:06:45Z | CONTRIBUTOR | null | - [ ] closes #40375
- [ ] 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
I also noticed that in the same sentence double quotes were missing, so I added those as well. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40400/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40400/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40400.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40400",
"merged_at": "2021-03-12T22:06:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40400.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40400"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40401 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40401/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40401/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40401/events | https://github.com/pandas-dev/pandas/pull/40401 | 830,238,122 | MDExOlB1bGxSZXF1ZXN0NTkxNzgxNjA5 | 40,401 | CLN: remove unreached boolean-mask case from _preprocess_slice_or_indexer | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "207de5",
"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"
} | 0 | 2021-03-12T15:42:43Z | 2021-03-16T14:56:16Z | 2021-03-16T13:49:08Z | 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/40401/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40401/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40401.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40401",
"merged_at": "2021-03-16T13:49:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40401.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40401"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40402 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40402/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40402/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40402/events | https://github.com/pandas-dev/pandas/pull/40402 | 830,274,872 | MDExOlB1bGxSZXF1ZXN0NTkxODEyMjUx | 40,402 | BUG: fix convert_dtypes to handle empty df | {
"avatar_url": "https://avatars.githubusercontent.com/u/12672027?v=4",
"events_url": "https://api.github.com/users/owenlamont/events{/privacy}",
"followers_url": "https://api.github.com/users/owenlamont/followers",
"following_url": "https://api.github.com/users/owenlamont/following{/other_user}",
"gists_url": "https://api.github.com/users/owenlamont/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/owenlamont",
"id": 12672027,
"login": "owenlamont",
"node_id": "MDQ6VXNlcjEyNjcyMDI3",
"organizations_url": "https://api.github.com/users/owenlamont/orgs",
"received_events_url": "https://api.github.com/users/owenlamont/received_events",
"repos_url": "https://api.github.com/users/owenlamont/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/owenlamont/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/owenlamont/subscriptions",
"type": "User",
"url": "https://api.github.com/users/owenlamont"
} | [
{
"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"
}
] | 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-03-12T16:29:49Z | 2021-03-15T14:35:58Z | 2021-03-15T14:00:57Z | CONTRIBUTOR | null | Added a conditional to check a DataFrame had at least one column and if not return the original (empty) DataFrame if so.
- [x] closes #40393
- [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/40402/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40402/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40402.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40402",
"merged_at": "2021-03-15T14:00:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40402.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40402"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40403 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40403/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40403/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40403/events | https://github.com/pandas-dev/pandas/pull/40403 | 830,323,053 | MDExOlB1bGxSZXF1ZXN0NTkxODUyNzQw | 40,403 | REF: consistent arguments for create_block_manager_from_blocks | {
"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-03-12T17:37:45Z | 2021-03-16T14:54:22Z | 2021-03-16T13:51: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
We do expose create_block_manager_from_blocks in core.internals, so could put the old version in internals.api and continue exposing that. Not sure if any downstream libraries are actually using it. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40403/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40403/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40403.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40403",
"merged_at": "2021-03-16T13:51:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40403.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40403"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40404 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40404/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40404/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40404/events | https://github.com/pandas-dev/pandas/issues/40404 | 830,351,557 | MDU6SXNzdWU4MzAzNTE1NTc= | 40,404 | BUG: AttributeError: 'PandasArray' object has no attribute '_str_len' | {
"avatar_url": "https://avatars.githubusercontent.com/u/52857488?v=4",
"events_url": "https://api.github.com/users/wellingtonf-souza/events{/privacy}",
"followers_url": "https://api.github.com/users/wellingtonf-souza/followers",
"following_url": "https://api.github.com/users/wellingtonf-souza/following{/other_user}",
"gists_url": "https://api.github.com/users/wellingtonf-souza/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wellingtonf-souza",
"id": 52857488,
"login": "wellingtonf-souza",
"node_id": "MDQ6VXNlcjUyODU3NDg4",
"organizations_url": "https://api.github.com/users/wellingtonf-souza/orgs",
"received_events_url": "https://api.github.com/users/wellingtonf-souza/received_events",
"repos_url": "https://api.github.com/users/wellingtonf-souza/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wellingtonf-souza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wellingtonf-souza/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wellingtonf-souza"
} | [
{
"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 | [] | null | 24 | 2021-03-12T18:26:52Z | 2021-08-24T10:00:25Z | 2021-05-03T11:20:24Z | NONE | null | I am having the following error.
Python 3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
import pandas as pd
pd.version
'1.1.5'
d = {'col1': [1, 2], 'col2': [3, 4]}
df = pd.DataFrame(data=d)
df
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\wellington.souza\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\frame.py", line 751, in repr
show_dimensions=show_dimensions,
File "C:\Users\wellington.souza\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\frame.py", line 883, in to_string
return formatter.to_string(buf=buf, encoding=encoding)
File "C:\Users\wellington.souza\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\io\formats\format.py", line 921, in to_string
return self.get_result(buf=buf, encoding=encoding)
File "C:\Users\wellington.souza\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\io\formats\format.py", line 520, in get_result
self.write_result(buf=f)
File "C:\Users\wellington.souza\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\io\formats\format.py", line 844, in write_result
max_len = Series(lines).str.len().max()
File "C:\Users\wellington.souza\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\strings\accessor.py", line 2579, in len
result = self._data.array._str_len()
AttributeError: 'PandasArray' object has no attribute '_str_len' | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40404/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40404/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40405 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40405/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40405/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40405/events | https://github.com/pandas-dev/pandas/pull/40405 | 830,353,750 | MDExOlB1bGxSZXF1ZXN0NTkxODc4MDY1 | 40,405 | Use take_1d in take_nd | {
"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": "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 | 12 | 2021-03-12T18:31:39Z | 2021-11-11T14:25:14Z | 2021-06-08T18:20:59Z | MEMBER | null | xref https://github.com/pandas-dev/pandas/pull/40300#issuecomment-797637165 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40405/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40405/timeline | null | 1 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40405.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40405",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/40405.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40405"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40406 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40406/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40406/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40406/events | https://github.com/pandas-dev/pandas/pull/40406 | 830,372,765 | MDExOlB1bGxSZXF1ZXN0NTkxODk0MDIw | 40,406 | CLN: unreachable code in algos.diff | {
"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": "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": "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-03-12T19:05:06Z | 2021-03-13T09:46:14Z | 2021-03-12T22:07:21Z | MEMBER | null | it looks like some code is unreachable following #37140 (assuming 1d or 2d only) cc @jbrockmendel | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40406/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40406/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40406.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40406",
"merged_at": "2021-03-12T22:07:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40406.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40406"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40407 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40407/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40407/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40407/events | https://github.com/pandas-dev/pandas/pull/40407 | 830,406,616 | MDExOlB1bGxSZXF1ZXN0NTkxOTIyMzI4 | 40,407 | DOC: remove pin for pydata-sphinx-theme + update for latest release | {
"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-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-03-12T20:00:01Z | 2021-04-06T16:35:43Z | 2021-03-12T22:06:19Z | MEMBER | null | No longer pinning since the bug with the mobile dropdown has been fixed + update the variable for changes in the last 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/40407/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40407/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40407.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40407",
"merged_at": "2021-03-12T22:06:19Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40407.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40407"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40408 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40408/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40408/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40408/events | https://github.com/pandas-dev/pandas/pull/40408 | 830,507,024 | MDExOlB1bGxSZXF1ZXN0NTkyMDEzNzI3 | 40,408 | CI: cache network requests in tests | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [] | closed | false | null | [] | null | 2 | 2021-03-12T21:40:39Z | 2021-03-13T21:12:11Z | 2021-03-13T21:12:04Z | MEMBER | null | Earlier today a bunch of CI failures occurred because of failed network requests. This should prevent some of that. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40408/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40408/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40408.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40408",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/40408.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40408"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40409 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40409/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40409/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40409/events | https://github.com/pandas-dev/pandas/pull/40409 | 830,719,712 | MDExOlB1bGxSZXF1ZXN0NTkyMjE1OTcz | 40,409 | CLN: docstrings, annotations, raising corner cases | {
"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-03-13T00:01:06Z | 2021-03-16T14:58:01Z | 2021-03-16T13:48:15Z | MEMBER | null | PERF: lookup ._name and ._mgr_locs instead of .name and .mgr_locs. The property lookups add up, e.g. mgr_locs is just shy of 2% of the benchmark discussed https://github.com/pandas-dev/pandas/pull/40171#issuecomment-790219422 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40409/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40409/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40409.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40409",
"merged_at": "2021-03-16T13:48:15Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40409.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40409"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40410 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40410/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40410/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40410/events | https://github.com/pandas-dev/pandas/pull/40410 | 830,721,398 | MDExOlB1bGxSZXF1ZXN0NTkyMjE3NTgw | 40,410 | DOC: Fix window pairwise function other not taking ndarray | {
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"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"
} | 0 | 2021-03-13T00:02:33Z | 2021-03-13T18:55:06Z | 2021-03-13T18:55:03Z | MEMBER | null | - [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
xref: https://github.com/pandas-dev/pandas/pull/40392#discussion_r593013628 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40410/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40410/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40410.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40410",
"merged_at": "2021-03-13T18:55:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40410.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40410"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40411 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40411/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40411/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40411/events | https://github.com/pandas-dev/pandas/pull/40411 | 830,737,555 | MDExOlB1bGxSZXF1ZXN0NTkyMjMzMDI2 | 40,411 | BUG: Index constructor silently ignoring dtype | {
"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": "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": "d4c5f9",
"default": false,
"description": "Series/DataFrame/Index/pd.array Constructors",
"id": 1465286368,
"name": "Constructors",
"node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors"
}
] | 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-03-13T00:16:12Z | 2021-03-15T03:18:11Z | 2021-03-14T23:45:27Z | MEMBER | null | - [x] closes #21311
- [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
We can go a step further and re-use sanitize_array for the `dtype is None` case, but that ever-so-slightly changes our datetime-inference behavior, so we'd need to either deprecate or call it a bugfix. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40411/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40411/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40411.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40411",
"merged_at": "2021-03-14T23:45:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40411.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40411"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40412 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40412/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40412/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40412/events | https://github.com/pandas-dev/pandas/pull/40412 | 830,801,345 | MDExOlB1bGxSZXF1ZXN0NTkyMjg3ODM0 | 40,412 | TYP: fix 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"
} | 2 | 2021-03-13T04:16:37Z | 2021-03-13T15:05:20Z | 2021-03-13T13:34:11Z | MEMBER | null | cc @simonjayhawkins
Locally when I run mypy on master I get 427 errors mostly "unused 'type: ignore' comment". Same result when i switch from py39 to py38, or from OSX to Ubuntu. mypy==0.812 in all cases. Any guesses what config the CI has 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/40412/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40412/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40412.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40412",
"merged_at": "2021-03-13T13:34:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40412.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40412"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40413 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40413/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40413/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40413/events | https://github.com/pandas-dev/pandas/pull/40413 | 830,808,654 | MDExOlB1bGxSZXF1ZXN0NTkyMjkzNzE1 | 40,413 | DEPR: error_bad_lines and warn_bad_lines for read_csv | {
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
} | [
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "5319e7",
"default": false,
"description": "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": "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-03-13T04:56:48Z | 2021-05-28T22:31:39Z | 2021-05-28T16:58:22Z | MEMBER | null | - [x] closes #15122
- [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
Summary of contents
- Adds new on_bad_lines parameter (I found on_bad_lines a more explicit name than bad_lines)
- This defaults to None at first in order to preserve compatibility, however it should be changed to error in 2.0 after
error_bad_lines and warn_bad_lines are removed.
- Cleanup of some C/Python Parser code ( add enum instead of using 2 variables for C and only use on_bad_lines in Python) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40413/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40413/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40413.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40413",
"merged_at": "2021-05-28T16:58:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40413.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40413"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40414 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40414/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40414/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40414/events | https://github.com/pandas-dev/pandas/pull/40414 | 830,833,656 | MDExOlB1bGxSZXF1ZXN0NTkyMzEzNTcz | 40,414 | BUG: Do not attempt to cache unhashable values in to_datetime (#39756) | {
"avatar_url": "https://avatars.githubusercontent.com/u/72578587?v=4",
"events_url": "https://api.github.com/users/maroth96/events{/privacy}",
"followers_url": "https://api.github.com/users/maroth96/followers",
"following_url": "https://api.github.com/users/maroth96/following{/other_user}",
"gists_url": "https://api.github.com/users/maroth96/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/maroth96",
"id": 72578587,
"login": "maroth96",
"node_id": "MDQ6VXNlcjcyNTc4NTg3",
"organizations_url": "https://api.github.com/users/maroth96/orgs",
"received_events_url": "https://api.github.com/users/maroth96/received_events",
"repos_url": "https://api.github.com/users/maroth96/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/maroth96/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maroth96/subscriptions",
"type": "User",
"url": "https://api.github.com/users/maroth96"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
}
] | 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-03-13T07:34:37Z | 2021-03-16T01:06:01Z | 2021-03-14T23:43:26Z | CONTRIBUTOR | null | - [x] closes #39756
- [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/40414/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40414/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40414.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40414",
"merged_at": "2021-03-14T23:43:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40414.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40414"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40415 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40415/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40415/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40415/events | https://github.com/pandas-dev/pandas/issues/40415 | 830,887,924 | MDU6SXNzdWU4MzA4ODc5MjQ= | 40,415 | BUG: pydoc.ErrorDuringImport when using pydoc to see docs | {
"avatar_url": "https://avatars.githubusercontent.com/u/24590067?v=4",
"events_url": "https://api.github.com/users/chinggg/events{/privacy}",
"followers_url": "https://api.github.com/users/chinggg/followers",
"following_url": "https://api.github.com/users/chinggg/following{/other_user}",
"gists_url": "https://api.github.com/users/chinggg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chinggg",
"id": 24590067,
"login": "chinggg",
"node_id": "MDQ6VXNlcjI0NTkwMDY3",
"organizations_url": "https://api.github.com/users/chinggg/orgs",
"received_events_url": "https://api.github.com/users/chinggg/received_events",
"repos_url": "https://api.github.com/users/chinggg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chinggg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chinggg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chinggg"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] | closed | false | null | [] | null | 1 | 2021-03-13T12:24:30Z | 2021-08-19T02:02:33Z | 2021-08-19T02:02:33Z | CONTRIBUTOR | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```bash
pydoc -p 8000
```
#### Problem description
I tried to use pydoc to view documentation of pandas offline and it works fine at most time. When I want to view docs of DataFrame, I click the link and it brings me to `http://localhost:8000/pandas.core.frame.html`. However, it just shows an error like this
```
pandas.core.frame.html
--
pydoc.ErrorDuringImport: problem in pandas.core.frame - ImportError: cannot import name 'concat_compat' from partially initialized module 'pandas.core.dtypes.concat' (most likely due to a circular import) (/home/user/.local/lib/python3.9/site-packages/pandas/core/dtypes/concat.py)
```

I have tested on different platforms, from Windows 7 to Arch Linux, from Python 3.6 with Anaconda to Python 3.9. And the problem remains the same. In addition, some other pydoc page in `core` hava similar problems.
Just now I found that `pydoc -w pandas.core.frame` create correct html file for the documentation! That is interesting :smile:
#### Expected Output
It should show the documentation page.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 3e89b4c4b1580aa890023fc550774e63d499da25
python : 3.9.2.final.0
python-bits : 64
OS : Linux
OS-release : 5.10.19-1-MANJARO
Version : #1 SMP PREEMPT Fri Feb 26 11:38:34 UTC 2021
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.0
numpy : 1.20.1
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0
setuptools : 53.1.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
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 : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.4
numexpr : None
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : 3.0.0
pyxlsb : None
s3fs : None
scipy : 1.6.0
sqlalchemy : None
tables : None
tabulate : 0.8.9
xarray : None
xlrd : 1.2.0
xlwt : None
numba : None
None
</details>
I have searched for this problem and it seems that there have been no discussion about it, so I submit this issue to report this weird behavior to you although it may not be your responsibility. But I cannot find place to make issue regarding to `pydoc` :cry:
I found this error out put in the [`CPython`](https://github.com/python/cpython/blob/master/Python/ceval.c) code below (at line 6135), hoping this will help you. And that is why I submit this issue as BUG instead of DOC, since it says `due to a circular import`.
```C
static PyObject *
import_from(PyThreadState *tstate, PyObject *v, PyObject *name)
{
PyObject *x;
PyObject *fullmodname, *pkgname, *pkgpath, *pkgname_or_unknown, *errmsg;
if (_PyObject_LookupAttr(v, name, &x) != 0) {
return x;
}
/* Issue #17636: in case this failed because of a circular relative
import, try to fallback on reading the module directly from
sys.modules. */
pkgname = _PyObject_GetAttrId(v, &PyId___name__);
if (pkgname == NULL) {
goto error;
}
if (!PyUnicode_Check(pkgname)) {
Py_CLEAR(pkgname);
goto error;
}
fullmodname = PyUnicode_FromFormat("%U.%U", pkgname, name);
if (fullmodname == NULL) {
Py_DECREF(pkgname);
return NULL;
}
x = PyImport_GetModule(fullmodname);
Py_DECREF(fullmodname);
if (x == NULL && !_PyErr_Occurred(tstate)) {
goto error;
}
Py_DECREF(pkgname);
return x;
error:
pkgpath = PyModule_GetFilenameObject(v);
if (pkgname == NULL) {
pkgname_or_unknown = PyUnicode_FromString("<unknown module name>");
if (pkgname_or_unknown == NULL) {
Py_XDECREF(pkgpath);
return NULL;
}
} else {
pkgname_or_unknown = pkgname;
}
if (pkgpath == NULL || !PyUnicode_Check(pkgpath)) {
_PyErr_Clear(tstate);
errmsg = PyUnicode_FromFormat(
"cannot import name %R from %R (unknown location)",
name, pkgname_or_unknown
);
/* NULL checks for errmsg and pkgname done by PyErr_SetImportError. */
PyErr_SetImportError(errmsg, pkgname, NULL);
}
else {
_Py_IDENTIFIER(__spec__);
PyObject *spec = _PyObject_GetAttrId(v, &PyId___spec__);
const char *fmt =
_PyModuleSpec_IsInitializing(spec) ?
"cannot import name %R from partially initialized module %R "
"(most likely due to a circular import) (%S)" :
"cannot import name %R from %R (%S)";
Py_XDECREF(spec);
errmsg = PyUnicode_FromFormat(fmt, name, pkgname_or_unknown, pkgpath);
/* NULL checks for errmsg and pkgname done by PyErr_SetImportError. */
PyErr_SetImportError(errmsg, pkgname, pkgpath);
}
Py_XDECREF(errmsg);
Py_XDECREF(pkgname_or_unknown);
Py_XDECREF(pkgpath);
return 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/40415/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40415/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40416 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40416/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40416/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40416/events | https://github.com/pandas-dev/pandas/issues/40416 | 830,911,671 | MDU6SXNzdWU4MzA5MTE2NzE= | 40,416 | QST: to_sql with callable as method+ SQLAlchemy types for dtypes: is this expected behavior? | {
"avatar_url": "https://avatars.githubusercontent.com/u/8016228?v=4",
"events_url": "https://api.github.com/users/mzpqnxow/events{/privacy}",
"followers_url": "https://api.github.com/users/mzpqnxow/followers",
"following_url": "https://api.github.com/users/mzpqnxow/following{/other_user}",
"gists_url": "https://api.github.com/users/mzpqnxow/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mzpqnxow",
"id": 8016228,
"login": "mzpqnxow",
"node_id": "MDQ6VXNlcjgwMTYyMjg=",
"organizations_url": "https://api.github.com/users/mzpqnxow/orgs",
"received_events_url": "https://api.github.com/users/mzpqnxow/received_events",
"repos_url": "https://api.github.com/users/mzpqnxow/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mzpqnxow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mzpqnxow/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mzpqnxow"
} | [
{
"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 | 1 | 2021-03-13T14:33:57Z | 2021-03-13T14:51:33Z | 2021-03-13T14:51:23Z | NONE | null | - [x] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions.
- [x] I have asked my usage related question on [StackOverflow](https://stackoverflow.com).
---
#### Question about pandas
**Note**: If you'd still like to submit a question, please read [this guide](
https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your question.
```python
# Your code here, if applicable
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40416/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40416/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/40417 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40417/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40417/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40417/events | https://github.com/pandas-dev/pandas/pull/40417 | 830,928,452 | MDExOlB1bGxSZXF1ZXN0NTkyMzgzNzI4 | 40,417 | CI: flaky zip test | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "e4a5f1",
"default": false,
"description": "Local or Cloud (AWS, GCS, etc.) IO Issues",
"id": 49381477,
"name": "IO Network",
"node_id": "MDU6TGFiZWw0OTM4MTQ3Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Network"
}
] | 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-03-13T15:57:12Z | 2021-03-15T00:00:07Z | 2021-03-14T23:33:31Z | MEMBER | null | We catch the flaky byte in one place, this catches it in one more | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40417/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40417/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/40417.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/40417",
"merged_at": "2021-03-14T23:33:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/40417.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40417"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/40418 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/40418/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/40418/comments | https://api.github.com/repos/pandas-dev/pandas/issues/40418/events | https://github.com/pandas-dev/pandas/issues/40418 | 830,932,487 | MDU6SXNzdWU4MzA5MzI0ODc= | 40,418 | BUG: Series/DataFrame.rank returns empty object on failure | {
"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": "b60205",
"default": false,
"description": "Internal Consistency of API/Behavior",
"id": 1741841389,
"name": "API - Consistency",
"node_id": "MDU6TGFiZWwxNzQxODQxMzg5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency"
},
{
"color": "120491",
"default": false,
"description": "Identifying/Dropping nuisance columns in reductions, groupby.add, DataFrame.apply",
"id": 2365523662,
"name": "Nuisance Columns",
"node_id": "MDU6TGFiZWwyMzY1NTIzNjYy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Nuisance%20Columns"
}
] | open | false | null | [] | null | 4 | 2021-03-13T16:17:35Z | 2021-08-19T02:03:02Z | null | MEMBER | null | This was noticed when working on #40288
Example:
```
df = DataFrame({"A": 3 * [object]})
print(df.rank())
print(df.A.rank())
```
The last two lines are an empty DataFrame and empty Series respectively.
The docstring for numeric_only says:
> For DataFrame objects, rank only numeric columns if set to True.
The current behavior with `numeric_only=None` (the default value) is:
Try with all columns. If a TypeError is raised, try with numeric_only=True.
When numeric_only is True and the Series/DataFrame contain no numeric columns, rank then operates on an empty object returning an empty result.
This is causing issues when rank is used in transform lists and dictionaries. Namely, we'd like to have partial-failure for TypeErrors, but rank is returning an empty result instead of raising a TypeError. This could be special-cased, but it seems to me that returning an empty object (at least when numeric_only is not True) is undesirable itself.
Some options I see are:
- Remove None as being an option and replace the default numeric_only=None with numeric_only=False.
- If numeric_only is None and the fallback of selecting only numeric columns results in an empty object, raise a TypeError.
- If selecting only numeric columns results in an empty object (even when numeric_only=True), raise a TypeError.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/40418/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/40418/timeline | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.