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/40419
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40419/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40419/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40419/events
https://github.com/pandas-dev/pandas/pull/40419
830,937,703
MDExOlB1bGxSZXF1ZXN0NTkyMzkwNTEy
40,419
DOC: Update backticks missing in pandas.DataFrame.query GH40375
{ "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" }, { "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" }
1
2021-03-13T16:43:50Z
2021-03-15T05:22:19Z
2021-03-14T23:43:56Z
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 A new suggestion was made to include code styling. Beginner's question: What is the procedure when my pull request (in this case #40400) is merged, which closes an issue after which a new suggestion for further improvement is made in the closed issue. Can I just implement the new suggestion and make a new pull request like this? Or is the procedure 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/40419/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40419/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40419.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40419", "merged_at": "2021-03-14T23:43:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40419.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40419" }
https://api.github.com/repos/pandas-dev/pandas/issues/40420
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40420/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40420/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40420/events
https://github.com/pandas-dev/pandas/issues/40420
830,937,730
MDU6SXNzdWU4MzA5Mzc3MzA=
40,420
BUG: clip where the bound is a series with NA values returns NA
{ "avatar_url": "https://avatars.githubusercontent.com/u/7169207?v=4", "events_url": "https://api.github.com/users/zhangyingmath/events{/privacy}", "followers_url": "https://api.github.com/users/zhangyingmath/followers", "following_url": "https://api.github.com/users/zhangyingmath/following{/other_user}", "gists_url": "https://api.github.com/users/zhangyingmath/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zhangyingmath", "id": 7169207, "login": "zhangyingmath", "node_id": "MDQ6VXNlcjcxNjkyMDc=", "organizations_url": "https://api.github.com/users/zhangyingmath/orgs", "received_events_url": "https://api.github.com/users/zhangyingmath/received_events", "repos_url": "https://api.github.com/users/zhangyingmath/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zhangyingmath/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zhangyingmath/subscriptions", "type": "User", "url": "https://api.github.com/users/zhangyingmath" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" }, { "color": "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
{ "avatar_url": "https://avatars.githubusercontent.com/u/5946712?v=4", "events_url": "https://api.github.com/users/DriesSchaumont/events{/privacy}", "followers_url": "https://api.github.com/users/DriesSchaumont/followers", "following_url": "https://api.github.com/users/DriesSchaumont/following{/other_user}", "gists_url": "https://api.github.com/users/DriesSchaumont/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/DriesSchaumont", "id": 5946712, "login": "DriesSchaumont", "node_id": "MDQ6VXNlcjU5NDY3MTI=", "organizations_url": "https://api.github.com/users/DriesSchaumont/orgs", "received_events_url": "https://api.github.com/users/DriesSchaumont/received_events", "repos_url": "https://api.github.com/users/DriesSchaumont/repos", "site_admin": false, "starred_url": "https://api.github.com/users/DriesSchaumont/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DriesSchaumont/subscriptions", "type": "User", "url": "https://api.github.com/users/DriesSchaumont" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/5946712?v=4", "events_url": "https://api.github.com/users/DriesSchaumont/events{/privacy}", "followers_url": "https://api.github.com/users/DriesSchaumont/followers", "following_url": "https://api.github.com/users/DriesSchaumont/following{/other_user}", "gists_url": "https://api.github.com/users/DriesSchaumont/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/DriesSchaumont", "id": 5946712, "login": "DriesSchaumont", "node_id": "MDQ6VXNlcjU5NDY3MTI=", "organizations_url": "https://api.github.com/users/DriesSchaumont/orgs", "received_events_url": "https://api.github.com/users/DriesSchaumont/received_events", "repos_url": "https://api.github.com/users/DriesSchaumont/repos", "site_admin": false, "starred_url": "https://api.github.com/users/DriesSchaumont/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DriesSchaumont/subscriptions", "type": "User", "url": "https://api.github.com/users/DriesSchaumont" } ]
{ "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-13T16:43:58Z
2021-04-23T14:58:07Z
2021-04-23T14:58:07Z
NONE
null
``` In [1]: import pandas as pd In [2]: pd.__version__ Out[2]: '1.2.3' In [3]: tmp = pd.DataFrame({'f': [1,2]}) In [4]: import numpy as np In [5]: tmp['h'] = np.nan #This is the expected behaviour In [6]: tmp['f'].clip(0, np.inf) Out[6]: 0 1 1 2 Name: f, dtype: int64 # This seems wrong: In [7]: tmp['f'].clip(0, tmp['h']) Out[7]: 0 NaN 1 NaN Name: f, dtype: float64 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40420/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40420/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40421
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40421/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40421/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40421/events
https://github.com/pandas-dev/pandas/pull/40421
830,946,506
MDExOlB1bGxSZXF1ZXN0NTkyMzk2ODg1
40,421
Fix typing for extension arrays and extension dtypes without isin and astype
{ "avatar_url": "https://avatars.githubusercontent.com/u/15113894?v=4", "events_url": "https://api.github.com/users/Dr-Irv/events{/privacy}", "followers_url": "https://api.github.com/users/Dr-Irv/followers", "following_url": "https://api.github.com/users/Dr-Irv/following{/other_user}", "gists_url": "https://api.github.com/users/Dr-Irv/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Dr-Irv", "id": 15113894, "login": "Dr-Irv", "node_id": "MDQ6VXNlcjE1MTEzODk0", "organizations_url": "https://api.github.com/users/Dr-Irv/orgs", "received_events_url": "https://api.github.com/users/Dr-Irv/received_events", "repos_url": "https://api.github.com/users/Dr-Irv/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Dr-Irv/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Dr-Irv/subscriptions", "type": "User", "url": "https://api.github.com/users/Dr-Irv" }
[ { "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
8
2021-03-13T17:27:20Z
2021-05-02T00:11:14Z
2021-05-02T00:11:14Z
CONTRIBUTOR
null
Same as #39501 by removing changes related to `isin` and the overloads for `astype` and return type for `astype` Per discussion with @simonjayhawkins https://github.com/pandas-dev/pandas/pull/39501#issuecomment-798617105
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40421/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40421/timeline
null
1
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40421.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40421", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/40421.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40421" }
https://api.github.com/repos/pandas-dev/pandas/issues/40422
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40422/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40422/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40422/events
https://github.com/pandas-dev/pandas/pull/40422
830,991,901
MDExOlB1bGxSZXF1ZXN0NTkyNDIzNTQ4
40,422
ENH: Styler.to_latex(): conditional styling with native latex format
{ "avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4", "events_url": "https://api.github.com/users/attack68/events{/privacy}", "followers_url": "https://api.github.com/users/attack68/followers", "following_url": "https://api.github.com/users/attack68/following{/other_user}", "gists_url": "https://api.github.com/users/attack68/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/attack68", "id": 24256554, "login": "attack68", "node_id": "MDQ6VXNlcjI0MjU2NTU0", "organizations_url": "https://api.github.com/users/attack68/orgs", "received_events_url": "https://api.github.com/users/attack68/received_events", "repos_url": "https://api.github.com/users/attack68/repos", "site_admin": false, "starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/attack68/subscriptions", "type": "User", "url": "https://api.github.com/users/attack68" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "006b75", "default": false, "description": "to_latex", "id": 251382258, "name": "IO LaTeX", "node_id": "MDU6TGFiZWwyNTEzODIyNTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20LaTeX" }, { "color": "006b75", "default": false, "description": "conditional formatting using DataFrame.style", "id": 1728592794, "name": "Styler", "node_id": "MDU6TGFiZWwxNzI4NTkyNzk0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
13
2021-03-13T20:49:09Z
2021-05-26T20:02:47Z
2021-05-24T13:44:07Z
CONTRIBUTOR
null
## Enhancing Styler to allow LaTeX Input - [x] closes #21673 also indirectly (by providing an alternative to DataFrame.to_latex): - [x] closes #38328 (enh: adding highlighting options to to_latex function) - [x] closes #28291 (enh: add option to format \hline in to_latex) - [x] closes #26278 (easier digit format in to_latex) (although this seems to have been separately addressed) - [x] closes #26111 (to_latex adds extra empty header row when index has a name even if index=False) - [x] closes #20008 (to_latex shifts column names if MultiIndex contains empty label) - [x] closes #13203 (enhancement: add optional row/col paramater to to_latex formatter) - [x] closes #41388 (text truncates in to_latex) - [x] closes #6491 (text truncates in to_latex) - [x] closes #41636 (bug in latex formatting decimal of complex numbers) This PR leverages the conditional rendering mechanics and unit tests in `Styler` to create a pure LaTeX version, i.e. a Styler that instead of CSS (attribute, value) tuples has LaTeX (command, options) tuples and renders directly to LaTeX with nested cell An extension to this is provided in another PR which converts an HTML-CSS Styler to a LaTeX Styler, and then renders in LaTeX. ### How is this achieved? #### Internally: - [x] a new jinja2 template is created for generating `latex` output. - [x] a new `Styler._render_latex()` method is added to invoke the new template. - [x] a `Styler._translate_latex` method is added to make structural changes to the usual render dict `d` to make it suitable for latex template. - [x] parsing functions are added which do simple tasks to facilitate the jinja2 template's operation, including sparsifying multiindexes #### For Users: - [x] a new `Styler.to_latex()` method is introduced to give the user control. ## Comparison with DataFrame.to_latex() ### Input Arguments - Replicating the **io** arguments: ``buf``, ``encoding``, - Replicating the **LaTeX** arguments: ``position``, ``caption``, ``label``, ``sparsify``, ``column_format`` - Adding additional **LaTeX** arguments: ``position_float``, ``hrules`` - Removing all of the **formatting** arguments: ``na_rep``, ``formatters``, ``float_format``, ``escape``, ``decimal`` - The pattern ``styler.format(...).to_latex(...)`` fully replicates the functionality, and can be intermediately viewed in a Notebook. - The pattern ``styler.format(..)...format(..).to_latex(...)`` performs better formatting than a single ``to_latex(..)`` with formatting options could replicate. - For code maintenance it is better to only maintain the ``.format`` method rather than ``.to_latex`` as downstream. - Removing the pseudo-formatting arguments: ``columns``, ``index``, ``index_names``, ``header``, - The pattern ``styler.hide_index().hide_columns()`` can replicate the first three, the last seemed a bit unnecessary. - Modifying the multiindex args: - Now we have <s>``sparsify {bool}``</s> ``sparse_index`` and ``sparse_columns`` and ``multicol_align {str}`` and ``multirow_align {str}``. - Previously the options were ``sparsify {bool}``, ``multicolumn {bool}``, ``multirow {bool}`` and ``multicolumn_format {str}`` - Additional functionality not coded (yet?): ``bold_rows`` (maybe ``bold_labels``), and ``longtable``. ### Performance Suppose a user will never want to create a LaTeX bigger than (200,20) so we test that size: | Method | Time | |---------|------| | df.to_latex() | 151ms | | df.style.to_latex() | 43ms | | df.to_latex(float_format="{:.2f}".format) | 65ms | | <s>df.style.format(":.2f".format).to_latex()</s> | <s>61ms</s> | | df.style.format(":.2f".format).to_latex() | 45ms | (this was improved by #41269) Styler is broadly unaffected here by adding formatting methods, although `DataFrame.to_latex` is oddly much faster. Anyway the conclusion seems to be for this size frame and smaller performance is broadly the same, if not a bit better in Styler. ### Docs Here are the rendered versions of the to_latex documentation [docs_to_latex.zip](https://github.com/pandas-dev/pandas/files/6292495/docs_to_latex.zip)
{ "+1": 2, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40422/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40422/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40422.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40422", "merged_at": "2021-05-24T13:44:05Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40422.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40422" }
https://api.github.com/repos/pandas-dev/pandas/issues/40423
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40423/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40423/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40423/events
https://github.com/pandas-dev/pandas/pull/40423
831,031,584
MDExOlB1bGxSZXF1ZXN0NTkyNDQ5MDA1
40,423
TYP: fix type-ignores in core
{ "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-14T00:28:27Z
2021-03-14T16:24:11Z
2021-03-14T09:58:33Z
MEMBER
null
Also added some missing annotations I saw along the way.
{ "+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/40423/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40423/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40423.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40423", "merged_at": "2021-03-14T09:58:33Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40423.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40423" }
https://api.github.com/repos/pandas-dev/pandas/issues/40424
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40424/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40424/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40424/events
https://github.com/pandas-dev/pandas/pull/40424
831,068,427
MDExOlB1bGxSZXF1ZXN0NTkyNDc2MDE4
40,424
DEPS: sync fastparquet version
{ "avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4", "events_url": "https://api.github.com/users/fangchenli/events{/privacy}", "followers_url": "https://api.github.com/users/fangchenli/followers", "following_url": "https://api.github.com/users/fangchenli/following{/other_user}", "gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fangchenli", "id": 7614606, "login": "fangchenli", "node_id": "MDQ6VXNlcjc2MTQ2MDY=", "organizations_url": "https://api.github.com/users/fangchenli/orgs", "received_events_url": "https://api.github.com/users/fangchenli/received_events", "repos_url": "https://api.github.com/users/fangchenli/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions", "type": "User", "url": "https://api.github.com/users/fangchenli" }
[ { "color": "d93f0b", "default": false, "description": "Required and optional dependencies", "id": 527603109, "name": "Dependencies", "node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies" }, { "color": "5319e7", "default": false, "description": "parquet, feather", "id": 685114413, "name": "IO Parquet", "node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet" } ]
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-14T05:19:36Z
2021-03-18T16:40:07Z
2021-03-15T16:59:52Z
MEMBER
null
follow up #38344
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40424/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40424/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40424.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40424", "merged_at": "2021-03-15T16:59:52Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40424.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40424" }
https://api.github.com/repos/pandas-dev/pandas/issues/40425
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40425/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40425/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40425/events
https://github.com/pandas-dev/pandas/pull/40425
831,108,651
MDExOlB1bGxSZXF1ZXN0NTkyNTA3NTA2
40,425
PERF: make Styler default formatter arguments statics instead of repeated dynamic
{ "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": "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": "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-14T09:12:31Z
2021-03-15T14:27:55Z
2021-03-14T23:50:51Z
CONTRIBUTOR
null
This PR is a minor fix/improvement to a recent PR which deprecated `set_na_rep` and `set_precision`. #40134 For a dataframe with 100,000 floats the current Styler default formatter will make 100,000 `get_option` lookups for the pandas precision. Doing this calculation once prevents all these lookups and saves just over 10% render time for larger tables. ``` rows THIS PR ------ ------------------------- cols 12 120 ====== ============ ============ 12 11.8±0.2ms 40.8±0.8ms 24 22.5±0.3ms 69.2±2ms 36 32.3±0.6ms 96.9±1ms ====== ============ ============ ``` ``` rows MASTER ------ ------------------------- cols 12 120 ====== ============ ============ 12 12.9±0.4ms 43.4±1ms 24 22.3±0.1ms 75.2±0.7ms 36 32.3±0.3ms 105±0.5ms ====== ============ ============ ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40425/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40425/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40425.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40425", "merged_at": "2021-03-14T23:50:51Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40425.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40425" }
https://api.github.com/repos/pandas-dev/pandas/issues/40426
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40426/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40426/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40426/events
https://github.com/pandas-dev/pandas/pull/40426
831,120,471
MDExOlB1bGxSZXF1ZXN0NTkyNTE1OTQ3
40,426
CLN/TST: Parametrize/deduplicate test_invalid_arg
{ "avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4", "events_url": "https://api.github.com/users/rhshadrach/events{/privacy}", "followers_url": "https://api.github.com/users/rhshadrach/followers", "following_url": "https://api.github.com/users/rhshadrach/following{/other_user}", "gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rhshadrach", "id": 45562402, "login": "rhshadrach", "node_id": "MDQ6VXNlcjQ1NTYyNDAy", "organizations_url": "https://api.github.com/users/rhshadrach/orgs", "received_events_url": "https://api.github.com/users/rhshadrach/received_events", "repos_url": "https://api.github.com/users/rhshadrach/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions", "type": "User", "url": "https://api.github.com/users/rhshadrach" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" }, { "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
[]
{ "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-14T10:19:06Z
2021-03-15T02:27:55Z
2021-03-15T00:29:46Z
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 - Combined test_series_agg_nested_renamer and test_series_nested_renamer via parametrization - test_transform_nested_renamer is already a part of test_nested_renamer - test_transform_missing_columns is essentially a duplicate of test_missing_column
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40426/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40426/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40426.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40426", "merged_at": "2021-03-15T00:29:46Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40426.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40426" }
https://api.github.com/repos/pandas-dev/pandas/issues/40427
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40427/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40427/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40427/events
https://github.com/pandas-dev/pandas/issues/40427
831,130,231
MDU6SXNzdWU4MzExMzAyMzE=
40,427
"drop" fails by default when label to drop is not in the index, but "rename" silently passes by. Wouldn't it make sense to synchronize?
{ "avatar_url": "https://avatars.githubusercontent.com/u/1881098?v=4", "events_url": "https://api.github.com/users/gykovacs/events{/privacy}", "followers_url": "https://api.github.com/users/gykovacs/followers", "following_url": "https://api.github.com/users/gykovacs/following{/other_user}", "gists_url": "https://api.github.com/users/gykovacs/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gykovacs", "id": 1881098, "login": "gykovacs", "node_id": "MDQ6VXNlcjE4ODEwOTg=", "organizations_url": "https://api.github.com/users/gykovacs/orgs", "received_events_url": "https://api.github.com/users/gykovacs/received_events", "repos_url": "https://api.github.com/users/gykovacs/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gykovacs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gykovacs/subscriptions", "type": "User", "url": "https://api.github.com/users/gykovacs" }
[ { "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": "Requires discussion from core team before further action", "id": 219960758, "name": "Needs Discussion", "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion" }, { "color": "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": "e99695", "default": false, "description": "", "id": 3498152761, "name": "rename", "node_id": "LA_kwDOAA0YD87QgZM5", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/rename" } ]
open
false
null
[]
null
0
2021-03-14T11:14:17Z
2021-10-29T02:13:25Z
null
NONE
null
#### Is your feature request related to a problem? .drop and .rename have similar signatures to some extent, and implement basic dataframe functionalities. When drop is called and the label is not in the index, it fails by default (due to the errors='raise' default parameter). However, when rename is called with a label not in the specified index, it passes by silently by default. I think it would be a useful improvement to get the parameterization and default behavior of these functions aligned, possibly by enriching rename. I know it might be incompatible with previous versions if it would start failing if a label is not in the index, but I am also concerned if it is an intentional and valid usecase to rename columns which might not be present in the dataframe. #### Describe the solution you'd like rename should be extended with the same parameters as drop, possibly with the default setting of raising errors. #### API breaking implications If the raising of errors is not made default, it should not break anything. If the raising of errors is default (making it similar to drop), then those codes attempt to rename labels not present in the index would fail. Possibly it could be a 2 stage improvement, first raising a warning and in a later release raising an error. #### Describe alternatives you've considered One can do workarounds in the host code, but I don't see alternatives solutions. #### Additional context I came across this issue when working with data as part of my job. Columns which I expected at some point of the code were not there, the reason was that I did not specify the index='columns' flag in rename, which passed by silently trying to rename entries in the row index. If rename would have failed as drop would have, it would have been easier to figure out where is the issue. Then I was pondering if it is a valid use case to pass by silently if there is no label to be renamed, and decided to write this request. ```python >>> pandas.__version__ '1.3.0.dev0+1040.g454194e76a' >>> tmp= pandas.DataFrame({'a': [1, 2, 3], 'b': [3, 2, 1]}, index=['b', 'c', 'd']) >>> tmp a b b 1 3 c 2 2 d 3 1 >>> tmp.drop(['e'], axis='columns') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/pandas/pandas/core/frame.py", line 4776, in drop return super().drop( File "/home/pandas/pandas/core/generic.py", line 4211, in drop obj = obj._drop_axis(labels, axis, level=level, errors=errors) File "/home/pandas/pandas/core/generic.py", line 4246, in _drop_axis new_axis = axis.drop(labels, errors=errors) File "/home/pandas/pandas/core/indexes/base.py", line 5925, in drop raise KeyError(f"{labels[mask]} not found in axis") KeyError: "['e'] not found in axis" >>> tmp a b b 1 3 c 2 2 d 3 1 >>> tmp.rename({'e': 'g'}, axis='columns') a b b 1 3 c 2 2 d 3 1 >>> tmp a b b 1 3 c 2 2 d 3 1 >>> ``` Any comments are welcome!
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40427/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40427/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40428
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40428/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40428/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40428/events
https://github.com/pandas-dev/pandas/pull/40428
831,130,692
MDExOlB1bGxSZXF1ZXN0NTkyNTIzNTE5
40,428
CLN: Don't modify state in FrameApply.agg
{ "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": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" }, { "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
[]
{ "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-14T11:16:36Z
2021-03-15T02:27:44Z
2021-03-14T23:55:02Z
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
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40428/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40428/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40428.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40428", "merged_at": "2021-03-14T23:55:02Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40428.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40428" }
https://api.github.com/repos/pandas-dev/pandas/issues/40429
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40429/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40429/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40429/events
https://github.com/pandas-dev/pandas/issues/40429
831,135,420
MDU6SXNzdWU4MzExMzU0MjA=
40,429
DataFrame.from_records fails when the argument is Series with non-default index
{ "avatar_url": "https://avatars.githubusercontent.com/u/506547?v=4", "events_url": "https://api.github.com/users/bgbg/events{/privacy}", "followers_url": "https://api.github.com/users/bgbg/followers", "following_url": "https://api.github.com/users/bgbg/following{/other_user}", "gists_url": "https://api.github.com/users/bgbg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bgbg", "id": 506547, "login": "bgbg", "node_id": "MDQ6VXNlcjUwNjU0Nw==", "organizations_url": "https://api.github.com/users/bgbg/orgs", "received_events_url": "https://api.github.com/users/bgbg/received_events", "repos_url": "https://api.github.com/users/bgbg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bgbg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bgbg/subscriptions", "type": "User", "url": "https://api.github.com/users/bgbg" }
[ { "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": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" }, { "color": "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" } ]
open
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": 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" }
5
2021-03-14T11:42:24Z
2021-08-19T02:04:26Z
null
NONE
null
Summary: if `from_records` is called upon a `Series` with index that doesn't start with `0`, it fails. ```python import pandas as pd print(f'Pandas version is {pd.__version__}') data = pd.Series([{'a': 1, 'b': 2}, {'a': 11, 'b': 22}], index=[10, 20]) pd.DataFrame.from_records(data.values) # works pd.DataFrame.from_records(data) # fails ``` Output ```text Pandas version is 1.2.1 Traceback (most recent call last): File "/Users/boris/opt/anaconda3/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3080, in get_loc return self._engine.get_loc(casted_key) File "pandas/_libs/index.pyx", line 70, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index.pyx", line 101, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 1625, in pandas._libs.hashtable.Int64HashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 1632, in pandas._libs.hashtable.Int64HashTable.get_item KeyError: 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/40429/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40429/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40430
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40430/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40430/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40430/events
https://github.com/pandas-dev/pandas/pull/40430
831,168,349
MDExOlB1bGxSZXF1ZXN0NTkyNTUxNjMz
40,430
DEPR: **kwargs in ExcelWriter
{ "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": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" }, { "color": "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" }, { "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" } ]
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-14T14:17:50Z
2021-03-17T23:35:16Z
2021-03-17T21:17:56Z
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 - [x] whatsnew entry Currently ExcelWriter has **engine_kwargs to pass through to the engine, [although this is undocumented](https://pandas.pydata.org/pandas-docs/dev/reference/api/pandas.ExcelWriter.html). All other places in pandas where engine_kwargs is used, they are a regular argument. This PR - Renames **engine_kwargs to **kwargs (not an API change) - Adds **kwargs to the docstring of ExcelWriter - Deprecates **kwargs - Introduces engine_kwargs as a regular argument for their replacement
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40430/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40430/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40430.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40430", "merged_at": "2021-03-17T21:17:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40430.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40430" }
https://api.github.com/repos/pandas-dev/pandas/issues/40431
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40431/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40431/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40431/events
https://github.com/pandas-dev/pandas/pull/40431
831,189,457
MDExOlB1bGxSZXF1ZXN0NTkyNTY3Mjg0
40,431
CLN: remove unused file opening and mmap code from parsers.pyx
{ "avatar_url": "https://avatars.githubusercontent.com/u/6618166?v=4", "events_url": "https://api.github.com/users/twoertwein/events{/privacy}", "followers_url": "https://api.github.com/users/twoertwein/followers", "following_url": "https://api.github.com/users/twoertwein/following{/other_user}", "gists_url": "https://api.github.com/users/twoertwein/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/twoertwein", "id": 6618166, "login": "twoertwein", "node_id": "MDQ6VXNlcjY2MTgxNjY=", "organizations_url": "https://api.github.com/users/twoertwein/orgs", "received_events_url": "https://api.github.com/users/twoertwein/received_events", "repos_url": "https://api.github.com/users/twoertwein/repos", "site_admin": false, "starred_url": "https://api.github.com/users/twoertwein/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/twoertwein/subscriptions", "type": "User", "url": "https://api.github.com/users/twoertwein" }
[ { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" }, { "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" }
3
2021-03-14T15:50:33Z
2021-03-15T01:08:54Z
2021-03-15T01:08:49Z
CONTRIBUTOR
null
The removed code has never been used since #36997. `TextReader` is only ever called with file handles.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40431/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40431/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40431.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40431", "merged_at": "2021-03-15T01:08:49Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40431.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40431" }
https://api.github.com/repos/pandas-dev/pandas/issues/40432
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40432/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40432/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40432/events
https://github.com/pandas-dev/pandas/issues/40432
831,212,622
MDU6SXNzdWU4MzEyMTI2MjI=
40,432
ENH: Add an option to json_normalize() to protect nested object(s) against flattening
{ "avatar_url": "https://avatars.githubusercontent.com/u/19967599?v=4", "events_url": "https://api.github.com/users/swiss-knight/events{/privacy}", "followers_url": "https://api.github.com/users/swiss-knight/followers", "following_url": "https://api.github.com/users/swiss-knight/following{/other_user}", "gists_url": "https://api.github.com/users/swiss-knight/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/swiss-knight", "id": 19967599, "login": "swiss-knight", "node_id": "MDQ6VXNlcjE5OTY3NTk5", "organizations_url": "https://api.github.com/users/swiss-knight/orgs", "received_events_url": "https://api.github.com/users/swiss-knight/received_events", "repos_url": "https://api.github.com/users/swiss-knight/repos", "site_admin": false, "starred_url": "https://api.github.com/users/swiss-knight/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/swiss-knight/subscriptions", "type": "User", "url": "https://api.github.com/users/swiss-knight" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" }, { "color": "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-14T17:32:03Z
2021-08-19T02:04:56Z
null
NONE
null
#### Is your feature request related to a problem? Not really. I simply wish I could use pandas to [protect](https://stackoverflow.com/questions/66611187/protect-a-nested-object-against-flattening-when-using-pandas-json-normalize) a nested structure / object / dict against flattening when using [pd.json_normalize()](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.json_normalize.html) on a JSON object, for example an API response. #### Describe the solution you'd like Something like this (see below for a complete example): ```python df = pd.DataFrame(pd.json_normalize(data, protect="foo.bar.baz")) # or this, if there isn't more than 1 object with the same name # (or even if there are more than one object with the same name, it should apply to all of them) : df = pd.DataFrame(pd.json_normalize(data, protect="baz")) ``` #### API breaking implications I have no detailed idea what this could/would break. #### Describe alternatives you've considered My current workaround is to duplicate the DataFrame; building one without normalizing, the other with. Keeping only the protected column(s) of the one which hasn't been normalized and concatenating them to the other. Remove redundant columns on the final DataFrame. #### Additional context Here's a dummy example: ```python import pandas as pd response = ''' { "results": [ { "geometry": { "type": "Polygon", "crs": 4326, "coordinates": [[ [6.0, 49.0], [6.0, 40.0], [7.0, 40.0], [7.0, 49.0], [6.0, 49.0] ]] }, "attribute": "layer.metadata", "bbox": [6, 40, 7, 49], "featureName": "Coniferous_Trees", "layerName": "State_Forests", "type": "Feature", "id": "17", "properties": { "resolution": "100", "Year": "2020", "label": "Coniferous" } } ] } ''' data = json.loads(response)['results'] df = pd.DataFrame(pd.json_normalize(data)) ``` Then: ```python >>> print(df.columns) Index(['attribute', 'bbox', 'featureName', 'layerName', 'type', 'id', 'geometry.type', 'geometry.crs', 'geometry.coordinates', # <-- the geometry has been flattened along all the other objects 'properties.resolution', 'properties.Year', 'properties.label'], dtype='object') ``` Desired behaviour: ```python df = pd.DataFrame(pd.json_normalize(data, protect="results.geometry")) ``` which would lead to: ``` >>> print(df.columns) Index(['attribute', 'bbox', 'featureName', 'layerName', 'type', 'id', 'geometry', # <-- the geometry element has been protected, it stays as a nested JSON structure in its own column in the DataFrame. 'properties.resolution', 'properties.Year', 'properties.label'], dtype='object') ``` Thanks for reading.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40432/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40432/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40433
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40433/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40433/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40433/events
https://github.com/pandas-dev/pandas/pull/40433
831,222,716
MDExOlB1bGxSZXF1ZXN0NTkyNTkxNDMx
40,433
TYP: stubs for tslibs
{ "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-14T18:17:06Z
2021-03-16T14:26:50Z
2021-03-16T13:18:21Z
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/40433/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40433/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40433.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40433", "merged_at": "2021-03-16T13:18:21Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40433.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40433" }
https://api.github.com/repos/pandas-dev/pandas/issues/40434
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40434/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40434/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40434/events
https://github.com/pandas-dev/pandas/pull/40434
831,244,309
MDExOlB1bGxSZXF1ZXN0NTkyNjA2OTg2
40,434
TYP: fix type ignores
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
0
2021-03-14T19:56:05Z
2021-03-15T14:13:35Z
2021-03-15T11:35:46Z
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/40434/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40434/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40434.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40434", "merged_at": "2021-03-15T11:35:46Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40434.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40434" }
https://api.github.com/repos/pandas-dev/pandas/issues/40435
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40435/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40435/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40435/events
https://github.com/pandas-dev/pandas/issues/40435
831,265,441
MDU6SXNzdWU4MzEyNjU0NDE=
40,435
BUG: append/concat for dataframes with DatetimeIndex having same timezone value but different tz classes results in change of Index type to generic Index (in place of DatetimeIndex)
{ "avatar_url": "https://avatars.githubusercontent.com/u/12374280?v=4", "events_url": "https://api.github.com/users/avnishbm/events{/privacy}", "followers_url": "https://api.github.com/users/avnishbm/followers", "following_url": "https://api.github.com/users/avnishbm/following{/other_user}", "gists_url": "https://api.github.com/users/avnishbm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/avnishbm", "id": 12374280, "login": "avnishbm", "node_id": "MDQ6VXNlcjEyMzc0Mjgw", "organizations_url": "https://api.github.com/users/avnishbm/orgs", "received_events_url": "https://api.github.com/users/avnishbm/received_events", "repos_url": "https://api.github.com/users/avnishbm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/avnishbm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/avnishbm/subscriptions", "type": "User", "url": "https://api.github.com/users/avnishbm" }
[ { "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-14T21:30:51Z
2021-08-19T02:32:33Z
2021-08-19T02:32:32Z
NONE
null
- [ Y] I have checked that this issue has not already been reported. - [Y ] I have confirmed this bug exists on the latest version of pandas. - [ Y] (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 from datetime import datetime, timedelta import dateutil import psycopg2 #### Same time zone but using different tz classes though with same offset IST_tz_offset = dateutil.tz.tz.tzoffset(None, 19800) # offset in seconds, 19800s equals 330 mins IST_tz_postgres_offset = psycopg2.tz.FixedOffsetTimezone(offset=330, name=None) # it is in mins # create list of lists data1 = [[pd.Timestamp('2021-03-14 06:00:00', tz = IST_tz_offset), 15], [pd.Timestamp('2021-03-14 06:00:00', tz = IST_tz_offset) - timedelta(hours=1), 14], [pd.Timestamp('2021-03-14 06:00:00', tz = IST_tz_offset) - timedelta(hours=2), 12]] # Create the pandas DataFrame df1 = pd.DataFrame(data1, columns = ['datetime', 'value']) df1.set_index('datetime', inplace = True) # initialize list of lists data2 = [[pd.Timestamp('2021-03-14 06:00:00', tz = IST_tz_postgres_offset) - timedelta(days=1), 10], [pd.Timestamp('2021-03-14 06:00:00', tz = IST_tz_postgres_offset) - timedelta(days = 1, hours=1), 9], [pd.Timestamp('2021-03-14 06:00:00', tz = IST_tz_postgres_offset) - timedelta(days = 1, hours=2), 8]] # Create the pandas DataFrame df2 = pd.DataFrame(data2, columns = ['datetime', 'value']) df2.set_index('datetime', inplace = True) print ("Same timezones but different tz classes: df1.index[0] = {}, df2.index[0] = {}".format(df1.index[0], df2.index[0])) print ("Same timezones but different tz classes: type(df1.index) = {}, type(df2.index) = {}".format(type(df1.index), type(df2.index))) appended_df = df2.append(df1) concatenated_df = pd.concat([df2, df1]) print ("Same timezones but different tz classes: type(appended_df.index) = {}, type(concatenated_df.index) = {}\n".format(type(appended_df.index), type(concatenated_df.index))) ``` #### Problem description Have hit this issue when trying to append/concat dataframes with DatetimeIndex index types, where the data comes from different sources i.e. in this case, from postgres db and a data providers, and though the data has the same timezone (Asia/Kolkata), as can be seen from sample data printed in code, post append/concat the index type gets converted to "Index" in place of DatetimeIndex. This further caused an issue at our end, for things like resample() which in turn required DatetimeIndex type. The only different in the Timestamp data that we found was that their tz datatype was different even though both had the same offset value (19800 seconds or 330 mins, both being equal). Sample data when printed: Same timezones but different tz classes: df1.index[0] = 2021-03-14 06:00:00+05:30, df2.index[0] = 2021-03-13 06:00:00+05:30 #### Expected Output In this case, since the timezone was essentially the same for the data, would have expected that the datatype for the index should not have changed after append or concat. It should have remained as DatetimeIndex type. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 7d32926db8f7541c356066dcadabf854487738de python : 3.8.2.final.0 python-bits : 64 OS : Darwin OS-release : 20.3.0 Version : Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : en_GB.UTF-8 LOCALE : en_GB.UTF-8 pandas : 1.2.2 numpy : 1.20.1 pytz : 2021.1 dateutil : 2.8.1 pip : 21.0.1 setuptools : 41.2.0 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 : None IPython : None pandas_datareader: None bs4 : 4.9.3 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 : 1.3.23 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/40435/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40435/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40436
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40436/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40436/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40436/events
https://github.com/pandas-dev/pandas/issues/40436
831,279,285
MDU6SXNzdWU4MzEyNzkyODU=
40,436
BUG: DataFrame.query doesn't support equals or not equals for string columns with python parser
{ "avatar_url": "https://avatars.githubusercontent.com/u/703554?v=4", "events_url": "https://api.github.com/users/alimanfoo/events{/privacy}", "followers_url": "https://api.github.com/users/alimanfoo/followers", "following_url": "https://api.github.com/users/alimanfoo/following{/other_user}", "gists_url": "https://api.github.com/users/alimanfoo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alimanfoo", "id": 703554, "login": "alimanfoo", "node_id": "MDQ6VXNlcjcwMzU1NA==", "organizations_url": "https://api.github.com/users/alimanfoo/orgs", "received_events_url": "https://api.github.com/users/alimanfoo/received_events", "repos_url": "https://api.github.com/users/alimanfoo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alimanfoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alimanfoo/subscriptions", "type": "User", "url": "https://api.github.com/users/alimanfoo" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "f3afff", "default": false, "description": "pd.eval, query", "id": 1631985267, "name": "expressions", "node_id": "MDU6TGFiZWwxNjMxOTg1MjY3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/expressions" } ]
open
false
null
[]
{ "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" }
0
2021-03-14T22:37:57Z
2021-03-30T16:06:08Z
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. --- #### Code Sample, a copy-pastable example ```python In [3]: import pandas as pd In [4]: pd.__version__ Out[4]: '1.2.3' In [5]: import numpy as np In [7]: x = np.random.choice(["foo", "bar", "baz"], size=10, replace=True) In [8]: df = pd.DataFrame({"x": x}) In [9]: df Out[9]: x 0 bar 1 baz 2 foo 3 baz 4 bar 5 baz 6 baz 7 bar 8 foo 9 foo In [10]: df.query("x == 'bar'") Out[10]: x 0 bar 4 bar 7 bar In [11]: df.query("x == 'bar'", parser="python") --------------------------------------------------------------------------- NotImplementedError Traceback (most recent call last) ... ~/malariagen/binder/conda/envs/xarray-tests/lib/python3.8/site-packages/pandas/core/computation/expr.py in f(self, *args, **kwargs) 251 252 def f(self, *args, **kwargs): --> 253 raise NotImplementedError(f"'{node_name}' nodes are not implemented") 254 255 return f NotImplementedError: 'In' nodes are not implemented In [12]: df.query("x != 'foo'") Out[12]: x 0 bar 1 baz 3 baz 4 bar 5 baz 6 baz 7 bar In [13]: df.query("x != 'foo'", parser="python") --------------------------------------------------------------------------- NotImplementedError Traceback (most recent call last) ... ~/malariagen/binder/conda/envs/xarray-tests/lib/python3.8/site-packages/pandas/core/computation/expr.py in f(self, *args, **kwargs) 251 252 def f(self, *args, **kwargs): --> 253 raise NotImplementedError(f"'{node_name}' nodes are not implemented") 254 255 return f NotImplementedError: 'NotIn' nodes are not implemented ``` #### Problem description If the query expression has an equals or not equals comparison with a string, and the "python" parser is selected, then a `NotImplemented` error is raised. The error messages however reports that "In" nodes are not implemented, or "NotIn" nodes are not implemented, which doesn't fit with the expression, suggesting a bug in how the query expression is being parsed. #### Expected Output Expected output should match what you get with the "pandas" parser as semantics for this type of query expression should be the same for either parser. #### 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-66-generic Version : #74~18.04.2-Ubuntu SMP Fri Feb 5 11:17:31 UTC 2021 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_GB.UTF-8 LOCALE : en_GB.UTF-8 pandas : 1.2.3 numpy : 1.20.1 pytz : 2021.1 dateutil : 2.8.1 pip : 20.2.4 setuptools : 49.6.0.post20210108 Cython : None pytest : 6.2.2 hypothesis : 6.8.0 sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 4.6.2 html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.3 IPython : 7.21.0 pandas_datareader: None bs4 : 4.9.3 bottleneck : 1.3.2 fsspec : 0.8.7 fastparquet : None gcsfs : None matplotlib : 3.3.4 numexpr : 2.7.3 odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pyxlsb : None s3fs : None scipy : 1.6.0 sqlalchemy : None tables : None tabulate : None xarray : 0.17.1.dev3+g48378c4b xlrd : None 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/40436/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40436/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40437
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40437/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40437/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40437/events
https://github.com/pandas-dev/pandas/pull/40437
831,280,243
MDExOlB1bGxSZXF1ZXN0NTkyNjMzNjYy
40,437
ENH: `escape` html argument in Styler.format
{ "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": "006b75", "default": false, "description": "conditional formatting using DataFrame.style", "id": 1728592794, "name": "Styler", "node_id": "MDU6TGFiZWwxNzI4NTkyNzk0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
5
2021-03-14T22:42:47Z
2021-03-23T17:32:29Z
2021-03-23T17:03:14Z
CONTRIBUTOR
null
- [x] closes #40388 Adds an HTML `escape` parameter to `Styler.format`, which acts to escape the data value **before** it is passed to a formatter. For example, `Styler.format('<a href="a.com/{0}">{0}</a>', escape=True)` will not escape the HTML as part of the formatting function, it will only escape the value `{0}` going into the formatter.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40437/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40437/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40437.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40437", "merged_at": "2021-03-23T17:03:14Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40437.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40437" }
https://api.github.com/repos/pandas-dev/pandas/issues/40438
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40438/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40438/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40438/events
https://github.com/pandas-dev/pandas/pull/40438
831,388,262
MDExOlB1bGxSZXF1ZXN0NTkyNzE0MTI1
40,438
DOC: Minor formatting in user_guide/window
{ "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-15T04:09:18Z
2021-03-15T17:23:03Z
2021-03-15T07:44:12Z
MEMBER
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40438/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40438/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40438.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40438", "merged_at": "2021-03-15T07:44:12Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40438.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40438" }
https://api.github.com/repos/pandas-dev/pandas/issues/40439
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40439/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40439/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40439/events
https://github.com/pandas-dev/pandas/pull/40439
831,507,573
MDExOlB1bGxSZXF1ZXN0NTkyODE4MTA1
40,439
⬆️ UPGRADE: Autoupdate pre-commit config
{ "avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4", "events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}", "followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers", "following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}", "gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/apps/github-actions", "id": 41898282, "login": "github-actions[bot]", "node_id": "MDM6Qm90NDE4OTgyODI=", "organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs", "received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events", "repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos", "site_admin": false, "starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions", "type": "Bot", "url": "https://api.github.com/users/github-actions%5Bbot%5D" }
[ { "color": "eb6420", "default": false, "description": "Code style, linting, code_checks", "id": 106935113, "name": "Code Style", "node_id": "MDU6TGFiZWwxMDY5MzUxMTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
3
2021-03-15T07:24:18Z
2021-03-16T14:28:45Z
2021-03-15T08:36:28Z
CONTRIBUTOR
null
<!-- START pr-commits --> <!-- END pr-commits --> ## Base PullRequest default branch (https://github.com/pandas-dev/pandas/tree/master) ## Command results <details> <summary>Details: </summary> <details> <summary><em>add path</em></summary> ```Shell /home/runner/work/_actions/technote-space/create-pr-action/v2/node_modules/npm-check-updates/bin ``` </details> <details> <summary><em>pip install pre-commit</em></summary> ```Shell Collecting pre-commit Downloading pre_commit-2.11.1-py2.py3-none-any.whl (187 kB) Collecting identify>=1.0.0 Downloading identify-2.1.3-py2.py3-none-any.whl (98 kB) Collecting toml Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB) Collecting pyyaml>=5.1 Downloading PyYAML-5.4.1-cp39-cp39-manylinux1_x86_64.whl (630 kB) Collecting cfgv>=2.0.0 Using cached cfgv-3.2.0-py2.py3-none-any.whl (7.3 kB) Collecting nodeenv>=0.11.1 Using cached nodeenv-1.5.0-py2.py3-none-any.whl (21 kB) Collecting virtualenv>=20.0.8 Downloading virtualenv-20.4.2-py2.py3-none-any.whl (7.2 MB) Collecting distlib<1,>=0.3.1 Using cached distlib-0.3.1-py2.py3-none-any.whl (335 kB) Collecting six<2,>=1.9.0 Using cached six-1.15.0-py2.py3-none-any.whl (10 kB) Collecting filelock<4,>=3.0.0 Using cached filelock-3.0.12-py3-none-any.whl (7.6 kB) Collecting appdirs<2,>=1.4.3 Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB) Installing collected packages: six, filelock, distlib, appdirs, virtualenv, toml, pyyaml, nodeenv, identify, cfgv, pre-commit Successfully installed appdirs-1.4.4 cfgv-3.2.0 distlib-0.3.1 filelock-3.0.12 identify-2.1.3 nodeenv-1.5.0 pre-commit-2.11.1 pyyaml-5.4.1 six-1.15.0 toml-0.10.2 virtualenv-20.4.2 ``` </details> <details> <summary><em>pre-commit autoupdate || (exit 0);</em></summary> ```Shell Updating https://github.com/MarcoGorelli/absolufy-imports ... [INFO] Initializing environment for https://github.com/MarcoGorelli/absolufy-imports. updating v0.2.2 -> v0.3.0. Updating https://github.com/python/black ... already up to date. Updating https://github.com/codespell-project/codespell ... [INFO] Initializing environment for https://github.com/codespell-project/codespell. already up to date. Updating https://github.com/pre-commit/pre-commit-hooks ... [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. already up to date. Updating https://github.com/cpplint/cpplint ... [INFO] Initializing environment for https://github.com/cpplint/cpplint. =====> /home/runner/.cache/pre-commit/repoj060n6sd/.pre-commit-hooks.yaml does not exist Updating https://gitlab.com/pycqa/flake8 ... [INFO] Initializing environment for https://gitlab.com/pycqa/flake8. updating 3.8.4 -> 3.9.0. Updating https://github.com/PyCQA/isort ... [INFO] Initializing environment for https://github.com/PyCQA/isort. already up to date. Updating https://github.com/MarcoGorelli/no-string-hints ... [INFO] Initializing environment for https://github.com/MarcoGorelli/no-string-hints. Cannot update because the update target is missing these hooks: no-string-hints Updating https://github.com/asottile/pyupgrade ... [INFO] Initializing environment for https://github.com/asottile/pyupgrade. already up to date. Updating https://github.com/pre-commit/pygrep-hooks ... [INFO] Initializing environment for https://github.com/pre-commit/pygrep-hooks. already up to date. Updating https://github.com/asottile/yesqa ... already up to date. ``` </details> <details> <summary><em>pre-commit run -a || (exit 0);</em></summary> ```Shell [INFO] Initializing environment for https://github.com/cpplint/cpplint. [INFO] Initializing environment for https://gitlab.com/pycqa/flake8:flake8-comprehensions>=3.1.0. [INFO] Initializing environment for https://github.com/MarcoGorelli/no-string-hints. [INFO] Installing environment for https://github.com/MarcoGorelli/absolufy-imports. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/python/black. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/codespell-project/codespell. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/cpplint/cpplint. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://gitlab.com/pycqa/flake8. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://gitlab.com/pycqa/flake8. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/PyCQA/isort. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/MarcoGorelli/no-string-hints. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/asottile/pyupgrade. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/asottile/yesqa. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for local. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for local. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for local. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... absolufy-imports.......................................................................................Passed black..................................................................................................Passed codespell..............................................................................................Passed Fix End of Files.......................................................................................Passed Trim Trailing Whitespace...............................................................................Passed cpplint................................................................................................Passed flake8.................................................................................................Passed flake8 (cython)........................................................................................Passed flake8 (cython template)...............................................................................Passed isort..................................................................................................Passed no-string-hints........................................................................................Passed pyupgrade..............................................................................................Passed rst ``code`` is two backticks..........................................................................Passed rst directives end with two colons.....................................................................Passed rst ``inline code`` next to normal text................................................................Passed Strip unnecessary `# noqa`s............................................................................Failed - hook id: yesqa - exit code: 1 - files were modified by this hook Rewriting pandas/_typing.py flake8-rst.............................................................................................Passed Check for use of Union[Series, DataFrame] instead of FrameOrSeriesUnion alias..........................Passed Check for inconsistent use of pandas namespace in tests................................................Passed Check for incorrect code block or IPython directives...................................................Passed Check code for instances of os.remove..................................................................Passed Check code for instances of pd.api.types...............................................................Passed Check for non-standard imports.........................................................................Passed Check for non-standard imports in test suite...........................................................Passed Check for non-standard numpy.random-related imports excluding pandas/_testing.py.......................Passed Check for use of np.bool instead of np.bool_...........................................................Passed Check for use of np.object instead of np.object_.......................................................Passed Generate pip dependency from conda.....................................................................Passed Validate correct capitalization among titles in documentation..........................................Passed Check for use of foo.__class__ instead of type(foo)....................................................Passed Check for use of bare pytest raises....................................................................Passed Check for use of private functions across modules......................................................Passed Check for import of private attributes across modules..................................................Passed Check for use of pytest.xfail..........................................................................Passed Check for use of not concatenated strings..............................................................Passed Check for strings with wrong placed spaces.............................................................Passed Check for outdated annotation syntax and missing error codes...........................................Passed ``` </details> </details> ## Changed files <details> <summary>Changed 2 files: </summary> - .pre-commit-config.yaml - pandas/_typing.py </details> <hr> [:octocat: Repo](https://github.com/technote-space/create-pr-action) | [:memo: Issues](https://github.com/technote-space/create-pr-action/issues) | [:department_store: Marketplace](https://github.com/marketplace/actions/create-pr-action)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40439/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40439/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40439.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40439", "merged_at": "2021-03-15T08:36:28Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40439.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40439" }
https://api.github.com/repos/pandas-dev/pandas/issues/40440
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40440/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40440/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40440/events
https://github.com/pandas-dev/pandas/issues/40440
831,560,477
MDU6SXNzdWU4MzE1NjA0Nzc=
40,440
BUG: Unexpected behavior of setting item to DataFrame slice
{ "avatar_url": "https://avatars.githubusercontent.com/u/72493072?v=4", "events_url": "https://api.github.com/users/joannasendorek/events{/privacy}", "followers_url": "https://api.github.com/users/joannasendorek/followers", "following_url": "https://api.github.com/users/joannasendorek/following{/other_user}", "gists_url": "https://api.github.com/users/joannasendorek/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/joannasendorek", "id": 72493072, "login": "joannasendorek", "node_id": "MDQ6VXNlcjcyNDkzMDcy", "organizations_url": "https://api.github.com/users/joannasendorek/orgs", "received_events_url": "https://api.github.com/users/joannasendorek/received_events", "repos_url": "https://api.github.com/users/joannasendorek/repos", "site_admin": false, "starred_url": "https://api.github.com/users/joannasendorek/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/joannasendorek/subscriptions", "type": "User", "url": "https://api.github.com/users/joannasendorek" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
{ "closed_at": "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-15T08:30:16Z
2021-05-02T23:47:54Z
2021-05-02T23:47:54Z
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(data={'col1': [1, 2], 'col2': [3, 4], 'col3': [6, 7]}) df[1:] = [1, 2, 3] ``` #### Problem description I get the `ValueError: cannot set using a slice indexer with a different length than the value`, when running the above code snippet. However, when running the following one, the error doesn't appear: ```python df = pd.DataFrame(data={'col1': [1, 2], 'col2': [3, 4], 'col3': [6, 7]}) df[1:] = ['a', 'b', 'c'] df[1:] = [1, 2, 3] ``` Looks like assigning value to slice have different behavior depending on type on the value, which doesn't seem to be intended and is not documented. Another example is: ```python df = pd.DataFrame(data={'col1': [1, 2], 'col2': [3, 4], 'e': [6, 7]}) df[1:] = ['a', 'b', 'c'] df[pd.DataFrame({'col1': [True, True], 'col2': [False, True]})] = [2, 3, 4] ``` raises `ValueError: cannot assign mismatch length to masked array` for line 3, but this code doesn't: ```python df = pd.DataFrame(data={'col1': [1, 2], 'col2': [3, 4], 'e': [6, 7]}) df[pd.DataFrame({'col1': [True, True], 'col2': [False, True]})] = [2, 3, 4] ``` #### Expected Output Exceptions thrown should be the same regardless of the previous calls on the given data frame. If assigning value of array of strings have some special meaning, it should be documented. String array assignment shouldn't change behavior of succeeding calls. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : f2c8480af2f25efdbd803218b9d87980f416563e python : 3.8.6.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 : None LOCALE : pl_PL.UTF-8 pandas : 1.2.3 numpy : 1.20.1 pytz : 2021.1 dateutil : 2.8.1 pip : 20.2.3 setuptools : 50.3.0 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : None pandas_datareader: None bs4 : None bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40440/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40440/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40441
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40441/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40441/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40441/events
https://github.com/pandas-dev/pandas/pull/40441
831,615,383
MDExOlB1bGxSZXF1ZXN0NTkyOTA5NzIz
40,441
[ArrayManager] DataFrame constructor from 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": "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" }, { "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-15T09:30:56Z
2021-04-26T17:42:54Z
2021-04-26T09:34:19Z
MEMBER
null
xref https://github.com/pandas-dev/pandas/issues/39146 Currently, the `DataFrame(ndarray)` construction for ArrayManager still went through BlockManager and then `mgr_to_mgr` conversion, which is less efficient. This PR adds a check in `ndarray_to_mgr` for directly creating an ArrayManager. ~It's still WIP, because there are still some validation steps that are now done inside BlockManager/Block inits, that need to be factored out / shared / added to ArrayManager path.~
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40441/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40441/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40441.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40441", "merged_at": "2021-04-26T09:34:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40441.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40441" }
https://api.github.com/repos/pandas-dev/pandas/issues/40442
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40442/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40442/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40442/events
https://github.com/pandas-dev/pandas/issues/40442
831,649,847
MDU6SXNzdWU4MzE2NDk4NDc=
40,442
BUG: read_excel fails with multirow headers if headers are followed by two empty rows
{ "avatar_url": "https://avatars.githubusercontent.com/u/11005235?v=4", "events_url": "https://api.github.com/users/neutronleak/events{/privacy}", "followers_url": "https://api.github.com/users/neutronleak/followers", "following_url": "https://api.github.com/users/neutronleak/following{/other_user}", "gists_url": "https://api.github.com/users/neutronleak/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/neutronleak", "id": 11005235, "login": "neutronleak", "node_id": "MDQ6VXNlcjExMDA1MjM1", "organizations_url": "https://api.github.com/users/neutronleak/orgs", "received_events_url": "https://api.github.com/users/neutronleak/received_events", "repos_url": "https://api.github.com/users/neutronleak/repos", "site_admin": false, "starred_url": "https://api.github.com/users/neutronleak/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/neutronleak/subscriptions", "type": "User", "url": "https://api.github.com/users/neutronleak" }
[ { "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": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/50434302?v=4", "events_url": "https://api.github.com/users/ahawryluk/events{/privacy}", "followers_url": "https://api.github.com/users/ahawryluk/followers", "following_url": "https://api.github.com/users/ahawryluk/following{/other_user}", "gists_url": "https://api.github.com/users/ahawryluk/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ahawryluk", "id": 50434302, "login": "ahawryluk", "node_id": "MDQ6VXNlcjUwNDM0MzAy", "organizations_url": "https://api.github.com/users/ahawryluk/orgs", "received_events_url": "https://api.github.com/users/ahawryluk/received_events", "repos_url": "https://api.github.com/users/ahawryluk/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ahawryluk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ahawryluk/subscriptions", "type": "User", "url": "https://api.github.com/users/ahawryluk" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/50434302?v=4", "events_url": "https://api.github.com/users/ahawryluk/events{/privacy}", "followers_url": "https://api.github.com/users/ahawryluk/followers", "following_url": "https://api.github.com/users/ahawryluk/following{/other_user}", "gists_url": "https://api.github.com/users/ahawryluk/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ahawryluk", "id": 50434302, "login": "ahawryluk", "node_id": "MDQ6VXNlcjUwNDM0MzAy", "organizations_url": "https://api.github.com/users/ahawryluk/orgs", "received_events_url": "https://api.github.com/users/ahawryluk/received_events", "repos_url": "https://api.github.com/users/ahawryluk/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ahawryluk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ahawryluk/subscriptions", "type": "User", "url": "https://api.github.com/users/ahawryluk" } ]
{ "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-15T10:08:55Z
2021-04-23T00:07:08Z
2021-04-23T00:07:08Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **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 excel_file = Path("test_excel_file.xlsx") table = pd.read_excel(excel_file, 'Taul1', header=[0, 1]) ``` #### Problem description Given table | A column | B column | C column | |-|-|-| | **part 1** | **part 2** | **part 3** | | [empty] | [empty] | [empty] | | [empty] | [empty] | [empty] | | Row 1 Col A | Row 1 Col B | Row 1 Col C | | Row 2 Col A | Row 2 Col B | Row 2 Col C | pd.read_excel with the new openpyxl-backend fails with exception Traceback (most recent call last): File "pandas_openpyxl_bug\test_pandas_openpyxl.py", line 12, in <module> table = pd.read_excel(excel_file, 'Taul1', header=[0, 1]) File ".virtualenvs\pandas_openpyxl_bug-3rzOJb6e\lib\site-packages\pandas\util\_decorators.py", line 299, in wrapper return func(*args, **kwargs) File "virtualenvs\pandas_openpyxl_bug-3rzOJb6e\lib\site-packages\pandas\io\excel\_base.py", line 344, in read_excel data = io.parse( File ".virtualenvs\pandas_openpyxl_bug-3rzOJb6e\lib\site-packages\pandas\io\excel\_base.py", line 1170, in parse return self._reader.parse( File ".virtualenvs\pandas_openpyxl_bug-3rzOJb6e\lib\site-packages\pandas\io\excel\_base.py", line 566, in parse output[asheetname] = parser.read(nrows=nrows) File ".virtualenvs\pandas_openpyxl_bug-3rzOJb6e\lib\site-packages\pandas\io\parsers.py", line 1057, in read index, columns, col_dict = self._engine.read(nrows) File ".virtualenvs\pandas_openpyxl_bug-3rzOJb6e\lib\site-packages\pandas\io\parsers.py", line 2503, in read index, columns = self._make_index(data, alldata, columns, indexnamerow) File ".virtualenvs\pandas_openpyxl_bug-3rzOJb6e\lib\site-packages\pandas\io\parsers.py", line 1566, in _make_index index = index.set_names(indexnamerow[:coffset]) # type: ignore[union-attr] AttributeError: 'NoneType' object has no attribute 'set_names' #### Expected Output A dataframe without a crash #### Output of ``pd.show_versions()`` <details> [pandas_openpyxl_bug.zip](https://github.com/pandas-dev/pandas/files/6140468/pandas_openpyxl_bug.zip) INSTALLED VERSIONS ------------------ commit : f2c8480af2f25efdbd803218b9d87980f416563e python : 3.9.2.final.0 python-bits : 64 OS : Windows OS-release : 10 Version : 10.0.19041 machine : AMD64 processor : AMD64 Family 23 Model 8 Stepping 2, AuthenticAMD byteorder : little LC_ALL : None LANG : None LOCALE : Finnish_Finland.1252 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 : None pandas_datareader: None bs4 : None bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : None numexpr : None odfpy : None openpyxl : 3.0.7 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/40442/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40442/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40443
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40443/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40443/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40443/events
https://github.com/pandas-dev/pandas/issues/40443
831,666,732
MDU6SXNzdWU4MzE2NjY3MzI=
40,443
BUG: Memory leak in json encoding for time related objects
{ "avatar_url": "https://avatars.githubusercontent.com/u/1748956?v=4", "events_url": "https://api.github.com/users/Dollars/events{/privacy}", "followers_url": "https://api.github.com/users/Dollars/followers", "following_url": "https://api.github.com/users/Dollars/following{/other_user}", "gists_url": "https://api.github.com/users/Dollars/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Dollars", "id": 1748956, "login": "Dollars", "node_id": "MDQ6VXNlcjE3NDg5NTY=", "organizations_url": "https://api.github.com/users/Dollars/orgs", "received_events_url": "https://api.github.com/users/Dollars/received_events", "repos_url": "https://api.github.com/users/Dollars/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Dollars/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Dollars/subscriptions", "type": "User", "url": "https://api.github.com/users/Dollars" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" } ]
open
false
null
[]
null
7
2021-03-15T10:29:23Z
2021-03-22T03:20:53Z
null
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [x] (optional) I have confirmed this bug exists on the master branch of pandas. ------------- Hello, While using pandas in my project, I saw the memory usage of my process raising. After some digging, it looks like there is a memory leak in the JSON encoding code. This simple test should be able to reproduce the issue: ```python import pandas as pd if __name__ == "__main__": df = pd.DataFrame([[1,2], [1,2], [3,4], [3,4], [3,6], [5,6], [7,8], [7,8]], columns=["a", "b"], index = pd.date_range('1/1/2000', periods=8, freq='T')) for i in range(10000): str = df.to_json(orient="table") df = pd.read_json(str, orient="table") ``` Which ran using Valgrind should show that kind of result: ``` $ PYTHONMALLOC=malloc valgrind --leak-check=yes --track-origins=yes --log-file=valgrind-log.txt python test.py ... ==214631== 3,358,152 bytes in 79,956 blocks are definitely lost in loss record 15,015 of 15,015 ==214631== at 0x483E77F: malloc (vg_replace_malloc.c:307) ==214631== by 0x4F811482: int64ToIso (in /lib/python3.7/site-packages/pandas/_libs/json.cpython-37m-x86_64-linux-gnu.so) ==214631== by 0x4F81364B: encode (in /lib/python3.7/site-packages/pandas/_libs/json.cpython-37m-x86_64-linux-gnu.so) ==214631== by 0x4F813514: encode (in /lib/python3.7/site-packages/pandas/_libs/json.cpython-37m-x86_64-linux-gnu.so) ==214631== by 0x4F8135F7: encode (in /lib/python3.7/site-packages/pandas/_libs/json.cpython-37m-x86_64-linux-gnu.so) ==214631== by 0x4F813514: encode (in /lib/python3.7/site-packages/pandas/_libs/json.cpython-37m-x86_64-linux-gnu.so) ==214631== by 0x4F813A80: JSON_EncodeObject (in /lib/python3.7/site-packages/pandas/_libs/json.cpython-37m-x86_64-linux-gnu.so) ==214631== by 0x4F811119: objToJSON (in /lib/python3.7/site-packages/pandas/_libs/json.cpython-37m-x86_64-linux-gnu.so) ==214631== by 0x4993B18: _PyMethodDef_RawFastCallKeywords (in /usr/lib/libpython3.7m.so.1.0) ==214631== by 0x4993713: _PyCFunction_FastCallKeywords (in /usr/lib/libpython3.7m.so.1.0) ==214631== by 0x499364C: ??? (in /usr/lib/libpython3.7m.so.1.0) ==214631== by 0x498E0CD: _PyEval_EvalFrameDefault (in /usr/lib/libpython3.7m.so.1.0) ... ``` Which points to the `int64ToIso()` function in this case but mostly any function used in the `getStringValue()` function is allocating memory and this memory appears to not be freed after that (if I'm not missing something). https://github.com/pandas-dev/pandas/blob/2d51ebb77f5dc7f7824fd0b7b7edd538f2eaa819/pandas/_libs/src/ujson/lib/ultrajsonenc.c#L1082 It would be great if someone can confirm my deduction. If I'm right, I will try to submit a PR. Thanks. The environment I used: ``` pd.show_versions() INSTALLED VERSIONS ------------------ commit : 7d32926db8f7541c356066dcadabf854487738de python : 3.7.10.final.0 python-bits : 64 OS : Linux OS-release : 5.11.2-1-MANJARO Version : #1 SMP PREEMPT Fri Feb 26 12:17:53 UTC 2021 machine : x86_64 processor : byteorder : little LC_ALL : en_US.UTF-8 LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.2.2 numpy : 1.19.5 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40443/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40443/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40444
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40444/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40444/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40444/events
https://github.com/pandas-dev/pandas/pull/40444
831,675,546
MDExOlB1bGxSZXF1ZXN0NTkyOTYwMzAx
40,444
REF: move roperators to pandas.core
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "FCE94F", "default": false, "description": "Internal refactoring of code", "id": 127681, "name": "Refactor", "node_id": "MDU6TGFiZWwxMjc2ODE=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
8
2021-03-15T10:40:05Z
2021-03-24T07:26:28Z
2021-03-23T16:47:38Z
MEMBER
null
This PR does 2 things: - change `pandas.core.ops.roperator` imports to all import the module and use `roperator.<rop>` instead of importing the actual functions (this makes the usage similar as for the non-reversed operators with `import operator`) - move `roperator.py` from pandas/core/ops to pandas/core, so it can be imported in `pandas.core.computation.expressions` without relying on the `pandas.core.ops` module, which in its turn means we can move the inline import of `pandas.core.computation.expressions` in `pandas.core.ops.array_ops` to a top-level import (better for performance for a function that is called repeatedly) I think the first change is useful anyway (can also do it as a separate PR), for the second point, a possible alternative would be to move `pandas.core.computation.expressions` from the computation/ module to the ops/ module One consequence of this, though: by always importing this in `array_ops`, it gets imported on `import pandas` time, and thus `numexpr` always gets imported at that point (while now it's only a delayed import when doing a first operation). Now, I checked with `python -X importtime -c "import numpy, pandas, numexpr"`, and after already having import numpy (and pandas), also import numexpr is only a small addition (most of the import of numexpr is import numpy). Based on running that a few times, it seems to adds 1.5-2 % to the total pandas import time.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40444/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40444/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40444.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40444", "merged_at": "2021-03-23T16:47:38Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40444.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40444" }
https://api.github.com/repos/pandas-dev/pandas/issues/40445
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40445/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40445/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40445/events
https://github.com/pandas-dev/pandas/pull/40445
831,702,616
MDExOlB1bGxSZXF1ZXN0NTkyOTgyOTA0
40,445
PERF: no need to check for DataFrame in pandas.core.computation.expressions
{ "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": "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" }
3
2021-03-15T11:12:27Z
2021-03-23T13:59:52Z
2021-03-23T13:46:02Z
MEMBER
null
In practice, this case is only covered by specific tests using DataFrame in `test_expressions.py`, not from actual usage through ops (so I just updated the failing tests to not use any DataFrame as input to those checks). Although our test suite might not be the best suited to check that, since many tests are small and thus don't use the numexpr path... (fixing that in https://github.com/pandas-dev/pandas/pull/40463)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40445/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40445/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40445.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40445", "merged_at": "2021-03-23T13:46:02Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40445.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40445" }
https://api.github.com/repos/pandas-dev/pandas/issues/40446
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40446/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40446/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40446/events
https://github.com/pandas-dev/pandas/issues/40446
831,797,895
MDU6SXNzdWU4MzE3OTc4OTU=
40,446
BUG: groupby fast_apply vs python apply handles same-indexed result differently
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" } ]
closed
false
null
[]
{ "closed_at": 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" }
0
2021-03-15T13:12:32Z
2021-08-12T16:21:47Z
2021-08-12T16:21:47Z
MEMBER
null
From https://github.com/pandas-dev/pandas/issues/39146#issuecomment-799397428 (discovered while investigating a benchmark difference). It seems that in groupby/ops.py, the `fast_apply` (using libreduction) vs the generic python apply gives a different result in case of same-indexed output of the function. Using a small example dataframe and a function to be applied which simply copies the input: ```python N = 10 df = pd.DataFrame( { "key": np.random.randint(0, 3, size=N), "value1": np.random.randn(N), "value2": ["foo", "bar"] * (N // 2), } ) def df_copy_function(g): # ensure that the group name is available (see GH #15062) g.name return g.copy() ``` By default you get this result: ``` In [3]: df.groupby("key").apply(df_copy_function) Out[3]: key value1 value2 key 0 8 0 -0.149534 foo 9 0 -0.391135 bar 1 1 1 -0.581107 bar 2 1 -0.338278 foo 3 1 0.768924 bar 6 1 -0.778718 foo 2 0 2 0.196477 foo 4 2 -0.364822 foo 5 2 -0.976079 bar 7 2 -2.671668 bar ``` But if I trigger to *not* take the fast apply path (in this case by making one column an extension dtype), we get a different result: ``` In [4]: df['value2'] = df["value2"].astype("string") In [5]: df.groupby("key").apply(df_copy_function) Out[5]: key value1 value2 0 2 0.196477 foo 1 1 -0.581107 bar 2 1 -0.338278 foo 3 1 0.768924 bar 4 2 -0.364822 foo 5 2 -0.976079 bar 6 1 -0.778718 foo 7 2 -2.671668 bar 8 0 -0.149534 foo 9 0 -0.391135 bar ``` This might be another manifestation of https://github.com/pandas-dev/pandas/pull/34998 and the issues linked from that PR.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40446/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40446/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40447
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40447/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40447/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40447/events
https://github.com/pandas-dev/pandas/issues/40447
831,975,566
MDU6SXNzdWU4MzE5NzU1NjY=
40,447
read_csv: Warn when column cannot be parsed as dates
{ "avatar_url": "https://avatars.githubusercontent.com/u/7022832?v=4", "events_url": "https://api.github.com/users/malinkallen/events{/privacy}", "followers_url": "https://api.github.com/users/malinkallen/followers", "following_url": "https://api.github.com/users/malinkallen/following{/other_user}", "gists_url": "https://api.github.com/users/malinkallen/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/malinkallen", "id": 7022832, "login": "malinkallen", "node_id": "MDQ6VXNlcjcwMjI4MzI=", "organizations_url": "https://api.github.com/users/malinkallen/orgs", "received_events_url": "https://api.github.com/users/malinkallen/received_events", "repos_url": "https://api.github.com/users/malinkallen/repos", "site_admin": false, "starred_url": "https://api.github.com/users/malinkallen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/malinkallen/subscriptions", "type": "User", "url": "https://api.github.com/users/malinkallen" }
[ { "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" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": 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-15T16:21:19Z
2021-03-16T16:22:52Z
2021-03-16T16:16:10Z
NONE
null
#### Is your feature request related to a problem? As a part of a research project, me and two co-authors have been mining GitHub for Jupyter notebooks and studied a number of frequent function calls in the notebooks. It appears that users sometimes make calls to `read_csv` where they specify that non-date data should be parsed as dates. The most common case is that `parse_date` is set to `True` while the index cannot be parsed as dates. We have also seen cases where columns whose data cannot be parsed as dates are specified, by name (e.g. `parse_dates=["REQUEST_DATE", "AUTHORIZATION_DATE"]`) or column index (e.g. `parse_dates=[1]`). As a result, data will be stored as objects while the user thinks that it is stored on datetime format. Then results of e.g. filtering or merging on the column (or index) in question may be incorrect. I think that `read_csv` should issue a warning in these cases. Moreover, the fact that the user tries to parse a non-date column as dates may be an indication that the input data does not look as the user expects, which is also worth a warning! #### Describe the solution you'd like The function `read_csv` should warn when the value of the parameter `parse_dates` specifies that a column (or index) should be parsed as dates but the column (or index) in question is on non-date format. #### API breaking implications If only a warning is issued, I don't see how this could break anything. #### Describe alternatives you've considered An alternative could be to issue an error instead of a warning.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40447/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40447/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40448
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40448/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40448/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40448/events
https://github.com/pandas-dev/pandas/issues/40448
831,991,388
MDU6SXNzdWU4MzE5OTEzODg=
40,448
BUG: Series rolling standard deviation gives zero for small numbers
{ "avatar_url": "https://avatars.githubusercontent.com/u/11760870?v=4", "events_url": "https://api.github.com/users/wuyuanyi135/events{/privacy}", "followers_url": "https://api.github.com/users/wuyuanyi135/followers", "following_url": "https://api.github.com/users/wuyuanyi135/following{/other_user}", "gists_url": "https://api.github.com/users/wuyuanyi135/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wuyuanyi135", "id": 11760870, "login": "wuyuanyi135", "node_id": "MDQ6VXNlcjExNzYwODcw", "organizations_url": "https://api.github.com/users/wuyuanyi135/orgs", "received_events_url": "https://api.github.com/users/wuyuanyi135/received_events", "repos_url": "https://api.github.com/users/wuyuanyi135/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wuyuanyi135/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wuyuanyi135/subscriptions", "type": "User", "url": "https://api.github.com/users/wuyuanyi135" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0052cc", "default": false, "description": "Issue that has not been reviewed by a pandas team member", "id": 1954720290, "name": "Needs Triage", "node_id": "MDU6TGFiZWwxOTU0NzIwMjkw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage" } ]
closed
false
null
[]
null
2
2021-03-15T16:39:33Z
2021-03-16T04:05:25Z
2021-03-16T04:05:25Z
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 s = pd.Series([5, 5, 6, 7, 5, 2, 5]) print("## Working sample:") print(s.rolling(3).std()) s = pd.Series([5, 5, 6, 7, 5, 2, 5]) * 1e-8 print("## Doesn't work for small data:") std = s.rolling(3).std() print(std) assert std.iloc[-2] == 0 data = list(s.rolling(3))[-2] std_manual = data.std() print("## Manually calculated std:", std_manual) assert std.iloc[-2] == std_manual, "Rolling std and manually calculated rolling std do not match" ``` #### Problem description I found that when the series consists of small floating numbers (about the order of 1e-8) the rolling standard deviation will be zero. If I use the same window and compute the standard deviation directly the output is non-zero. Is there an internal precision setting for the rolling `std` function? #### Expected Output ```python s = pd.Series([5, 5, 6, 7, 5, 2, 5]) * 1e-8 std = s.rolling(3).std() ``` `std` should be nonzero for the last few elements. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : f2c8480af2f25efdbd803218b9d87980f416563e python : 3.8.8.final.0 python-bits : 64 OS : Windows OS-release : 10 Version : 10.0.19041 machine : AMD64 processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : English_United States.1252 pandas : 1.2.3 numpy : 1.20.1 pytz : 2021.1 dateutil : 2.8.1 pip : 21.0.1 setuptools : 49.6.0.post20210108 Cython : None pytest : None hypothesis : None sphinx : 3.2.1 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.3 IPython : 7.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.6.0 sqlalchemy : None tables : None tabulate : 0.8.7 xarray : None xlrd : None 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/40448/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40448/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40449
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40449/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40449/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40449/events
https://github.com/pandas-dev/pandas/issues/40449
832,013,223
MDU6SXNzdWU4MzIwMTMyMjM=
40,449
read_csv: Warn when too many names are specified
{ "avatar_url": "https://avatars.githubusercontent.com/u/7022832?v=4", "events_url": "https://api.github.com/users/malinkallen/events{/privacy}", "followers_url": "https://api.github.com/users/malinkallen/followers", "following_url": "https://api.github.com/users/malinkallen/following{/other_user}", "gists_url": "https://api.github.com/users/malinkallen/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/malinkallen", "id": 7022832, "login": "malinkallen", "node_id": "MDQ6VXNlcjcwMjI4MzI=", "organizations_url": "https://api.github.com/users/malinkallen/orgs", "received_events_url": "https://api.github.com/users/malinkallen/received_events", "repos_url": "https://api.github.com/users/malinkallen/repos", "site_admin": false, "starred_url": "https://api.github.com/users/malinkallen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/malinkallen/subscriptions", "type": "User", "url": "https://api.github.com/users/malinkallen" }
[ { "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" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": 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" }
3
2021-03-15T17:05:11Z
2021-03-16T16:01:20Z
2021-03-16T13:45:28Z
NONE
null
#### Is your feature request related to a problem? When you call `read_csv` and the length of `names` is larger than the number of columns in the data, extra column(s) containing only `NaN` will be added to the DataFrame created. I think that, generally, the extra name(s) is/are a sign of a bug in the program and/or input data that does not look as the user expects. In both cases, I think it could be helpful to issue a warning to make the user aware of the issue. Moreover, a warning may help avoiding future errors, for example if the user filters or merges data on the column containing only `NaN`s, thinking that it contains actual data. #### Describe the solution you'd like I think it would be helpful if `read_csv` issued a warning when the number of elements in `names` is larger than the number of columns in the data. #### API breaking implications If only a warning is issued, I don't see how this could break anything. #### Describe alternatives you've considered An alternative could be to issue an error instead of a warning.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40449/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40449/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40450
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40450/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40450/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40450/events
https://github.com/pandas-dev/pandas/pull/40450
832,073,321
MDExOlB1bGxSZXF1ZXN0NTkzMjk0MDUw
40,450
Fix StringArray.astype for category dtype
{ "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": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
7
2021-03-15T18:19:50Z
2021-04-02T19:10:02Z
2021-04-02T19:09:57Z
CONTRIBUTOR
null
- [X] closes #40351 - [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 This was failing due to `elif np.issubdtype(dtype, np.floating)` [here](https://github.com/pandas-dev/pandas/blob/master/pandas/core/arrays/string_.py#L330), which fails for the pandas dtypes. StringArrays are now being cast to Categorical just as they were before https://github.com/pandas-dev/pandas/pull/38530, when the casting still happened inside `Block`.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40450/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40450/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40450.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40450", "merged_at": "2021-04-02T19:09:57Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40450.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40450" }
https://api.github.com/repos/pandas-dev/pandas/issues/40451
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40451/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40451/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40451/events
https://github.com/pandas-dev/pandas/pull/40451
832,139,797
MDExOlB1bGxSZXF1ZXN0NTkzMzQ5MDM4
40,451
BUG/API: Index.__new__ match Series datetime inference behavior
{ "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": "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" } ]
closed
false
null
[]
null
2
2021-03-15T19:49:51Z
2021-11-08T16:37:34Z
2021-03-23T15:08:24Z
MEMBER
null
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry This makes us slightly more aggressive in casting to dt64 in `Index.__new__` (see the added test_index_new test, it contains all of the cases that are reached in the existing tests where the current behavior differs from the PR behavior) Technically an API change, but I think its worth it to match the Series behavior. Found+fixed a `pd.array` bug along the way.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40451/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40451/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40451.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40451", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/40451.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40451" }
https://api.github.com/repos/pandas-dev/pandas/issues/40452
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40452/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40452/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40452/events
https://github.com/pandas-dev/pandas/pull/40452
832,142,203
MDExOlB1bGxSZXF1ZXN0NTkzMzUxMDYy
40,452
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" }
1
2021-03-15T19:53:24Z
2021-03-17T14:09:24Z
2021-03-17T10:00:16Z
MEMBER
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40452/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40452/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40452.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40452", "merged_at": "2021-03-17T10:00:16Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40452.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40452" }
https://api.github.com/repos/pandas-dev/pandas/issues/40453
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40453/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40453/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40453/events
https://github.com/pandas-dev/pandas/pull/40453
832,149,807
MDExOlB1bGxSZXF1ZXN0NTkzMzU3MzE1
40,453
CLN: make `cell_context` DefaultDict like `ctx` - simplify code
{ "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": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "207de5", "default": false, "description": 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" }
0
2021-03-15T20:04:18Z
2021-03-22T14:04:57Z
2021-03-22T12:59:31Z
CONTRIBUTOR
null
Making the variables and code in `Styler` consistent with each other and consistent in patterns so it is easier to work with (for me!) and newcomers. Also removing redundant code `cell_context.get("col_headings", {})` would **never** return anything other `{}`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40453/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40453/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40453.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40453", "merged_at": "2021-03-22T12:59:31Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40453.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40453" }
https://api.github.com/repos/pandas-dev/pandas/issues/40454
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40454/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40454/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40454/events
https://github.com/pandas-dev/pandas/issues/40454
832,277,105
MDU6SXNzdWU4MzIyNzcxMDU=
40,454
BUG: test_table_method_rolling_methods segfault on Mac
{ "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": "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" }, { "color": "5319e7", "default": false, "description": "numba-accelerated operations", "id": 2138993554, "name": "numba", "node_id": "MDU6TGFiZWwyMTM4OTkzNTU0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/numba" } ]
open
false
null
[]
null
7
2021-03-15T23:24:27Z
2021-03-23T02:38:46Z
null
MEMBER
null
i think it isnt getting run because it is "slow" works fine on Ubuntu. Might be a 3.9 thing; until fairly recently i couldnt install numba on 3.9 cc @mroeschke
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40454/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40454/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40455
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40455/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40455/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40455/events
https://github.com/pandas-dev/pandas/pull/40455
832,319,032
MDExOlB1bGxSZXF1ZXN0NTkzNDk4MTk2
40,455
TYP: stubs for reshape, ops, ops_dispatch, hashing
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
3
2021-03-16T01:06:12Z
2021-03-17T14:07:36Z
2021-03-17T10:05:45Z
MEMBER
null
manually curated, extra specificity in comments it is supported directly
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40455/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40455/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40455.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40455", "merged_at": "2021-03-17T10:05:45Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40455.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40455" }
https://api.github.com/repos/pandas-dev/pandas/issues/40456
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40456/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40456/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40456/events
https://github.com/pandas-dev/pandas/pull/40456
832,324,302
MDExOlB1bGxSZXF1ZXN0NTkzNTAyMjky
40,456
REF: back DatetimeBlock, TimedeltaBlock by 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": "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" }
2
2021-03-16T01:19:45Z
2021-03-30T15:08:57Z
2021-03-30T12:51:50Z
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 Broken off from #40149. Like #40149, this backs DTBlock/TDBlock by (sometimes 2D) DTA/TDA. Unlike #40149, this does _not_ make the DTA backing DatetimeTZBlock sometimes-2D.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40456/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40456/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40456.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40456", "merged_at": "2021-03-30T12:51:49Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40456.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40456" }
https://api.github.com/repos/pandas-dev/pandas/issues/40457
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40457/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40457/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40457/events
https://github.com/pandas-dev/pandas/pull/40457
832,347,856
MDExOlB1bGxSZXF1ZXN0NTkzNTIwOTA3
40,457
CI: fix failing script/tests
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "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-16T02:21:25Z
2021-03-25T11:22:27Z
2021-03-16T15:32:18Z
MEMBER
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40457/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40457/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40457.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40457", "merged_at": "2021-03-16T15:32:18Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40457.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40457" }
https://api.github.com/repos/pandas-dev/pandas/issues/40458
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40458/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40458/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40458/events
https://github.com/pandas-dev/pandas/pull/40458
832,379,780
MDExOlB1bGxSZXF1ZXN0NTkzNTQ2NjMx
40,458
TST: csv parser segfaulting on malformed input.
{ "avatar_url": "https://avatars.githubusercontent.com/u/50434302?v=4", "events_url": "https://api.github.com/users/ahawryluk/events{/privacy}", "followers_url": "https://api.github.com/users/ahawryluk/followers", "following_url": "https://api.github.com/users/ahawryluk/following{/other_user}", "gists_url": "https://api.github.com/users/ahawryluk/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ahawryluk", "id": 50434302, "login": "ahawryluk", "node_id": "MDQ6VXNlcjUwNDM0MzAy", "organizations_url": "https://api.github.com/users/ahawryluk/orgs", "received_events_url": "https://api.github.com/users/ahawryluk/received_events", "repos_url": "https://api.github.com/users/ahawryluk/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ahawryluk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ahawryluk/subscriptions", "type": "User", "url": "https://api.github.com/users/ahawryluk" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
2
2021-03-16T03:40:50Z
2021-03-16T21:45:30Z
2021-03-16T20:31:41Z
CONTRIBUTOR
null
xref #14782 - [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/40458/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40458/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40458.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40458", "merged_at": "2021-03-16T20:31:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40458.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40458" }
https://api.github.com/repos/pandas-dev/pandas/issues/40459
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40459/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40459/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40459/events
https://github.com/pandas-dev/pandas/issues/40459
832,536,952
MDU6SXNzdWU4MzI1MzY5NTI=
40,459
DOC: pandas.Series.str.replace has pandas.DataFrame.str.replace examples
{ "avatar_url": "https://avatars.githubusercontent.com/u/17697537?v=4", "events_url": "https://api.github.com/users/dgokeeffe/events{/privacy}", "followers_url": "https://api.github.com/users/dgokeeffe/followers", "following_url": "https://api.github.com/users/dgokeeffe/following{/other_user}", "gists_url": "https://api.github.com/users/dgokeeffe/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dgokeeffe", "id": 17697537, "login": "dgokeeffe", "node_id": "MDQ6VXNlcjE3Njk3NTM3", "organizations_url": "https://api.github.com/users/dgokeeffe/orgs", "received_events_url": "https://api.github.com/users/dgokeeffe/received_events", "repos_url": "https://api.github.com/users/dgokeeffe/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dgokeeffe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dgokeeffe/subscriptions", "type": "User", "url": "https://api.github.com/users/dgokeeffe" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "207de5", "default": false, "description": "Clarification about behavior needed to assess issue", "id": 307649777, "name": "Needs Info", "node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2021-03-16T08:16:44Z
2021-03-21T15:24:17Z
2021-03-21T15:24:11Z
NONE
null
#### Location of the documentation https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.str.replace.html #### Documentation problem The documentation has DataFrame examples and not those related to Series #### Suggested fix for documentation Give examples related to Series.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40459/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40459/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40460
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40460/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40460/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40460/events
https://github.com/pandas-dev/pandas/issues/40460
832,546,863
MDU6SXNzdWU4MzI1NDY4NjM=
40,460
QST: Support of SQLAlchemy 2.0 in Pandas
{ "avatar_url": "https://avatars.githubusercontent.com/u/1247388?v=4", "events_url": "https://api.github.com/users/mickaelandrieu/events{/privacy}", "followers_url": "https://api.github.com/users/mickaelandrieu/followers", "following_url": "https://api.github.com/users/mickaelandrieu/following{/other_user}", "gists_url": "https://api.github.com/users/mickaelandrieu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mickaelandrieu", "id": 1247388, "login": "mickaelandrieu", "node_id": "MDQ6VXNlcjEyNDczODg=", "organizations_url": "https://api.github.com/users/mickaelandrieu/orgs", "received_events_url": "https://api.github.com/users/mickaelandrieu/received_events", "repos_url": "https://api.github.com/users/mickaelandrieu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mickaelandrieu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mickaelandrieu/subscriptions", "type": "User", "url": "https://api.github.com/users/mickaelandrieu" }
[ { "color": "d93f0b", "default": false, "description": "Required and optional dependencies", "id": 527603109, "name": "Dependencies", "node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies" } ]
closed
false
null
[]
null
10
2021-03-16T08:30:01Z
2021-03-28T04:45:16Z
2021-03-28T04:44:34Z
NONE
null
After search in Stackoverflow and in your open and closed issues, I can't find any information about the support of SQL Alchemy 2.0 using `pd.to_sql()` --- #### Question about pandas An exemple is better than a talk. ```python from sqlalchemy import create_engine, MetaData, Table, Column, String, Integer import pandas as pd # Table creation engine = create_engine(connection_string, echo=True, future=True) # This uses SQL Alchemy 2.0 API metadata = MetaData() category = Table( 'category', metadata, Column('id', Integer, primary_key = True), Column('name', String(128), nullable = False), Column('slug', String(128), nullable = False) ) category.create(engine, checkfirst=True) ## Insert using pandas => FAIL categories = pd.DataFrame([{'id' : 1, 'slug': 'test', 'name': 'Test'}]) categories.to_sql('category', engine, index=False) ``` This is the error I get from the CLI output : ``` File "e:\Projects\test\database.py", line 127, in populate_category_table categories.to_sql('category', engine, index=False) File "E:\Projects\test\env\lib\site-packages\pandas\core\generic.py", line 2779, in to_sql sql.to_sql( File "E:\Projects\test\env\lib\site-packages\pandas\io\sql.py", line 590, in to_sql pandas_sql.to_sql( File "E:\Projects\test\env\lib\site-packages\pandas\io\sql.py", line 1392, in to_sql table.create() File "E:\Projects\test\env\lib\site-packages\pandas\io\sql.py", line 722, in create if self.exists(): File "E:\Projects\test\env\lib\site-packages\pandas\io\sql.py", line 709, in exists return self.pd_sql.has_table(self.name, self.schema) File "E:\Projects\test\env\lib\site-packages\pandas\io\sql.py", line 1429, in has_table return self.connectable.run_callable( File "E:\Projects\test\env\lib\site-packages\sqlalchemy\future\engine.py", line 335, in _not_implemented raise NotImplementedError( NotImplementedError: This method is not implemented for SQLAlchemy 2.0. ``` For information about the version of every dependency : ```` $ ./env/Scripts/pip list Package Version --------------- --------- beautifulsoup4 4.9.3 certifi 2020.12.5 chardet 4.0.0 esprima 4.0.1 greenlet 1.0.0 idna 2.10 mysqlclient 2.0.3 numpy 1.20.1 pandas 1.2.3 patreon 0.5.0 pip 21.0.1 python-dateutil 2.8.1 pytz 2021.1 requests 2.25.1 setuptools 49.2.1 six 1.15.0 soupsieve 2.2 SQLAlchemy 1.4.0 urllib3 1.26.3 ```` Is there a workaround right now or should I avoid using pandas to insert the data into my database ? Regards,
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40460/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40460/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40461
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40461/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40461/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40461/events
https://github.com/pandas-dev/pandas/issues/40461
832,557,474
MDU6SXNzdWU4MzI1NTc0NzQ=
40,461
BUG: inconsistency in division for scalar Offset vs series/array of Offsets
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "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": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" } ]
open
false
null
[]
null
2
2021-03-16T08:44:52Z
2021-03-19T17:08:27Z
null
MEMBER
null
When dividing a scalar Offset with a numeric series, we get a timedelta64 series. But when dividing a Series of Offsets, we preserve the offsets. ``` In [26]: td = pd.offsets.Day(3) In [27]: td / pd.Series([1, 2]) Out[27]: 0 3 days 00:00:00 1 1 days 12:00:00 dtype: timedelta64[ns] In [28]: pd.Series([td, td]) / pd.Series([1, 2]) Out[28]: 0 <3 * Days> 1 <36 * Hours> dtype: object ``` Also "scalar / scalar" operation gives an Offset. 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/40461/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40461/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40462
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40462/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40462/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40462/events
https://github.com/pandas-dev/pandas/issues/40462
832,557,813
MDU6SXNzdWU4MzI1NTc4MTM=
40,462
BUG: operations with Offset fail for large arrays when using numexpr
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "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": "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" }
1
2021-03-16T08:45:19Z
2021-04-26T21:57:35Z
2021-04-26T21:57:35Z
MEMBER
null
When surpassing the minimum number of elements threshold to use numexpr, the following operation starts to fail: ``` In [19]: td = pd.offsets.Day(3) In [20]: td / pd.Series([1, 2]*5000) Out[20]: 0 3 days 00:00:00 1 1 days 12:00:00 ... 9998 3 days 00:00:00 9999 1 days 12:00:00 Length: 10000, dtype: timedelta64[ns] In [21]: td / pd.Series([1, 2]*5001) ... ~/miniconda3/envs/dev/lib/python3.7/site-packages/numexpr/necompiler.py in getType(a) 701 if kind == 'S': 702 return bytes --> 703 raise ValueError("unknown type %s" % a.dtype.name) 704 705 ValueError: unknown type object ``` This doesn't happen for a Timedelta object, I assume because of this check: https://github.com/pandas-dev/pandas/blob/7af47c999dc3d2782caf63fe8c42f0858937867b/pandas/core/ops/array_ops.py#L202-L203
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40462/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40462/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40463
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40463/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40463/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40463/events
https://github.com/pandas-dev/pandas/pull/40463
832,657,071
MDExOlB1bGxSZXF1ZXN0NTkzNzc5ODE0
40,463
BUG/TST: run and fix all arithmetic tests with+without numexpr
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
5
2021-03-16T10:40:58Z
2021-04-27T06:38:45Z
2021-04-26T21:57:35Z
MEMBER
null
Closes #40462 This PR adds a auto-used fixture for `pandas/tests/arithmetic` that sets the `expressions._MIN_ELEMENTS` to 0, to force taking the numexpr path, even if our test data are small (which would otherwise never excercise the numexpr code path) Further, it makes some fixes to get the tests passing with this better coverage. The fixes are a bit quick-and-dirty, but at least already show what is needed to get things working.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40463/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40463/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40463.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40463", "merged_at": "2021-04-26T21:57:35Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40463.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40463" }
https://api.github.com/repos/pandas-dev/pandas/issues/40464
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40464/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40464/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40464/events
https://github.com/pandas-dev/pandas/issues/40464
832,840,687
MDU6SXNzdWU4MzI4NDA2ODc=
40,464
BUG: Unusual behaviour in to_parquet re-load file
{ "avatar_url": "https://avatars.githubusercontent.com/u/4675884?v=4", "events_url": "https://api.github.com/users/DSivaji/events{/privacy}", "followers_url": "https://api.github.com/users/DSivaji/followers", "following_url": "https://api.github.com/users/DSivaji/following{/other_user}", "gists_url": "https://api.github.com/users/DSivaji/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/DSivaji", "id": 4675884, "login": "DSivaji", "node_id": "MDQ6VXNlcjQ2NzU4ODQ=", "organizations_url": "https://api.github.com/users/DSivaji/orgs", "received_events_url": "https://api.github.com/users/DSivaji/received_events", "repos_url": "https://api.github.com/users/DSivaji/repos", "site_admin": false, "starred_url": "https://api.github.com/users/DSivaji/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DSivaji/subscriptions", "type": "User", "url": "https://api.github.com/users/DSivaji" }
[ { "color": "5319e7", "default": false, "description": "parquet, feather", "id": 685114413, "name": "IO Parquet", "node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet" } ]
closed
false
null
[]
null
2
2021-03-16T14:10:50Z
2021-03-22T16:42:11Z
2021-03-22T16:42:11Z
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 print(pd.__version__) df = pd.DataFrame({'col1': [1,2,3,4,5], 'col2': ['s','p','d','q','r']}) # check data types print(df.dtypes) # <-- col1 dtype: int64 # convert col1 data type from int64 to object df = df.astype({'col1': 'object'}) print(df.dtypes) # <-- col1 dtype: object # write it to a parquet file df.to_parquet('./test.parquet', compression='gzip') re-load the dataset df1 = pd.read_parquet('./test.parquet') print(df1.dtypes) # <-- col1 dtype: int64 ``` #### Problem description In the above code, col1 in df is converted to object before writing it to parquet file. Surprisingly, it is converted to integer after re-load. Is that an expected behaviour? I think it should preserve the data types of each column. I have seen same behaviour for float values as well. #### Expected Output col1 object col2 object dtype: object #### Output of ``pd.show_versions()`` [paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag] </details> INSTALLED VERSIONS ------------------ commit : f2c8480af2f25efdbd803218b9d87980f416563e python : 3.7.10.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 : None LOCALE : None.UTF-8 pandas : 1.2.3 numpy : 1.20.1 pytz : 2021.1 dateutil : 2.8.1 pip : 21.0.1 setuptools : 49.6.0.post20210108 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 : 3.0.0 pyxlsb : None s3fs : None scipy : 1.6.0 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None numba : 0.52.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/40464/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40464/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40465
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40465/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40465/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40465/events
https://github.com/pandas-dev/pandas/pull/40465
832,875,897
MDExOlB1bGxSZXF1ZXN0NTkzOTY2MDE0
40,465
TYP: stronger typing in libindex
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
1
2021-03-16T14:43:33Z
2021-03-17T14:08:53Z
2021-03-17T10:39:10Z
MEMBER
null
and more consistent naming/args for MultiIndex engine. Preliminary before making index.pyi
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40465/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40465/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40465.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40465", "merged_at": "2021-03-17T10:39:10Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40465.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40465" }
https://api.github.com/repos/pandas-dev/pandas/issues/40466
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40466/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40466/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40466/events
https://github.com/pandas-dev/pandas/issues/40466
832,901,198
MDU6SXNzdWU4MzI5MDExOTg=
40,466
QST: No common columns to perform merge on
{ "avatar_url": "https://avatars.githubusercontent.com/u/80764934?v=4", "events_url": "https://api.github.com/users/TWidmer46/events{/privacy}", "followers_url": "https://api.github.com/users/TWidmer46/followers", "following_url": "https://api.github.com/users/TWidmer46/following{/other_user}", "gists_url": "https://api.github.com/users/TWidmer46/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TWidmer46", "id": 80764934, "login": "TWidmer46", "node_id": "MDQ6VXNlcjgwNzY0OTM0", "organizations_url": "https://api.github.com/users/TWidmer46/orgs", "received_events_url": "https://api.github.com/users/TWidmer46/received_events", "repos_url": "https://api.github.com/users/TWidmer46/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TWidmer46/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TWidmer46/subscriptions", "type": "User", "url": "https://api.github.com/users/TWidmer46" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" }, { "color": "207de5", "default": false, "description": "Clarification about behavior needed to assess issue", "id": 307649777, "name": "Needs Info", "node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info" } ]
closed
false
null
[]
null
5
2021-03-16T15:06:50Z
2021-04-25T17:47:39Z
2021-04-25T17:47:39Z
NONE
null
``` frequency = 'monthly' start = '1969-12-31' end = '2020-12-31' data = quandl.get(["ISM/MAN_PMI"], trim_start=start, trim_end=end) data.head() ``` ISM/MAN_PMI - PMI Date 1970-01-01 48.7 1970-02-01 47.4 1970-03-01 46.9 1970-04-01 45.0 1970-05-01 47.2 ``` df_log = numpy.log(df / df.shift(1)) df_log.head() ``` Adjusted Close Date 1969-12-31 NaN 1970-01-30 -0.079554 1970-02-27 0.051352 1970-03-31 0.001451 1970-04-30 -0.094842 `pd.merge(df, data)` Error: MergeError: No common columns to perform merge on. Merge options: left_on=None, right_on=None, left_index=False, right_index=False How chan I merge the two tables and harmonize them to: 1969-12 1970-1 1970-2 1970-3 .. ..
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40466/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40466/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40467
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40467/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40467/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40467/events
https://github.com/pandas-dev/pandas/issues/40467
833,003,652
MDU6SXNzdWU4MzMwMDM2NTI=
40,467
BUG: run_callable is deprecated in sqlalchemy 1.4
{ "avatar_url": "https://avatars.githubusercontent.com/u/11656932?v=4", "events_url": "https://api.github.com/users/jrbourbeau/events{/privacy}", "followers_url": "https://api.github.com/users/jrbourbeau/followers", "following_url": "https://api.github.com/users/jrbourbeau/following{/other_user}", "gists_url": "https://api.github.com/users/jrbourbeau/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jrbourbeau", "id": 11656932, "login": "jrbourbeau", "node_id": "MDQ6VXNlcjExNjU2OTMy", "organizations_url": "https://api.github.com/users/jrbourbeau/orgs", "received_events_url": "https://api.github.com/users/jrbourbeau/received_events", "repos_url": "https://api.github.com/users/jrbourbeau/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jrbourbeau/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jrbourbeau/subscriptions", "type": "User", "url": "https://api.github.com/users/jrbourbeau" }
[ { "color": "d93f0b", "default": false, "description": "Required and optional dependencies", "id": 527603109, "name": "Dependencies", "node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies" } ]
closed
false
null
[]
null
3
2021-03-16T16:45:17Z
2021-03-17T17:39:20Z
2021-03-17T17:39:20Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example I've not yet been able to isolate the code path where `run_callable` is used https://github.com/pandas-dev/pandas/blob/ac3e3f71129bc9ea9ed0a27f3adcd89e367fa9af/pandas/io/sql.py#L1615-L1618 However, it looks like several tests, for example `pandas/tests/io/test_sql.py::TestSQLApi.test_timedelta`, will trigger this warning. For instance [here's a recent CI build](https://github.com/pandas-dev/pandas/runs/2122982478#step:7:78) where a deprecation warning is being raised and actually causes the test to fail. #### Problem description [`run_callable` is deprecated in sqlalchemy 1.4](https://docs.sqlalchemy.org/en/14/core/connections.html#sqlalchemy.engine.Connection.run_callable) -- `Connection.run_callable()` should be used instead #### Expected Output #### 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_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 : 49.6.0.post20210108 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 : 1.4.0 tables : None tabulate : None xarray : None xlrd : None xlwt : None numba : None ``` </details>
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40467/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40467/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40468
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40468/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40468/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40468/events
https://github.com/pandas-dev/pandas/pull/40468
833,017,605
MDExOlB1bGxSZXF1ZXN0NTk0MDg2NzA2
40,468
CI: pre-commit fixups
{ "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" } ]
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-16T17:01:16Z
2021-03-16T20:45:01Z
2021-03-16T20:30:09Z
MEMBER
null
Fixes 2/3 of the failures on master that im aware of. sqlalchemy is the one left 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/40468/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40468/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40468.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40468", "merged_at": "2021-03-16T20:30:09Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40468.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40468" }
https://api.github.com/repos/pandas-dev/pandas/issues/40469
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40469/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40469/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40469/events
https://github.com/pandas-dev/pandas/issues/40469
833,046,363
MDU6SXNzdWU4MzMwNDYzNjM=
40,469
read_excel() cannot read excel files properly with openpyxl
{ "avatar_url": "https://avatars.githubusercontent.com/u/17292790?v=4", "events_url": "https://api.github.com/users/oakca/events{/privacy}", "followers_url": "https://api.github.com/users/oakca/followers", "following_url": "https://api.github.com/users/oakca/following{/other_user}", "gists_url": "https://api.github.com/users/oakca/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/oakca", "id": 17292790, "login": "oakca", "node_id": "MDQ6VXNlcjE3MjkyNzkw", "organizations_url": "https://api.github.com/users/oakca/orgs", "received_events_url": "https://api.github.com/users/oakca/received_events", "repos_url": "https://api.github.com/users/oakca/repos", "site_admin": false, "starred_url": "https://api.github.com/users/oakca/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/oakca/subscriptions", "type": "User", "url": "https://api.github.com/users/oakca" }
[ { "color": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" }, { "color": "d8439a", "default": false, "description": "Issue related to pandas dependency", "id": 2533668378, "name": "Upstream issue", "node_id": "MDU6TGFiZWwyNTMzNjY4Mzc4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Upstream%20issue" } ]
closed
false
null
[]
null
3
2021-03-16T17:35:54Z
2021-08-19T02:36:22Z
2021-08-19T02:36:22Z
NONE
null
`pandas 1.2.3, openpyxl 3.0.7` I read an excel file with pandas via openpyxl package. It converts the number in the `'ATC'` column to a weird bitwise string. Previously I was using `xlrd(1.2.0)` instead of `openpyxl` and it was working fine: ``` # with openpyxl 3.0.7 df = pd.read_excel('excel_file.xlsx') >>>df['ATC'] 0 _x0033_40.00 Name: ATC, dtype: object >>>df['ATC'][0] '_x0033_40.00' ``` ``` # with xlrd 1.2.0 df = pd.read_excel('excel_file.xlsx') >>>df['ATC'] 0 340.0 Name: ATC, dtype: float64 >>>df['ATC'][0] 340.0 ``` Here is the excel file if you like to check: [excel_file.xlsx](https://github.com/pandas-dev/pandas/files/6151138/excel_file.xlsx) Any work arounds? or I should keep using `xlrd`?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40469/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40469/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40470
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40470/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40470/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40470/events
https://github.com/pandas-dev/pandas/issues/40470
833,074,927
MDU6SXNzdWU4MzMwNzQ5Mjc=
40,470
BUG: OverflowError when plotting with sharex=True
{ "avatar_url": "https://avatars.githubusercontent.com/u/6872529?v=4", "events_url": "https://api.github.com/users/shaharkadmiel/events{/privacy}", "followers_url": "https://api.github.com/users/shaharkadmiel/followers", "following_url": "https://api.github.com/users/shaharkadmiel/following{/other_user}", "gists_url": "https://api.github.com/users/shaharkadmiel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shaharkadmiel", "id": 6872529, "login": "shaharkadmiel", "node_id": "MDQ6VXNlcjY4NzI1Mjk=", "organizations_url": "https://api.github.com/users/shaharkadmiel/orgs", "received_events_url": "https://api.github.com/users/shaharkadmiel/received_events", "repos_url": "https://api.github.com/users/shaharkadmiel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shaharkadmiel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shaharkadmiel/subscriptions", "type": "User", "url": "https://api.github.com/users/shaharkadmiel" }
[ { "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": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
3
2021-03-16T18:13:29Z
2021-06-16T02:38:11Z
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. --- I have two datasets from different sources. They span more or less the same time, contain different data, sampled at different rate. I am trying to plot these on two subplots with a shared x axis. Making sample data: ```python import numpy as np import pandas as pd import matplotlib.pyplot as plt time1 = pd.date_range( '2020-11-08T09:31:06', '2020-12-01T22:59:59', freq='S', tz='UTC' ) df1 = pd.DataFrame( np.sin(2 * np.pi * 1e-5 * np.arange(time1.size)), index=time1, columns=['x1'] ) time2 = pd.date_range( '2020-11-08T09:32:00', '2020-12-01T22:58:00', freq='D', tz='UTC' ) df2 = pd.DataFrame( np.sin(2 * np.pi * 1e-1 * np.arange(time2.size)), index=time2, columns=['x2'] ) ``` Minimal plotting example: ```python fig, (ax1, ax2) = plt.subplots(2, sharex=True) fig.subplots_adjust(0, 0, 1, 1, hspace=0.15) df1.x1.plot(ax=ax1, legend=False) df2.x2.plot(ax=ax2, legend=False) ``` I get `OverflowError` and a very long traceback but I think the problem is how the `sharex=True` is handled. When I set `sharex=False`, the error goes away and it plots fine but unaligned. #### Output of ``pd.show_versions()`` I get `ImportError: Can't determine version for pip` But: Pandas: 1.2.3 Matplotlib: 3.3.2 <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/40470/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40470/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40471
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40471/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40471/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40471/events
https://github.com/pandas-dev/pandas/pull/40471
833,102,348
MDExOlB1bGxSZXF1ZXN0NTk0MTU4MTcw
40,471
compat: sqlalchemy deprecations
{ "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": "5319e7", "default": false, "description": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" }, { "color": "d93f0b", "default": false, "description": "Required and optional dependencies", "id": 527603109, "name": "Dependencies", "node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies" } ]
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" }
5
2021-03-16T18:50:39Z
2021-03-17T11:58:13Z
2021-03-16T20:30:53Z
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/40471/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40471/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40471.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40471", "merged_at": "2021-03-16T20:30:53Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40471.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40471" }
https://api.github.com/repos/pandas-dev/pandas/issues/40472
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40472/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40472/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40472/events
https://github.com/pandas-dev/pandas/issues/40472
833,152,836
MDU6SXNzdWU4MzMxNTI4MzY=
40,472
BUG: series.replace(np.nan,..) on categorical series does not replace
{ "avatar_url": "https://avatars.githubusercontent.com/u/13254296?v=4", "events_url": "https://api.github.com/users/MaximeLaurenty/events{/privacy}", "followers_url": "https://api.github.com/users/MaximeLaurenty/followers", "following_url": "https://api.github.com/users/MaximeLaurenty/following{/other_user}", "gists_url": "https://api.github.com/users/MaximeLaurenty/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MaximeLaurenty", "id": 13254296, "login": "MaximeLaurenty", "node_id": "MDQ6VXNlcjEzMjU0Mjk2", "organizations_url": "https://api.github.com/users/MaximeLaurenty/orgs", "received_events_url": "https://api.github.com/users/MaximeLaurenty/received_events", "repos_url": "https://api.github.com/users/MaximeLaurenty/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MaximeLaurenty/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MaximeLaurenty/subscriptions", "type": "User", "url": "https://api.github.com/users/MaximeLaurenty" }
[ { "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" }, { "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" }, { "color": "207de5", "default": false, "description": "Requires discussion from core team before further action", "id": 219960758, "name": "Needs Discussion", "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion" }, { "color": "01a886", "default": false, "description": "replace method", "id": 1652721180, "name": "replace", "node_id": "MDU6TGFiZWwxNjUyNzIxMTgw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/replace" } ]
open
false
null
[]
null
6
2021-03-16T20:03:06Z
2021-08-19T02:37:27Z
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 import numpy as np #good good = pd.Series({1: 'a', 2: 'b'}).astype('category').replace('a', 'c') #bad bad = pd.Series({1: np.nan, 2: 'b'}).astype('category').replace(np.nan, 'c') # does not replace and bad is instead: # 1 NaN # 2 b # dtype: category # Categories (1, object): [b] ``` #### Problem description When replacing np.nan on a categorical series, the values are not modified. This is a breaking change introduced in 1.0 (it worked fine in 0.25.3). My guess is that this was introduced by https://github.com/pandas-dev/pandas/pull/27026/files which does nothing when "[to_replace in cat.categories](https://github.com/JustinZhengBC/pandas/blob/c4d3f8489e467c072e4d96a4e515b76f7243e7d8/pandas/core/arrays/categorical.py#L2503)" evaluates to False. #### Expected Output `pd.Series({1: 'c', 2: 'b'}).astype('category')` displaying like ``` # 1 c # 2 b # dtype: category # Categories (2, object): [c, b] ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : f2c8480af2f25efdbd803218b9d87980f416563e python : 3.8.8.final.0 python-bits : 64 OS : Darwin OS-release : 19.6.0 Version : Darwin Kernel Version 19.6.0: Thu Oct 29 22:56:45 PDT 2020; root:xnu-6153.141.2.2~1/RELEASE_X86_64 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : None LOCALE : None.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 : 0.29.22 pytest : 4.5.0 hypothesis : None sphinx : 3.5.2 blosc : None feather : None xlsxwriter : 1.3.7 lxml.etree : 4.6.2 html5lib : 1.1 pymysql : None psycopg2 : None jinja2 : 2.11.3 IPython : 7.21.0 pandas_datareader: None bs4 : 4.9.3 bottleneck : 1.3.2 fsspec : 0.8.3 fastparquet : None gcsfs : None matplotlib : 3.3.4 numexpr : 2.7.3 odfpy : None openpyxl : 3.0.7 pandas_gbq : None pyarrow : None pyxlsb : None s3fs : None scipy : 1.6.1 sqlalchemy : 1.3.23 tables : 3.6.1 tabulate : None xarray : None xlrd : 2.0.1 xlwt : 1.3.0 numba : 0.53.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40472/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40472/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40473
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40473/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40473/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40473/events
https://github.com/pandas-dev/pandas/pull/40473
833,177,015
MDExOlB1bGxSZXF1ZXN0NTk0MjIwNzU2
40,473
TYP: tslib.pyi
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
1
2021-03-16T20:37:52Z
2021-03-18T14:12:59Z
2021-03-18T09:01:29Z
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/40473/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40473/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40473.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40473", "merged_at": "2021-03-18T09:01:29Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40473.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40473" }
https://api.github.com/repos/pandas-dev/pandas/issues/40474
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40474/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40474/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40474/events
https://github.com/pandas-dev/pandas/pull/40474
833,227,397
MDExOlB1bGxSZXF1ZXN0NTk0MjYyOTY5
40,474
CLN: factorize returns ndarray[intp], not int64
{ "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": "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": "0e8a16", "default": false, "description": "32-bit systems", "id": 563047854, "name": "32bit", "node_id": "MDU6TGFiZWw1NjMwNDc4NTQ=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/32bit" } ]
closed
false
null
[]
{ "closed_at": "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-16T21:55:59Z
2021-03-20T01:36:48Z
2021-03-20T01:10:03Z
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/40474/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40474/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40474.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40474", "merged_at": "2021-03-20T01:10:02Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40474.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40474" }
https://api.github.com/repos/pandas-dev/pandas/issues/40475
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40475/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40475/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40475/events
https://github.com/pandas-dev/pandas/pull/40475
833,239,261
MDExOlB1bGxSZXF1ZXN0NTk0MjcyNjk3
40,475
CLN: intp_t instead of int64_t for indexers in libs funcs
{ "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": "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": "0e8a16", "default": false, "description": "32-bit systems", "id": 563047854, "name": "32bit", "node_id": "MDU6TGFiZWw1NjMwNDc4NTQ=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/32bit" } ]
closed
false
null
[]
{ "closed_at": "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-16T22:18:14Z
2021-03-20T03:05:32Z
2021-03-20T02:34:22Z
MEMBER
null
The places where this will need updating proliferate, so right now im just looking to see how the 32bit builds handle 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/40475/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40475/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40475.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40475", "merged_at": "2021-03-20T02:34:22Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40475.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40475" }
https://api.github.com/repos/pandas-dev/pandas/issues/40476
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40476/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40476/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40476/events
https://github.com/pandas-dev/pandas/pull/40476
833,279,827
MDExOlB1bGxSZXF1ZXN0NTk0MzA1OTk4
40,476
TYP: get_reverse_indexer, get_group_index_sorter
{ "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": "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": "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-16T23:51:56Z
2021-03-20T01:38:19Z
2021-03-20T01:09:25Z
MEMBER
null
nailing down all the "np.intp"s bit by little bit. AFAICT we're not going to be able to annotate ndarrays with ndim/dtype any time soon. Might be worth looking into https://pypi.org/project/nptyping/
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40476/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40476/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40476.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40476", "merged_at": "2021-03-20T01:09:25Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40476.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40476" }
https://api.github.com/repos/pandas-dev/pandas/issues/40477
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40477/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40477/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40477/events
https://github.com/pandas-dev/pandas/pull/40477
833,369,892
MDExOlB1bGxSZXF1ZXN0NTk0Mzc2Nzcx
40,477
BUG: frame.any/all with bool_only=True and Categorical[bool]
{ "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" } ]
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-17T03:37:05Z
2021-03-23T23:10:42Z
2021-03-23T22:50:18Z
MEMBER
null
Started with sharing some code, unearthed a bug along the way. Nothing user-facing since it is only in ArrayManager.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40477/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40477/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40477.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40477", "merged_at": "2021-03-23T22:50:18Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40477.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40477" }
https://api.github.com/repos/pandas-dev/pandas/issues/40478
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40478/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40478/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40478/events
https://github.com/pandas-dev/pandas/issues/40478
833,561,405
MDU6SXNzdWU4MzM1NjE0MDU=
40,478
BUG: `pd.core.dtypes.common.is_extension_array_dtype` wrong output for some dtypes
{ "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": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" } ]
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" }
3
2021-03-17T09:14:18Z
2021-03-22T09:44:56Z
2021-03-21T18:10:29Z
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 from pandas.core.dtypes.common import is_extension_array_dtype from pandas.core.base import ExtensionArray dt = DatetimeArray(np.array([], dtype='datetime64[ns]')) assert isinstance(dt, ExtensionArray) # passes assert is_extension_array_dtype(dt) # fails assert is_extension_array_dtype(dt.dtype) # fails inter = pd.Interval(0, 5) assert com.is_extension_array_dtype(inter) # fails ``` Similar problems for `Period` and `timedelta64[ns]`. #### Problem description Some of it (example: DatetimeArray) is due to this commit: https://github.com/pandas-dev/pandas/commit/be6885074de3ac333ab0af3271d45bc4eccb307c#diff-e279f0dcc8af317412f2a0db83d50c2ffedcd0743af7da8545ff272ee6ebe2f3R1529 Where DatetimeArray implements ExtensionArray, but `datetime64[ns]` is a np dtype and doesn't (yet) implement ExtensionDtype. #### Expected Output Function should return `true` for all dtypes whose Array implements `ExtensionArray`. I need this for #40450. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : a75152784c17a73627a414319f6c89324cfa2840 python : 3.8.6.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 : C.UTF-8 LANG : C.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.3.0.dev0+1084.ga75152784c.dirty numpy : 1.19.5 pytz : 2021.1 dateutil : 2.8.1 pip : 20.3.3 setuptools : 49.6.0.post20201009 Cython : 0.29.22 pytest : 6.2.2 hypothesis : 6.7.0 sphinx : 3.5.2 blosc : None feather : None xlsxwriter : 1.3.7 lxml.etree : 4.6.2 html5lib : 1.1 pymysql : None psycopg2 : None jinja2 : 2.11.3 IPython : 7.21.0 pandas_datareader: None bs4 : 4.9.3 bottleneck : 1.3.2 fsspec : 0.8.7 fastparquet : 0.5.0 gcsfs : 0.7.2 matplotlib : 3.3.4 numexpr : 2.7.3 odfpy : None openpyxl : 3.0.6 pandas_gbq : None pyarrow : 3.0.0 pyxlsb : None s3fs : 0.4.2 scipy : 1.6.0 sqlalchemy : 1.3.23 tables : 3.6.1 tabulate : 0.8.9 xarray : 0.17.0 xlrd : 2.0.1 xlwt : 1.3.0 numba : 0.52.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40478/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40478/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40479
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40479/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40479/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40479/events
https://github.com/pandas-dev/pandas/pull/40479
833,589,527
MDExOlB1bGxSZXF1ZXN0NTk0NTYxNDA4
40,479
REF: prepare (upcast) scalar before dispatching to arithmetic array ops
{ "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": "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" }
7
2021-03-17T09:48:45Z
2021-04-28T14:50:46Z
2021-04-28T14:49:50Z
MEMBER
null
This moves the potential upcasting of python/numpy scalars to pandas scalars out of the actual array op (`arithmetic_op`), but moves it up to the Series / DataFrame level before calling the array op. This avoids calling it repeatedly on the same scalar for each column.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40479/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40479/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40479.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40479", "merged_at": "2021-04-28T14:49:50Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40479.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40479" }
https://api.github.com/repos/pandas-dev/pandas/issues/40480
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40480/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40480/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40480/events
https://github.com/pandas-dev/pandas/issues/40480
833,598,854
MDU6SXNzdWU4MzM1OTg4NTQ=
40,480
BUG: setting values with array in mixed DataFrame disregards order of indexer
{ "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": "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": "Blocking issue or pull request for an upcoming release", "id": 77550281, "name": "Blocker", "node_id": "MDU6TGFiZWw3NzU1MDI4MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Blocker" } ]
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-17T10:00:06Z
2021-04-13T23:19:56Z
2021-04-13T23:19:56Z
MEMBER
null
``` In [2]: df = DataFrame(index=[3, 5, 4], columns=["A", "B"], dtype=float) ...: df["B"] = "string" ...: df.loc[[4, 3, 5], "A"] = np.array([1, 2, 3], dtype="int64") In [3]: df Out[3]: A B 3 1 string 5 2 string 4 3 string ``` In the above (using master), the values [1, 2, 3] were set in that order, while the indexer used a different order. In released versions of pandas, we correctly get [2, 3, 1]: ``` In [3]: df Out[3]: A B 3 2 string 5 3 string 4 1 string In [4]: pd.__version__ Out[4]: '1.2.3' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40480/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40480/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40481
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40481/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40481/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40481/events
https://github.com/pandas-dev/pandas/pull/40481
833,694,479
MDExOlB1bGxSZXF1ZXN0NTk0NjQ3NDg4
40,481
Backport PR #40471: compat: sqlalchemy deprecations
{ "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": "5319e7", "default": false, "description": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" }, { "color": "d93f0b", "default": false, "description": "Required and optional dependencies", "id": 527603109, "name": "Dependencies", "node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies" } ]
closed
false
null
[]
{ "closed_at": "2021-04-13T15:44:36Z", "closed_issues": 46, "created_at": "2021-03-01T08:32:08Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }, "description": "on-merge: backport to 1.2.x", "due_on": "2021-04-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/84", "id": 6490488, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/84/labels", "node_id": "MDk6TWlsZXN0b25lNjQ5MDQ4OA==", "number": 84, "open_issues": 0, "state": "closed", "title": "1.2.4", "updated_at": "2021-04-14T14:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/84" }
4
2021-03-17T11:57:30Z
2021-03-25T10:37:14Z
2021-03-17T13:09:35Z
MEMBER
null
Backport PR #40471
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40481/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40481/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40481.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40481", "merged_at": "2021-03-17T13:09:34Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40481.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40481" }
https://api.github.com/repos/pandas-dev/pandas/issues/40482
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40482/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40482/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40482/events
https://github.com/pandas-dev/pandas/pull/40482
833,702,192
MDExOlB1bGxSZXF1ZXN0NTk0NjUzNTk4
40,482
REF: avoid broadcasting of Series to DataFrame in ops for 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": "FCE94F", "default": false, "description": "Internal refactoring of code", "id": 127681, "name": "Refactor", "node_id": "MDU6TGFiZWwxMjc2ODE=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" }, { "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" } ]
open
false
null
[]
null
4
2021-03-17T12:07:33Z
2021-11-15T19:07:10Z
null
MEMBER
null
xref https://github.com/pandas-dev/pandas/pull/39772 Currently, we broadcast a Series to a DataFrame for elementwise operations in the "op(df, series)" case. This is done (I think) to be able to perform the operation block-wise (which is only implemented for block/block case, and not for block/array). But, when using the ArrayManager, this broadcasting is 1) not necessary (since we perform column-by-column anyway) and 2) costly.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40482/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40482/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40482.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40482", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/40482.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40482" }
https://api.github.com/repos/pandas-dev/pandas/issues/40483
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40483/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40483/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40483/events
https://github.com/pandas-dev/pandas/issues/40483
833,891,331
MDU6SXNzdWU4MzM4OTEzMzE=
40,483
BUG:read_excel no default style openpyx1
{ "avatar_url": "https://avatars.githubusercontent.com/u/80838725?v=4", "events_url": "https://api.github.com/users/Starman1984/events{/privacy}", "followers_url": "https://api.github.com/users/Starman1984/followers", "following_url": "https://api.github.com/users/Starman1984/following{/other_user}", "gists_url": "https://api.github.com/users/Starman1984/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Starman1984", "id": 80838725, "login": "Starman1984", "node_id": "MDQ6VXNlcjgwODM4NzI1", "organizations_url": "https://api.github.com/users/Starman1984/orgs", "received_events_url": "https://api.github.com/users/Starman1984/received_events", "repos_url": "https://api.github.com/users/Starman1984/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Starman1984/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Starman1984/subscriptions", "type": "User", "url": "https://api.github.com/users/Starman1984" }
[ { "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": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" }, { "color": "207de5", "default": false, "description": "Clarification about behavior needed to assess issue", "id": 307649777, "name": "Needs Info", "node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info" } ]
closed
false
null
[]
null
2
2021-03-17T15:09:10Z
2021-03-22T12:53:01Z
2021-03-22T12:53:01Z
NONE
null
i receive an excel attachment via outlook, after saving the file and running the python script the following warning is returned. "UserWarning: Workbook contains no default style, apply openpyxl's default" if the warning is ignored then read_excel report 2 header records when there are 7 header records. if I open the file via Excel and save the file with no changes, some dialog is shown but it is display so quickly I am unable to determine what excel is doing. when I re-run the python script no exceptions occur and everything works as expected. I have upgraded pandas from 1.2.1 to 1.2.3 i have upgraded openpyxl from 3.0.6 to 3.0.7 issue remains ry: df = pd.read_excel(Filename, header = 7) print('no issues reading excel file') except Exception as e: print('Excel read error: ', e.args[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/40483/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40483/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40484
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40484/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40484/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40484/events
https://github.com/pandas-dev/pandas/issues/40484
834,053,508
MDU6SXNzdWU4MzQwNTM1MDg=
40,484
BUG: Clearing a `Styler` should clear all
{ "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": "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": "006b75", "default": false, "description": "conditional formatting using DataFrame.style", "id": 1728592794, "name": "Styler", "node_id": "MDU6TGFiZWwxNzI4NTkyNzk0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler" }, { "color": "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" } ]
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-17T18:11:58Z
2021-04-02T17:20:24Z
2021-04-02T17:20:24Z
CONTRIBUTOR
null
Currently `Styler.clear()` will clear the styles built up with the `apply` `aaplymap` and `where` method. It will clear class from the `set_td_classes` method and it will clear tooltips set with `set_tooltips`. It does not clear table styles, and it does not clear formats. It does not reset hidden index or hidden columns. Thoughts and PR into what this should do and how it should it be documented, as well consistency with `Styler.copy` are welcome..
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40484/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40484/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40485
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40485/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40485/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40485/events
https://github.com/pandas-dev/pandas/issues/40485
834,066,520
MDU6SXNzdWU4MzQwNjY1MjA=
40,485
DOC: Outdated Python version in contributing docs
{ "avatar_url": "https://avatars.githubusercontent.com/u/23437545?v=4", "events_url": "https://api.github.com/users/hasan-yaman/events{/privacy}", "followers_url": "https://api.github.com/users/hasan-yaman/followers", "following_url": "https://api.github.com/users/hasan-yaman/following{/other_user}", "gists_url": "https://api.github.com/users/hasan-yaman/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hasan-yaman", "id": 23437545, "login": "hasan-yaman", "node_id": "MDQ6VXNlcjIzNDM3NTQ1", "organizations_url": "https://api.github.com/users/hasan-yaman/orgs", "received_events_url": "https://api.github.com/users/hasan-yaman/received_events", "repos_url": "https://api.github.com/users/hasan-yaman/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hasan-yaman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hasan-yaman/subscriptions", "type": "User", "url": "https://api.github.com/users/hasan-yaman" }
[ { "color": "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/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": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
3
2021-03-17T18:29:32Z
2021-04-04T19:57:20Z
2021-04-04T19:57:20Z
CONTRIBUTOR
null
#### Location of the documentation [URL of the documentation](https://pandas.pydata.org/docs/development/contributing.html#creating-a-python-environment-pip) **Note**: You can check the latest versions of the docs on `master` [here](https://pandas.pydata.org/docs/dev/). (Problem exist in the latest version: [here](https://pandas.pydata.org/docs/dev/development/contributing.html?highlight=contributing#creating-a-python-environment-pip)) #### Documentation problem In the documents, it says `at least Python 3.6.1 installed` to create Python virtual environment to contribute Pandas. However, to install some development requirements (such as NumPy) Python version must be >=3.7. See [here](https://pypi.org/project/numpy/) for NumPy minimum requirement. #### Suggested fix for documentation We should update the relevant document so contributors can install an appropriate virtual environment for contribution. Suggested edit: `You’ll need to have at least Python 3.7 installed on your system.`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40485/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40485/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40486
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40486/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40486/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40486/events
https://github.com/pandas-dev/pandas/pull/40486
834,102,655
MDExOlB1bGxSZXF1ZXN0NTk0OTg5MDEy
40,486
TYP: index.pyi
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
2
2021-03-17T19:19:52Z
2021-03-30T21:56:43Z
2021-03-30T21:21:28Z
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/40486/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40486/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40486.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40486", "merged_at": "2021-03-30T21:21:28Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40486.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40486" }
https://api.github.com/repos/pandas-dev/pandas/issues/40487
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40487/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40487/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40487/events
https://github.com/pandas-dev/pandas/issues/40487
834,184,882
MDU6SXNzdWU4MzQxODQ4ODI=
40,487
BUG: `Series.explode` ignores `ignore_index` parameter when series is not a nested type
{ "avatar_url": "https://avatars.githubusercontent.com/u/13521008?v=4", "events_url": "https://api.github.com/users/isVoid/events{/privacy}", "followers_url": "https://api.github.com/users/isVoid/followers", "following_url": "https://api.github.com/users/isVoid/following{/other_user}", "gists_url": "https://api.github.com/users/isVoid/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/isVoid", "id": 13521008, "login": "isVoid", "node_id": "MDQ6VXNlcjEzNTIxMDA4", "organizations_url": "https://api.github.com/users/isVoid/orgs", "received_events_url": "https://api.github.com/users/isVoid/received_events", "repos_url": "https://api.github.com/users/isVoid/repos", "site_admin": false, "starred_url": "https://api.github.com/users/isVoid/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/isVoid/subscriptions", "type": "User", "url": "https://api.github.com/users/isVoid" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "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-17T21:16:48Z
2021-04-02T22:35:24Z
2021-04-02T22:35:24Z
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. --- ```python >>> s = pd.Series([1, 2], index=['a', 'b']) >>> s.explode(ignore_index=True) a 1 b 2 dtype: int64 ``` #### Problem description Even though exploding a non-nested array results in a no-op. `ignore_index` should still be considered to align with behavior of its dataframe sibling. #### Expected Output ```python >>> s.explode(ignore_index=True) 0 1 1 2 dtype: int64 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 3e89b4c4b1580aa890023fc550774e63d499da25 python : 3.7.10.final.0 python-bits : 64 OS : Linux OS-release : 4.15.0-76-generic Version : #86-Ubuntu SMP Fri Jan 17 17:24:28 UTC 2020 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : None LOCALE : en_US.UTF-8 pandas : 1.2.0 numpy : 1.20.1 pytz : 2021.1 dateutil : 2.8.1 pip : 21.0.1 setuptools : 52.0.0.post20210125 Cython : 0.29.22 pytest : 6.2.2 hypothesis : 6.8.0 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 : 1.0.1 pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None 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/40487/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40487/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40488
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40488/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40488/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40488/events
https://github.com/pandas-dev/pandas/issues/40488
834,190,690
MDU6SXNzdWU4MzQxOTA2OTA=
40,488
Cumsum not available to column of list-likes in groupby
{ "avatar_url": "https://avatars.githubusercontent.com/u/766670?v=4", "events_url": "https://api.github.com/users/rben01/events{/privacy}", "followers_url": "https://api.github.com/users/rben01/followers", "following_url": "https://api.github.com/users/rben01/following{/other_user}", "gists_url": "https://api.github.com/users/rben01/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rben01", "id": 766670, "login": "rben01", "node_id": "MDQ6VXNlcjc2NjY3MA==", "organizations_url": "https://api.github.com/users/rben01/orgs", "received_events_url": "https://api.github.com/users/rben01/received_events", "repos_url": "https://api.github.com/users/rben01/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rben01/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rben01/subscriptions", "type": "User", "url": "https://api.github.com/users/rben01" }
[ { "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": "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" }, { "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" } ]
closed
false
null
[]
null
3
2021-03-17T21:25:54Z
2021-04-11T13:55:43Z
2021-04-11T13:55:34Z
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. --- #### Code Sample, a copy-pastable example ```python df = pd.DataFrame({'a': [1,1,2], 'b': [[10],[11],[12]]}) # ok: >>> df['b'].cumsum() 0 [10] 1 [10, 11] 2 [10, 11, 12] Name: b, dtype: object # error: >>> df.groupby('a')['b'].cumsum() DataError: No numeric types to aggregate ``` #### Problem description Given that taking the cumsum of a column of list-likes is allowed, it should similarly be allowed when doing the same to a groupby object. #### Expected Output ```python a 0 [10] 1 [10, 11] 2 [12] Name: b, dtype: object ``` #### Workaround This is only a partial workaround because it loses the index name, which is normally kept when doing a groupby. ```python df.groupby('a')['b'].apply(lambda col: col.cumsum()) ``` #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit : b5958ee1999e9aead1938c0bba2b674378807b3d python : 3.8.7.final.0 python-bits : 64 OS : Darwin OS-release : 20.4.0 Version : Darwin Kernel Version 20.4.0: Fri Mar 5 03:57:04 PST 2021; root:xnu-7195.101.1~4/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.1.5 numpy : 1.19.4 pytz : 2020.5 dateutil : 2.8.1 pip : None setuptools : 50.3.1.post0 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 4.5.2 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 : None fastparquet : None gcsfs : None matplotlib : 3.3.3 numexpr : 2.7.2 odfpy : None openpyxl : 3.0.5 pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : None scipy : 1.6.0 sqlalchemy : 1.3.20 tables : 3.6.1 tabulate : 0.8.7 xarray : None xlrd : 1.2.0 xlwt : 1.3.0 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/40488/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40488/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40489
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40489/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40489/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40489/events
https://github.com/pandas-dev/pandas/issues/40489
834,233,195
MDU6SXNzdWU4MzQyMzMxOTU=
40,489
API: numeric inference in Series constructor
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "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": "8dd5fc", "default": false, "description": "Series data structure", "id": 1357732944, "name": "Series", "node_id": "MDU6TGFiZWwxMzU3NzMyOTQ0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Series" }, { "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" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 1203, "created_at": "2021-06-09T18:28:42Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2021-12-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/86", "id": 6840253, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels", "node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==", "number": 86, "open_issues": 77, "state": "open", "title": "1.4", "updated_at": "2021-11-21T02:34:31Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86" }
6
2021-03-17T22:42:46Z
2021-08-08T23:34:29Z
2021-08-08T23:34:29Z
MEMBER
null
`Index.__new__` does inference on _numeric_ data more aggressively than `Series.__new__`. It would be nice if these behaviors matched. (xref #40451 also about differenced between Series vs Index inference, though in that case Series is more aggressive about inference) ``` data = np.array([np.nan, np.nan, 2.0], dtype=object) >>> pd.Series(data).dtype dtype('O') >>> pd.Index(data).dtype dtype('float64') >>> pd.array(data).dtype Float64Dtype() ``` (if we passed data[:-1] to pd.array we'd get back a PandasArray[object] bc it passes skipna=True to `lib.infer_dtype`) Changing the Series behavior to match Index breaks 207 tests (140 of which are for the str accessor; i expect some others are false-positives), so this would be a non-trivial API change.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40489/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40489/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40490
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40490/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40490/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40490/events
https://github.com/pandas-dev/pandas/pull/40490
834,236,481
MDExOlB1bGxSZXF1ZXN0NTk1MDk3OTc5
40,490
REF: share to_native_types with ArrayManager
{ "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
[]
null
3
2021-03-17T22:50:04Z
2021-03-19T17:01:12Z
2021-03-19T16:46:37Z
MEMBER
null
also combine implementations of Block.fill_value
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40490/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40490/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40490.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40490", "merged_at": "2021-03-19T16:46:37Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40490.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40490" }
https://api.github.com/repos/pandas-dev/pandas/issues/40491
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40491/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40491/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40491/events
https://github.com/pandas-dev/pandas/pull/40491
834,285,010
MDExOlB1bGxSZXF1ZXN0NTk1MTM2Mjk1
40,491
CLN: sqlalchemy deprecation, annotations, share shape properties
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" }, { "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-18T00:42:26Z
2021-03-20T01:47:46Z
2021-03-20T01:18:39Z
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/40491/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40491/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40491.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40491", "merged_at": "2021-03-20T01:18:39Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40491.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40491" }
https://api.github.com/repos/pandas-dev/pandas/issues/40492
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40492/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40492/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40492/events
https://github.com/pandas-dev/pandas/pull/40492
834,344,558
MDExOlB1bGxSZXF1ZXN0NTk1MTc4NDAz
40,492
Two missing spaces in documentation
{ "avatar_url": "https://avatars.githubusercontent.com/u/16674643?v=4", "events_url": "https://api.github.com/users/maciejkos/events{/privacy}", "followers_url": "https://api.github.com/users/maciejkos/followers", "following_url": "https://api.github.com/users/maciejkos/following{/other_user}", "gists_url": "https://api.github.com/users/maciejkos/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/maciejkos", "id": 16674643, "login": "maciejkos", "node_id": "MDQ6VXNlcjE2Njc0NjQz", "organizations_url": "https://api.github.com/users/maciejkos/orgs", "received_events_url": "https://api.github.com/users/maciejkos/received_events", "repos_url": "https://api.github.com/users/maciejkos/repos", "site_admin": false, "starred_url": "https://api.github.com/users/maciejkos/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/maciejkos/subscriptions", "type": "User", "url": "https://api.github.com/users/maciejkos" }
[]
closed
false
null
[]
null
2
2021-03-18T03:04:34Z
2021-04-11T00:32:25Z
2021-04-11T00:32:24Z
CONTRIBUTOR
null
I fixed the missing space that made the documentation render "isthe" instead of "is the". Before the change: - This **isthe** equivalent of the numpy.ndarray method argmax. - This **isthe** equivalent of the numpy.ndarray method argmin. After the change: - This **is the** equivalent of the numpy.ndarray method argmax. - This **is the** equivalent of the numpy.ndarray method argmin. - [ ] 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/40492/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40492/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40492.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40492", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/40492.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40492" }
https://api.github.com/repos/pandas-dev/pandas/issues/40493
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40493/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40493/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40493/events
https://github.com/pandas-dev/pandas/pull/40493
834,489,463
MDExOlB1bGxSZXF1ZXN0NTk1MjkzODgz
40,493
DOC: Styler docs - split PR from #39720
{ "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": "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-18T07:40:03Z
2021-03-20T08:08:54Z
2021-03-20T01:17:05Z
CONTRIBUTOR
null
Split the docs upgrade in #39720 into these smaller changes just to `style.py` and will focus *only* on the user guide in that PR after this.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40493/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40493/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40493.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40493", "merged_at": "2021-03-20T01:17:05Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40493.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40493" }
https://api.github.com/repos/pandas-dev/pandas/issues/40494
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40494/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40494/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40494/events
https://github.com/pandas-dev/pandas/pull/40494
834,494,161
MDExOlB1bGxSZXF1ZXN0NTk1Mjk3Nzg4
40,494
[ArrayManager] TST: enable remaining top-level 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" }
0
2021-03-18T07:46:20Z
2021-03-18T10:09:24Z
2021-03-18T10:09:19Z
MEMBER
null
xref https://github.com/pandas-dev/pandas/issues/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/40494/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40494/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40494.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40494", "merged_at": "2021-03-18T10:09:18Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40494.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40494" }
https://api.github.com/repos/pandas-dev/pandas/issues/40495
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40495/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40495/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40495/events
https://github.com/pandas-dev/pandas/pull/40495
834,511,728
MDExOlB1bGxSZXF1ZXN0NTk1MzEyMjU4
40,495
[ArrayManager] TST: run all tests with separate not slow / slow build
{ "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" }
5
2021-03-18T08:10:16Z
2021-03-20T19:55:21Z
2021-03-20T01:15:23Z
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/40495/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40495/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40495.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40495", "merged_at": "2021-03-20T01:15:23Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40495.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40495" }
https://api.github.com/repos/pandas-dev/pandas/issues/40496
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40496/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40496/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40496/events
https://github.com/pandas-dev/pandas/pull/40496
834,540,502
MDExOlB1bGxSZXF1ZXN0NTk1MzM1MjI4
40,496
[ArrayManager] TST: include subset of ArrayManager tests in all CI builds
{ "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" }
11
2021-03-18T08:48:04Z
2021-03-31T20:00:30Z
2021-03-25T08:28:21Z
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/40496/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40496/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40496.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40496", "merged_at": "2021-03-25T08:28:21Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40496.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40496" }
https://api.github.com/repos/pandas-dev/pandas/issues/40497
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40497/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40497/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40497/events
https://github.com/pandas-dev/pandas/issues/40497
834,885,212
MDU6SXNzdWU4MzQ4ODUyMTI=
40,497
TST: rewrite test_expressions.py to use pytest idioms
{ "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": "f3afff", "default": false, "description": "pd.eval, query", "id": 1631985267, "name": "expressions", "node_id": "MDU6TGFiZWwxNjMxOTg1MjY3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/expressions" } ]
open
false
null
[]
{ "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" }
0
2021-03-18T14:30:13Z
2021-08-19T02:37:51Z
null
MEMBER
null
The [`test_expressions.py` test file](https://github.com/pandas-dev/pandas/blob/master/pandas/tests/test_expressions.py) could be updated to use some more pytest features (eg using fixtures for the test data, using fixture for the setup/teardown to set `_MIN_ELEMENTS`)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40497/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40497/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40498
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40498/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40498/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40498/events
https://github.com/pandas-dev/pandas/issues/40498
834,905,300
MDU6SXNzdWU4MzQ5MDUzMDA=
40,498
BUG: Series.fillna is altering None values of unspecified columns
{ "avatar_url": "https://avatars.githubusercontent.com/u/9357108?v=4", "events_url": "https://api.github.com/users/RSchweiger/events{/privacy}", "followers_url": "https://api.github.com/users/RSchweiger/followers", "following_url": "https://api.github.com/users/RSchweiger/following{/other_user}", "gists_url": "https://api.github.com/users/RSchweiger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/RSchweiger", "id": 9357108, "login": "RSchweiger", "node_id": "MDQ6VXNlcjkzNTcxMDg=", "organizations_url": "https://api.github.com/users/RSchweiger/orgs", "received_events_url": "https://api.github.com/users/RSchweiger/received_events", "repos_url": "https://api.github.com/users/RSchweiger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/RSchweiger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RSchweiger/subscriptions", "type": "User", "url": "https://api.github.com/users/RSchweiger" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" }, { "color": "8dd5fc", "default": false, "description": "Series data structure", "id": 1357732944, "name": "Series", "node_id": "MDU6TGFiZWwxMzU3NzMyOTQ0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Series" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 1203, "created_at": "2021-06-09T18:28:42Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2021-12-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/86", "id": 6840253, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels", "node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==", "number": 86, "open_issues": 77, "state": "open", "title": "1.4", "updated_at": "2021-11-21T02:34:31Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86" }
5
2021-03-18T14:50:41Z
2021-10-26T19:54:58Z
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 (1.0.5) `series = pd.Series({'1':1,'2':None,'3':np.nan, '4':''}) ` will create a series which looks like: 1 1 2 None 3 NaN 4 dtype: object When using the fillna method on this series on index 3 it changes also the entry in index 2! series.fillna({'3':0}) This will result in a output as follows: 1 1 2 NaN 3 0 4 dtype: object **Problem:** The value at index 2 changed from None to NaN. **Expected Behaviour:** The value at index 2 should never be touched when using fillna and specifying the indices you want to alter.
{ "+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/40498/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40498/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40499
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40499/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40499/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40499/events
https://github.com/pandas-dev/pandas/issues/40499
834,939,044
MDU6SXNzdWU4MzQ5MzkwNDQ=
40,499
BUG: pandas cannot open xlsx with openpyxl engine
{ "avatar_url": "https://avatars.githubusercontent.com/u/80660132?v=4", "events_url": "https://api.github.com/users/newbie9188/events{/privacy}", "followers_url": "https://api.github.com/users/newbie9188/followers", "following_url": "https://api.github.com/users/newbie9188/following{/other_user}", "gists_url": "https://api.github.com/users/newbie9188/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/newbie9188", "id": 80660132, "login": "newbie9188", "node_id": "MDQ6VXNlcjgwNjYwMTMy", "organizations_url": "https://api.github.com/users/newbie9188/orgs", "received_events_url": "https://api.github.com/users/newbie9188/received_events", "repos_url": "https://api.github.com/users/newbie9188/repos", "site_admin": false, "starred_url": "https://api.github.com/users/newbie9188/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/newbie9188/subscriptions", "type": "User", "url": "https://api.github.com/users/newbie9188" }
[ { "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": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" } ]
closed
false
null
[]
null
3
2021-03-18T15:24:00Z
2021-03-19T00:57:47Z
2021-03-19T00:57:47Z
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 [NXTS122ND8S10.xlsx](https://github.com/pandas-dev/pandas/files/6165254/NXTS122ND8S10.xlsx) I have this trouble that pandas cannot open any xlsx files. All of the xlsx files can be open and read by excel. Current packages and versions in use: pandas: v1.2.3 openpyxl: v 3.0.7 python : v 3.8.5 method 1: excel = pd.read_excel('NXTS122ND8S10.xlsx',sheet_name='Run results',engine='openpyxl') print(excel) method 2: excel = pd.read_excel(open('NXTS122ND8S10.xlsx','rb'), sheet_name ='Run results') print(excel) method 3: wb = openpyxl.load_workbook('NXTS122ND8S10.xlsx') sheet = wb.worksheets[0] excel = pd.dataframe(sheet.values) print(excel) method 4: excel = pd.read_excel('NXTS122ND8S10.xlsx') print(excel) same error code: Traceback (most recent call last): File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python38-32\lib\site-packages\openpyxl\descriptors\base.py", line 55, in _convert value = expected_type(value) TypeError: Fill() takes no arguments During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\XXXXX\eclipse-workspace\Work Related Projects\transpose_3.py", line 107, in excel = pd.read_excel(open(directory+''+file,'rb'), sheet_name ='Run results') File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\util_decorators.py", line 299, in wrapper return func(*args, **kwargs) File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\io\excel_base.py", line 336, in read_excel io = ExcelFile(io, storage_options=storage_options, engine=engine) File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\io\excel_base.py", line 1131, in init self._reader = self._engines[engine](self._io, storage_options=storage_options) File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\io\excel_openpyxl.py", line 475, in init super().init(filepath_or_buffer, storage_options=storage_options) File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\io\excel_base.py", line 391, in init self.book = self.load_workbook(self.handles.handle) File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\io\excel_openpyxl.py", line 486, in load_workbook return load_workbook( File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python38-32\lib\site-packages\openpyxl\reader\excel.py", line 317, in load_workbook reader.read() File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python38-32\lib\site-packages\openpyxl\reader\excel.py", line 281, in read apply_stylesheet(self.archive, self.wb) File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python38-32\lib\site-packages\openpyxl\styles\stylesheet.py", line 198, in apply_stylesheet stylesheet = Stylesheet.from_tree(node) File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python38-32\lib\site-packages\openpyxl\styles\stylesheet.py", line 103, in from_tree return super(Stylesheet, cls).from_tree(node) File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python38-32\lib\site-packages\openpyxl\descriptors\serialisable.py", line 103, in from_tree return cls(**attrib) File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python38-32\lib\site-packages\openpyxl\styles\stylesheet.py", line 74, in init self.fills = fills File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python38-32\lib\site-packages\openpyxl\descriptors\sequence.py", line 26, in set seq = [_convert(self.expected_type, value) for value in seq] File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python38-32\lib\site-packages\openpyxl\descriptors\sequence.py", line 26, in seq = [_convert(self.expected_type, value) for value in seq] File "C:\Users\XXXXX\AppData\Local\Programs\Python\Python38-32\lib\site-packages\openpyxl\descriptors\base.py", line 57, in _convert raise TypeError('expected ' + str(expected_type)) TypeError: expected <class 'openpyxl.styles.fills.Fill'> ``` #### Problem description [this should explain **why** the current behaviour is a problem and why the expected output is a better solution] #### Expected Output #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag] pandas: v1.2.3 openpyxl: v 3.0.7 python : v 3.8.5 </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/40499/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40499/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40500
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40500/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40500/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40500/events
https://github.com/pandas-dev/pandas/issues/40500
834,997,606
MDU6SXNzdWU4MzQ5OTc2MDY=
40,500
Re-evaluate the minimum number of elements to use numexpr for elementwise ops
{ "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" }
10
2021-03-18T16:07:50Z
2021-03-24T14:08:52Z
2021-03-24T14:08:52Z
MEMBER
null
Currently we have a MIN_ELEMENTS set at 10,000: https://github.com/pandas-dev/pandas/blob/00a622401e06bd7afaaa508707a46f3dcc494fe4/pandas/core/computation/expressions.py#L42-L43 However, I have been noticing while running lots of performance comparisons recently, that numexpr still seems to show some overhead at that array size compared to numpy. I did a few specific timings for a few ops comparing numpy and numexpr for a set of different array sizes: ![image](https://user-images.githubusercontent.com/1020496/111657798-10562c00-880c-11eb-8701-dd59fd8d0bfe.png) <details> <summary>Code used to create the plot</summary> ```python import operator import numpy as np import pandas as pd import numexpr as ne import seaborn as sns results = [] for s in [10**3, 10**4, 10**5, 10**6, 10**7, 10**8]: arr1 = np.random.randn(s) arr2 = np.random.randn(s) for op_str, op in [("+", operator.add), ("*", operator.mul), ("==", operator.eq), ("<=", operator.le)]: res_ne = %timeit -o ne.evaluate(f"a {op_str} b", local_dict={"a": arr1, "b": arr2}, casting="safe") res_np = %timeit -o op(arr1, arr2) results.append({"size": s, "op": op_str, "engine": "numepxr", "timing": res_ne.average, "timing_stdev": res_np.stdev}) results.append({"size": s, "op": op_str, "engine": "numpy", "timing": res_np.average, "timing_stdev": res_np.stdev}) df = pd.DataFrame(results) fig = sns.relplot(data=df, x="size", y="timing", hue="engine", col="op", kind="line", col_wrap=2) fig.set(xscale='log', yscale='log') ``` </details> So in general, numexpr is not *that* much faster for the large arrays. But specifically, it still has a significant overhead compared to numpy up to 1e5 - 1e6, while the current minimum number of elements is 1e4. Further, this might depend on your specific hardware and versions etc (this was run on my linux laptop with 8 cores, using latest versions of numpy and numexpr). So it is always hard to give a default suitable for all. But based on the analysis above, I would propose raising the minimum from 1e4 to 1e5 (or maybe even 1e6).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40500/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40500/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40501
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40501/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40501/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40501/events
https://github.com/pandas-dev/pandas/pull/40501
835,007,939
MDExOlB1bGxSZXF1ZXN0NTk1NzMwMzc4
40,501
PERF: optimize is_numeric_v_string_like
{ "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
[]
null
5
2021-03-18T16:17:55Z
2021-03-19T16:51:32Z
2021-03-19T16:51:29Z
MEMBER
null
In some of the arithmetic benchmarks (xref https://github.com/pandas-dev/pandas/issues/39146#issuecomment-799482699), just this `is_numeric_v_string_like` check takes up 15-35% of the overall time. This improves the performance of this check by using some ndarray-specialized dtype checks (checking the kind instead of the generic functions): ``` In [1]: from pandas.core.dtypes.common import is_numeric_v_string_like In [2]: arr = np.array([1, 2, 3]) In [3]: %timeit is_numeric_v_string_like(arr, 2.0) 2.3 µs ± 46.9 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) # <-- master 482 ns ± 41.8 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each) # <-- PR ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40501/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40501/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40501.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40501", "merged_at": "2021-03-19T16:51:29Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40501.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40501" }
https://api.github.com/repos/pandas-dev/pandas/issues/40502
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40502/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40502/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40502/events
https://github.com/pandas-dev/pandas/pull/40502
835,021,312
MDExOlB1bGxSZXF1ZXN0NTk1NzQyMDky
40,502
PERF: increase the minimum number of elements to use numexpr for ops from 1e4 to 1e6
{ "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" }
3
2021-03-18T16:27:29Z
2021-03-24T08:28:12Z
2021-03-20T01:14:14Z
MEMBER
null
See https://github.com/pandas-dev/pandas/issues/40500 for the analysis.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40502/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40502/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40502.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40502", "merged_at": "2021-03-20T01:14:13Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40502.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40502" }
https://api.github.com/repos/pandas-dev/pandas/issues/40503
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40503/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40503/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40503/events
https://github.com/pandas-dev/pandas/pull/40503
835,124,651
MDExOlB1bGxSZXF1ZXN0NTk1ODI3NTEz
40,503
TYP: nattype.pyi
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
1
2021-03-18T18:27:03Z
2021-03-22T14:30:26Z
2021-03-22T12:43: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/40503/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40503/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40503.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40503", "merged_at": "2021-03-22T12:43:14Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40503.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40503" }
https://api.github.com/repos/pandas-dev/pandas/issues/40504
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40504/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40504/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40504/events
https://github.com/pandas-dev/pandas/issues/40504
835,139,581
MDU6SXNzdWU4MzUxMzk1ODE=
40,504
QST:keyerror message for a dataframe.head().to_dict()
{ "avatar_url": "https://avatars.githubusercontent.com/u/5430158?v=4", "events_url": "https://api.github.com/users/wenouyang/events{/privacy}", "followers_url": "https://api.github.com/users/wenouyang/followers", "following_url": "https://api.github.com/users/wenouyang/following{/other_user}", "gists_url": "https://api.github.com/users/wenouyang/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wenouyang", "id": 5430158, "login": "wenouyang", "node_id": "MDQ6VXNlcjU0MzAxNTg=", "organizations_url": "https://api.github.com/users/wenouyang/orgs", "received_events_url": "https://api.github.com/users/wenouyang/received_events", "repos_url": "https://api.github.com/users/wenouyang/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wenouyang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wenouyang/subscriptions", "type": "User", "url": "https://api.github.com/users/wenouyang" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" }, { "color": "207de5", "default": false, "description": "Clarification about behavior needed to assess issue", "id": 307649777, "name": "Needs Info", "node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2021-03-18T18:47:09Z
2021-03-20T00:22:58Z
2021-03-19T03:09:08Z
NONE
null
- [ ] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions. - [ ] I have asked my usage related question on [StackOverflow](https://stackoverflow.com). I have a dataframe `season_statistics_T1`, its related information is given as follows. Each operation looks normal except `season_statistics_T1.head().to_dict()`, which gives the **keyerror: 'Season' message**. I am not sure why. At the same time, `season_statistics_T1.head().to_dict('records')` works fine. --- ![image](https://user-images.githubusercontent.com/5430158/111680272-0cb4ac00-87f0-11eb-93a5-e41d685bcfe9.png) ![image](https://user-images.githubusercontent.com/5430158/111680311-163e1400-87f0-11eb-89bf-aa4367c8812b.png) ![image](https://user-images.githubusercontent.com/5430158/111680391-2a821100-87f0-11eb-96af-cec9dd0cff97.png) #### 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.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40504/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40504/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40505
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40505/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40505/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40505/events
https://github.com/pandas-dev/pandas/pull/40505
835,186,577
MDExOlB1bGxSZXF1ZXN0NTk1ODgwMTE1
40,505
BUG: Remove artificial precision limit in rolling var & std
{ "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" }
1
2021-03-18T19:41:14Z
2021-03-21T22:02:18Z
2021-03-21T21:06:58Z
MEMBER
null
- [x] closes #37051, xref #40448, xref #39872 - [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/40505/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40505/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40505.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40505", "merged_at": "2021-03-21T21:06:58Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40505.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40505" }
https://api.github.com/repos/pandas-dev/pandas/issues/40506
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40506/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40506/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40506/events
https://github.com/pandas-dev/pandas/pull/40506
835,207,987
MDExOlB1bGxSZXF1ZXN0NTk1ODk3NzU1
40,506
DOC: Fix documentation for DataFrame.groupby.transform
{ "avatar_url": "https://avatars.githubusercontent.com/u/966476?v=4", "events_url": "https://api.github.com/users/vladu/events{/privacy}", "followers_url": "https://api.github.com/users/vladu/followers", "following_url": "https://api.github.com/users/vladu/following{/other_user}", "gists_url": "https://api.github.com/users/vladu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vladu", "id": 966476, "login": "vladu", "node_id": "MDQ6VXNlcjk2NjQ3Ng==", "organizations_url": "https://api.github.com/users/vladu/orgs", "received_events_url": "https://api.github.com/users/vladu/received_events", "repos_url": "https://api.github.com/users/vladu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vladu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vladu/subscriptions", "type": "User", "url": "https://api.github.com/users/vladu" }
[ { "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": "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
[]
{ "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-18T20:10:06Z
2021-03-25T01:45:18Z
2021-03-25T01:09:12Z
CONTRIBUTOR
null
- The doc template should no longer reference "Series" transforms explicitly. - Make consistent the formatting for references to function argument names.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40506/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40506/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40506.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40506", "merged_at": "2021-03-25T01:09:12Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40506.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40506" }
https://api.github.com/repos/pandas-dev/pandas/issues/40507
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40507/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40507/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40507/events
https://github.com/pandas-dev/pandas/pull/40507
835,347,975
MDExOlB1bGxSZXF1ZXN0NTk2MDE5ODM1
40,507
BUG: Respect ignore_index in Series.explode
{ "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": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
1
2021-03-18T23:06:09Z
2021-03-23T21:00:13Z
2021-03-23T20:44:38Z
MEMBER
null
- [x] closes https://github.com/pandas-dev/pandas/issues/40487 - [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/40507/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40507/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40507.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40507", "merged_at": "2021-03-23T20:44:38Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40507.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40507" }
https://api.github.com/repos/pandas-dev/pandas/issues/40508
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40508/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40508/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40508/events
https://github.com/pandas-dev/pandas/pull/40508
835,357,298
MDExOlB1bGxSZXF1ZXN0NTk2MDI3NzE0
40,508
TYP: parsers.pyi
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
2
2021-03-18T23:20:59Z
2021-04-14T14:27:55Z
2021-04-14T14:25:21Z
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/40508/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40508/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40508.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40508", "merged_at": "2021-04-14T14:25:21Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40508.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40508" }
https://api.github.com/repos/pandas-dev/pandas/issues/40509
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40509/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40509/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40509/events
https://github.com/pandas-dev/pandas/pull/40509
835,426,256
MDExOlB1bGxSZXF1ZXN0NTk2MDg2Mjk3
40,509
BUG: fillna overwriting other missing vals
{ "avatar_url": "https://avatars.githubusercontent.com/u/37011898?v=4", "events_url": "https://api.github.com/users/mzeitlin11/events{/privacy}", "followers_url": "https://api.github.com/users/mzeitlin11/followers", "following_url": "https://api.github.com/users/mzeitlin11/following{/other_user}", "gists_url": "https://api.github.com/users/mzeitlin11/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mzeitlin11", "id": 37011898, "login": "mzeitlin11", "node_id": "MDQ6VXNlcjM3MDExODk4", "organizations_url": "https://api.github.com/users/mzeitlin11/orgs", "received_events_url": "https://api.github.com/users/mzeitlin11/received_events", "repos_url": "https://api.github.com/users/mzeitlin11/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mzeitlin11/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mzeitlin11/subscriptions", "type": "User", "url": "https://api.github.com/users/mzeitlin11" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" } ]
closed
false
null
[]
null
3
2021-03-19T01:18:49Z
2021-04-03T00:33:00Z
2021-04-03T00:33:00Z
MEMBER
null
- [x] closes #40498 - [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/40509/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40509/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40509.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40509", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/40509.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40509" }
https://api.github.com/repos/pandas-dev/pandas/issues/40510
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40510/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40510/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40510/events
https://github.com/pandas-dev/pandas/pull/40510
835,438,893
MDExOlB1bGxSZXF1ZXN0NTk2MDk3MzQ2
40,510
CLN/PERF: remove unused out kwd in take_nd
{ "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": "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" }
8
2021-03-19T01:39:03Z
2021-04-06T19:19:10Z
2021-03-22T14:32:36Z
MEMBER
null
And in a few places where we know allow_fill=False, just call the numpy version directly.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40510/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40510/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40510.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40510", "merged_at": "2021-03-22T14:32:36Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40510.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40510" }
https://api.github.com/repos/pandas-dev/pandas/issues/40511
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40511/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40511/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40511/events
https://github.com/pandas-dev/pandas/pull/40511
835,529,393
MDExOlB1bGxSZXF1ZXN0NTk2MTc1NzY2
40,511
CI: move 32-bit build to container job
{ "avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4", "events_url": "https://api.github.com/users/fangchenli/events{/privacy}", "followers_url": "https://api.github.com/users/fangchenli/followers", "following_url": "https://api.github.com/users/fangchenli/following{/other_user}", "gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fangchenli", "id": 7614606, "login": "fangchenli", "node_id": "MDQ6VXNlcjc2MTQ2MDY=", "organizations_url": "https://api.github.com/users/fangchenli/orgs", "received_events_url": "https://api.github.com/users/fangchenli/received_events", "repos_url": "https://api.github.com/users/fangchenli/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions", "type": "User", "url": "https://api.github.com/users/fangchenli" }
[]
closed
false
null
[]
null
1
2021-03-19T03:54:57Z
2021-03-19T06:27:30Z
2021-03-19T06:27:30Z
MEMBER
null
Run 32-bit build in a container job to separate build steps.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40511/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40511/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40511.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40511", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/40511.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40511" }
https://api.github.com/repos/pandas-dev/pandas/issues/40512
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40512/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40512/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40512/events
https://github.com/pandas-dev/pandas/issues/40512
835,550,596
MDU6SXNzdWU4MzU1NTA1OTY=
40,512
Pandas multiindex unstack fillna not working
{ "avatar_url": "https://avatars.githubusercontent.com/u/17213330?v=4", "events_url": "https://api.github.com/users/YuSeunghyun/events{/privacy}", "followers_url": "https://api.github.com/users/YuSeunghyun/followers", "following_url": "https://api.github.com/users/YuSeunghyun/following{/other_user}", "gists_url": "https://api.github.com/users/YuSeunghyun/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/YuSeunghyun", "id": 17213330, "login": "YuSeunghyun", "node_id": "MDQ6VXNlcjE3MjEzMzMw", "organizations_url": "https://api.github.com/users/YuSeunghyun/orgs", "received_events_url": "https://api.github.com/users/YuSeunghyun/received_events", "repos_url": "https://api.github.com/users/YuSeunghyun/repos", "site_admin": false, "starred_url": "https://api.github.com/users/YuSeunghyun/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/YuSeunghyun/subscriptions", "type": "User", "url": "https://api.github.com/users/YuSeunghyun" }
[]
closed
false
null
[]
null
4
2021-03-19T04:32:11Z
2021-03-20T03:45:14Z
2021-03-20T03:45:13Z
NONE
null
When we unstacking the multi-indexed pandas `dataframe`, the method `fillna` does not work. Here is an example. ```python import numpy as np import pandas as pd df = pd.DataFrame(np.random.randint(0,10,(5,4)), columns=['c1','c2','c3','c4']) df.iloc[1,2] = np.nan df.iloc[0,0] = np.nan df['ind1'] = ['a','a','b','b','c'] df['ind2'] = [1,2,1,2,1] df = df.set_index(['ind1','ind2']) print(df) ``` Now we have `df` with some `NaN` values. ``` c1 c2 c3 c4 ind1 ind2 a 1 NaN 2 1.0 9 2 9.0 5 NaN 7 b 1 1.0 7 2.0 8 2 3.0 6 0.0 2 c 1 9.0 6 6.0 6 ``` Then fillna to the unstacked `df` does not work. ```python print(df.unstack().fillna(0)) ``` ``` c1 c2 c3 c4 ind2 1 2 1 2 1 2 1 2 ind1 a 0.0 9.0 2.0 5.0 1.0 0.0 9.0 7.0 b 1.0 3.0 7.0 6.0 2.0 0.0 8.0 2.0 c 9.0 0.0 6.0 NaN 6.0 0.0 6.0 NaN ``` I raised this issue at [stack overflow](https://stackoverflow.com/questions/66692036/pandas-multiindex-unstack-fillna-not-working), and I suspect this is a bug. I would appreciate to fix this problem. Thanks, > **Note** > The `pandas` version is `1.1.3` (current version in Anaconda), and there is no issue with the version `==1.2.1`.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40512/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40512/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40513
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40513/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40513/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40513/events
https://github.com/pandas-dev/pandas/pull/40513
835,572,942
MDExOlB1bGxSZXF1ZXN0NTk2MjEzMTg0
40,513
CLN/TYP: remove unused arguments in merge
{ "avatar_url": "https://avatars.githubusercontent.com/u/37011898?v=4", "events_url": "https://api.github.com/users/mzeitlin11/events{/privacy}", "followers_url": "https://api.github.com/users/mzeitlin11/followers", "following_url": "https://api.github.com/users/mzeitlin11/following{/other_user}", "gists_url": "https://api.github.com/users/mzeitlin11/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mzeitlin11", "id": 37011898, "login": "mzeitlin11", "node_id": "MDQ6VXNlcjM3MDExODk4", "organizations_url": "https://api.github.com/users/mzeitlin11/orgs", "received_events_url": "https://api.github.com/users/mzeitlin11/received_events", "repos_url": "https://api.github.com/users/mzeitlin11/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mzeitlin11/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mzeitlin11/subscriptions", "type": "User", "url": "https://api.github.com/users/mzeitlin11" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" }, { "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-19T05:11:09Z
2021-03-21T21:48:22Z
2021-03-21T21:12:06Z
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/40513/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40513/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40513.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40513", "merged_at": "2021-03-21T21:12:06Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40513.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40513" }
https://api.github.com/repos/pandas-dev/pandas/issues/40514
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40514/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40514/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40514/events
https://github.com/pandas-dev/pandas/issues/40514
835,651,438
MDU6SXNzdWU4MzU2NTE0Mzg=
40,514
BUG: json_normalize does not handle combining nested record_path and nested meta as expected
{ "avatar_url": "https://avatars.githubusercontent.com/u/13930443?v=4", "events_url": "https://api.github.com/users/maegul/events{/privacy}", "followers_url": "https://api.github.com/users/maegul/followers", "following_url": "https://api.github.com/users/maegul/following{/other_user}", "gists_url": "https://api.github.com/users/maegul/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/maegul", "id": 13930443, "login": "maegul", "node_id": "MDQ6VXNlcjEzOTMwNDQz", "organizations_url": "https://api.github.com/users/maegul/orgs", "received_events_url": "https://api.github.com/users/maegul/received_events", "repos_url": "https://api.github.com/users/maegul/repos", "site_admin": false, "starred_url": "https://api.github.com/users/maegul/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/maegul/subscriptions", "type": "User", "url": "https://api.github.com/users/maegul" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" } ]
open
false
null
[]
null
0
2021-03-19T07:31:17Z
2021-08-19T02:39:18Z
null
NONE
null
- [X ] I have checked that this issue has not already been reported. - [ X] I have confirmed this bug exists on the latest version of pandas. - [X ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python # dummy data test_data = {'a': 1, 'b': 2, 'c': {'cc': [333, 444]}, # records 'd': {'dd': 'meta'} # meta } # this works fine basic_meta = pd.json_normalize(test_data, ['c', 'cc'], meta=['a']) # this too basic_meta = pd.json_normalize(test_data, ['c', 'cc'], meta=['a', ['d']]) # this does not # exception: KeyError: "Try running with errors='ignore' as key 'dd' is not always present" nested_meta = pd.json_normalize(test_data, ['c', 'cc'], meta=['a', ['d', 'dd']]) ``` #### Problem description See related https://github.com/pandas-dev/pandas/issues/27220 I don't think this behaviour is expected or documented. I think the expected behaviour would be to produce a 'd.dd' column containing 'meta' strings. Mostly because this would be the result if the `record_path` were not nested. Having a shot at debugging the code in `pandas/io/json/_normalize.py`, I suspect I know where the problem is. In the function `_recursive_extract()`, at the top, we have: ```python def _recursive_extract(data, path, seen_meta, level=0): if isinstance(data, dict): data = [data] if len(path) > 1: for obj in data: for val, key in zip(_meta, meta_keys): if level + 1 == len(val): seen_meta[key] = _pull_field(obj, val[-1]) # problematic line V--- object is recursed into, which cuts off remaining metadata that also needs to be recursed into _recursive_extract(obj[path[0]], path[1:], seen_meta, level=level + 1) ``` In the line at the bottom of the extract above, the data object is recursed into, because the `record_path` (the `path` variable here) is nested. But as a result the next iteration only has access to the next level of the `record_path` and nothing else including the whole of the meta data that also needs to be recursed into. The remaining code in `_recursive_extract` tries to perform just this recursion into the remaining metadata, but can't find *any* metadata and so fails. **This can be more or less proven by an absurd example that doesn't fail.** Here, the `meta` path will be partially (but not completely) duplicated within the `record_path`. ```python test_data = {'a': 1, 'b': 2, 'c': {'cc': [333, 444], 'dd': 'wrong_meta'}, # 'dd' is a duplication of the second level of the meta path 'd': {'dd': 'meta'} # original meta_path } ``` And now the code from above will not fail, but produce the wrong but different output again. ```python bad_meta = pd.json_normalize(test_data, ['c', 'cc'], meta=['a', ['d', 'dd']]) ``` This produces the table below where the `'dd'` key within the dict at `'c'` has been taken up as the metadata because it does survive the recursion process. | | 0 | a | d.dd | |---:|----:|----:|:-----------| | 0 | 333 | 1 | wrong_meta | | 1 | 444 | 1 | wrong_meta | Though I'm not on top of this code base, the solution could be adjusting `_recursive_extract` to take a separate metadata argument so that it can be separately recursed into, or, somehow separating the treatment of records and metadata at the appropriate node in the tree of the data. #### Expected Output To produce a 'd.dd' column containing 'meta' strings. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : f2c8480af2f25efdbd803218b9d87980f416563e python : 3.8.6.final.0 python-bits : 64 OS : Linux OS-release : 4.14.186-146.268.amzn2.x86_64 Version : #1 SMP Tue Jul 14 18:16:52 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.2.3 numpy : 1.19.0 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 49.2.0.post20200712 Cython : 0.29.21 pytest : 6.2.1 hypothesis : 6.0.2 sphinx : None blosc : None feather : None xlsxwriter : 1.3.7 lxml.etree : 4.6.2 html5lib : None pymysql : None psycopg2 : 2.8.6 (dt dec pq3 ext lo64) jinja2 : 2.11.2 IPython : 7.16.1 pandas_datareader: None bs4 : 4.9.1 bottleneck : 1.3.2 fsspec : 0.7.4 fastparquet : None gcsfs : None matplotlib : 3.2.2 numexpr : 2.7.1 odfpy : None openpyxl : 3.0.6 pandas_gbq : None pyarrow : 0.17.1 pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : 1.3.18 tables : 3.6.1 tabulate : 0.8.7 xarray : 0.16.2 xlrd : 1.2.0 xlwt : 1.3.0 numba : 0.48.0 </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/40514/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40514/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40515
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40515/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40515/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40515/events
https://github.com/pandas-dev/pandas/pull/40515
835,700,503
MDExOlB1bGxSZXF1ZXN0NTk2MzE4NjYw
40,515
CLN/PERF: remove catching of numpy deprecation warning in comparison_op
{ "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" }, { "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-19T08:35:33Z
2021-03-19T17:15:29Z
2021-03-19T17:15:26Z
MEMBER
null
xref https://github.com/pandas-dev/pandas/issues/39146 In some of the `FrameWithFrameWide` benchmarks, this takes up around 15% of the time. While I don't think this should be needed (but let's see if warnings appear in the CI builds).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40515/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40515/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40515.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40515", "merged_at": "2021-03-19T17:15:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40515.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40515" }
https://api.github.com/repos/pandas-dev/pandas/issues/40516
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40516/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40516/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40516/events
https://github.com/pandas-dev/pandas/pull/40516
835,710,133
MDExOlB1bGxSZXF1ZXN0NTk2MzI2Njgw
40,516
STYLE no no-string-hints, combine some hooks
{ "avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4", "events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}", "followers_url": "https://api.github.com/users/MarcoGorelli/followers", "following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}", "gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MarcoGorelli", "id": 33491632, "login": "MarcoGorelli", "node_id": "MDQ6VXNlcjMzNDkxNjMy", "organizations_url": "https://api.github.com/users/MarcoGorelli/orgs", "received_events_url": "https://api.github.com/users/MarcoGorelli/received_events", "repos_url": "https://api.github.com/users/MarcoGorelli/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions", "type": "User", "url": "https://api.github.com/users/MarcoGorelli" }
[ { "color": "eb6420", "default": false, "description": "Code style, linting, code_checks", "id": 106935113, "name": "Code Style", "node_id": "MDU6TGFiZWwxMDY5MzUxMTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
1
2021-03-19T08:46:09Z
2021-03-19T15:01:36Z
2021-03-19T14:47:39Z
MEMBER
null
I got a PR into [pyupgrade](https://github.com/asottile/pyupgrade/blob/c90a455fceacdecc7484dab8519688353b6b2931/pyupgrade/_plugins/typing_pep563.py) to do what no-string-hints did (and in a much better way, their maintainer is amazing), so my little tool can be archived / removed from here :tada: Also combining some other hooks while I'm here
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40516/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40516/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/40516.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/40516", "merged_at": "2021-03-19T14:47:39Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/40516.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/40516" }
https://api.github.com/repos/pandas-dev/pandas/issues/40517
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40517/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40517/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40517/events
https://github.com/pandas-dev/pandas/issues/40517
835,870,278
MDU6SXNzdWU4MzU4NzAyNzg=
40,517
BUG: NonExistentTimeError when resampling series localized to 'America/Santiago'
{ "avatar_url": "https://avatars.githubusercontent.com/u/34656862?v=4", "events_url": "https://api.github.com/users/giuliobeseghi/events{/privacy}", "followers_url": "https://api.github.com/users/giuliobeseghi/followers", "following_url": "https://api.github.com/users/giuliobeseghi/following{/other_user}", "gists_url": "https://api.github.com/users/giuliobeseghi/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/giuliobeseghi", "id": 34656862, "login": "giuliobeseghi", "node_id": "MDQ6VXNlcjM0NjU2ODYy", "organizations_url": "https://api.github.com/users/giuliobeseghi/orgs", "received_events_url": "https://api.github.com/users/giuliobeseghi/received_events", "repos_url": "https://api.github.com/users/giuliobeseghi/repos", "site_admin": false, "starred_url": "https://api.github.com/users/giuliobeseghi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/giuliobeseghi/subscriptions", "type": "User", "url": "https://api.github.com/users/giuliobeseghi" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" }, { "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" } ]
open
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/23253999?v=4", "events_url": "https://api.github.com/users/AlexKirko/events{/privacy}", "followers_url": "https://api.github.com/users/AlexKirko/followers", "following_url": "https://api.github.com/users/AlexKirko/following{/other_user}", "gists_url": "https://api.github.com/users/AlexKirko/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/AlexKirko", "id": 23253999, "login": "AlexKirko", "node_id": "MDQ6VXNlcjIzMjUzOTk5", "organizations_url": "https://api.github.com/users/AlexKirko/orgs", "received_events_url": "https://api.github.com/users/AlexKirko/received_events", "repos_url": "https://api.github.com/users/AlexKirko/repos", "site_admin": false, "starred_url": "https://api.github.com/users/AlexKirko/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AlexKirko/subscriptions", "type": "User", "url": "https://api.github.com/users/AlexKirko" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/23253999?v=4", "events_url": "https://api.github.com/users/AlexKirko/events{/privacy}", "followers_url": "https://api.github.com/users/AlexKirko/followers", "following_url": "https://api.github.com/users/AlexKirko/following{/other_user}", "gists_url": "https://api.github.com/users/AlexKirko/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/AlexKirko", "id": 23253999, "login": "AlexKirko", "node_id": "MDQ6VXNlcjIzMjUzOTk5", "organizations_url": "https://api.github.com/users/AlexKirko/orgs", "received_events_url": "https://api.github.com/users/AlexKirko/received_events", "repos_url": "https://api.github.com/users/AlexKirko/repos", "site_admin": false, "starred_url": "https://api.github.com/users/AlexKirko/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AlexKirko/subscriptions", "type": "User", "url": "https://api.github.com/users/AlexKirko" } ]
null
12
2021-03-19T11:21:44Z
2021-04-14T18:23:25Z
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 s = pd.Series(0.0, pd.date_range('2001-10-14 02:00', periods=2, freq='1H', tz='America/Santiago')) s.resample('30T').max() # raises error for '2001-10-14 00:00', which is not in the index ``` #### Problem description This shouldn't raise an error, as there is no ambiguity on how the resampling should be made. Also it isn't clear why it raises an error for the '2001-10-14 00:00' timestamp, which is not in the index. #### Expected Output #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : f2c8480af2f25efdbd803218b9d87980f416563e python : 3.8.8.final.0 python-bits : 64 OS : Darwin OS-release : 20.2.0 Version : Darwin Kernel Version 20.2.0: Wed Dec 2 20:39:59 PST 2020; root:xnu-7195.60.75~1/RELEASE_X86_64 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : None LOCALE : None.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 : 0.29.22 pytest : 6.2.2 hypothesis : None sphinx : 3.5.2 blosc : None feather : None xlsxwriter : 1.3.7 lxml.etree : 4.6.2 html5lib : 1.1 pymysql : None psycopg2 : None jinja2 : 2.11.3 IPython : 7.21.0 pandas_datareader: None bs4 : 4.9.3 bottleneck : 1.3.2 fsspec : 0.8.3 fastparquet : None gcsfs : None matplotlib : 3.3.4 numexpr : 2.7.3 odfpy : None openpyxl : 3.0.7 pandas_gbq : None pyarrow : None pyxlsb : None s3fs : None scipy : 1.6.1 sqlalchemy : 1.3.23 tables : 3.6.1 tabulate : None xarray : None xlrd : 2.0.1 xlwt : 1.3.0 numba : 0.53.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40517/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40517/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/40518
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/40518/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/40518/comments
https://api.github.com/repos/pandas-dev/pandas/issues/40518/events
https://github.com/pandas-dev/pandas/issues/40518
835,933,729
MDU6SXNzdWU4MzU5MzM3Mjk=
40,518
BUG: Unexpected behaviour of groupby + rank(pct=True, method="dense")
{ "avatar_url": "https://avatars.githubusercontent.com/u/17123348?v=4", "events_url": "https://api.github.com/users/velikod/events{/privacy}", "followers_url": "https://api.github.com/users/velikod/followers", "following_url": "https://api.github.com/users/velikod/following{/other_user}", "gists_url": "https://api.github.com/users/velikod/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/velikod", "id": 17123348, "login": "velikod", "node_id": "MDQ6VXNlcjE3MTIzMzQ4", "organizations_url": "https://api.github.com/users/velikod/orgs", "received_events_url": "https://api.github.com/users/velikod/received_events", "repos_url": "https://api.github.com/users/velikod/repos", "site_admin": false, "starred_url": "https://api.github.com/users/velikod/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/velikod/subscriptions", "type": "User", "url": "https://api.github.com/users/velikod" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "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
{ "avatar_url": "https://avatars.githubusercontent.com/u/37011898?v=4", "events_url": "https://api.github.com/users/mzeitlin11/events{/privacy}", "followers_url": "https://api.github.com/users/mzeitlin11/followers", "following_url": "https://api.github.com/users/mzeitlin11/following{/other_user}", "gists_url": "https://api.github.com/users/mzeitlin11/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mzeitlin11", "id": 37011898, "login": "mzeitlin11", "node_id": "MDQ6VXNlcjM3MDExODk4", "organizations_url": "https://api.github.com/users/mzeitlin11/orgs", "received_events_url": "https://api.github.com/users/mzeitlin11/received_events", "repos_url": "https://api.github.com/users/mzeitlin11/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mzeitlin11/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mzeitlin11/subscriptions", "type": "User", "url": "https://api.github.com/users/mzeitlin11" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/37011898?v=4", "events_url": "https://api.github.com/users/mzeitlin11/events{/privacy}", "followers_url": "https://api.github.com/users/mzeitlin11/followers", "following_url": "https://api.github.com/users/mzeitlin11/following{/other_user}", "gists_url": "https://api.github.com/users/mzeitlin11/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mzeitlin11", "id": 37011898, "login": "mzeitlin11", "node_id": "MDQ6VXNlcjM3MDExODk4", "organizations_url": "https://api.github.com/users/mzeitlin11/orgs", "received_events_url": "https://api.github.com/users/mzeitlin11/received_events", "repos_url": "https://api.github.com/users/mzeitlin11/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mzeitlin11/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mzeitlin11/subscriptions", "type": "User", "url": "https://api.github.com/users/mzeitlin11" } ]
{ "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-19T12:27:08Z
2021-04-01T15:54:05Z
2021-04-01T15:54:05Z
NONE
null
- [x] I have checked that this issue has not already been reported. There was a [previous issue](https://github.com/pandas-dev/pandas/issues/15630) about `rank(pct=True, method="dense")` but it was about applying it to `pd.Series` and has been resolved. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python import pandas as pd import numpy as np data = [ [1, 3, 1], [1, 3, -5], [1, 3, 3], [1, 3, 3], [2, 3, np.nan], [1, 3, np.nan], ] df = pd.DataFrame(data, columns=["gr1", "gr2", "val"]) df["r"] = df.groupby(["gr1", "gr2"])["val"].rank( method="dense", pct=True ) print(df) ``` ##### Output: ``` gr1 gr2 val r 0 1 3 1.0 1.0 1 1 3 -5.0 0.5 2 1 3 3.0 1.5 3 1 3 3.0 1.5 4 2 3 NaN NaN 5 1 3 NaN NaN ``` #### Problem description The `pct=True` option should always return values in `[0,1]`. If we remove the row with `gr1==2` there is no issue. Somehow the rank function miscounts the number of elements in each group which should be used to turn the ranked series to `[0,1]` ranked series. Note that `pd.Series([1,-5,3,3,np.nan]).rank(pct=True, method='dense').values` returns the desired output: `array([0.66666667, 0.33333333, 1. , 1. , nan])` so the issue is related to `groupby`. Also, trying out all the options of `na_option` gives undesired result. #### Expected Output ``` gr1 gr2 val r 0 1 3 1.0 0.666667 1 1 3 -5.0 0.333333 2 1 3 3.0 1.000000 3 1 3 3.0 1.000000 4 2 3 NaN NaN 5 1 3 NaN NaN ``` <details> INSTALLED VERSIONS ------------------ commit : f2c8480af2f25efdbd803218b9d87980f416563e python : 3.9.2.final.0 python-bits : 64 OS : Darwin OS-release : 20.3.0 Version : Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : None LOCALE : None.UTF-8 pandas : 1.2.3 numpy : 1.20.1 pytz : 2021.1 dateutil : 2.8.1 pip : 21.0.1 setuptools : 54.1.2 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : None pandas_datareader: None bs4 : None bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/40518/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/40518/timeline
null
null
null