url
stringlengths
59
59
repository_url
stringclasses
1 value
labels_url
stringlengths
73
73
comments_url
stringlengths
68
68
events_url
stringlengths
66
66
html_url
stringlengths
47
49
id
int64
2.5B
2.57B
node_id
stringlengths
18
19
number
int64
59.7k
60k
title
stringlengths
12
140
user
dict
labels
listlengths
0
6
state
stringclasses
1 value
locked
bool
1 class
assignee
dict
assignees
listlengths
0
3
milestone
dict
comments
int64
0
19
created_at
timestamp[ms]
updated_at
timestamp[ms]
closed_at
null
author_association
stringclasses
3 values
active_lock_reason
null
draft
bool
2 classes
pull_request
dict
body
stringlengths
31
9.55k
closed_by
dict
reactions
dict
timeline_url
stringlengths
68
68
performed_via_github_app
null
state_reason
stringclasses
1 value
https://api.github.com/repos/pandas-dev/pandas/issues/60005
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/60005/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/60005/comments
https://api.github.com/repos/pandas-dev/pandas/issues/60005/events
https://github.com/pandas-dev/pandas/pull/60005
2,573,237,285
PR_kwDOAA0YD8598-QS
60,005
Fix TypeError problem with the DataFrame.query() method when the DataFrame contains duplicate column names.
{ "login": "Asifussain", "id": 93661420, "node_id": "U_kgDOBZUo7A", "avatar_url": "https://avatars.githubusercontent.com/u/93661420?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Asifussain", "html_url": "https://github.com/Asifussain", "followers_url": "https://api.github.com/users/Asifussain/followers", "following_url": "https://api.github.com/users/Asifussain/following{/other_user}", "gists_url": "https://api.github.com/users/Asifussain/gists{/gist_id}", "starred_url": "https://api.github.com/users/Asifussain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Asifussain/subscriptions", "organizations_url": "https://api.github.com/users/Asifussain/orgs", "repos_url": "https://api.github.com/users/Asifussain/repos", "events_url": "https://api.github.com/users/Asifussain/events{/privacy}", "received_events_url": "https://api.github.com/users/Asifussain/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
0
2024-10-08T13:37:35
2024-10-08T16:50:51
null
NONE
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/60005", "html_url": "https://github.com/pandas-dev/pandas/pull/60005", "diff_url": "https://github.com/pandas-dev/pandas/pull/60005.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/60005.patch", "merged_at": null }
This pull request includes a change to the `_get_cleaned_column_resolvers` method in the `pandas/core/generic.py` file. The change ensures that the correct data type is used when creating a `Series` object. Data type handling improvement: * [`pandas/core/generic.py`](diffhunk://#diff-1a2e3df0db7dd8bddc2ec4bff9de8a7a55e328e6c32e2cecde761dc9549fcd46L606-R608): Modified the `_get_cleaned_column_resolvers` method to use the correct data type (`dtype`) as iteration of `dtypes` when creating a `Series` object by including `dtypes` in the `zip` function.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/60005/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/60005/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/60004
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/60004/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/60004/comments
https://api.github.com/repos/pandas-dev/pandas/issues/60004/events
https://github.com/pandas-dev/pandas/pull/60004
2,573,175,335
PR_kwDOAA0YD8598wto
60,004
added markDown Feature
{ "login": "dmorton714", "id": 102087408, "node_id": "U_kgDOBhW68A", "avatar_url": "https://avatars.githubusercontent.com/u/102087408?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dmorton714", "html_url": "https://github.com/dmorton714", "followers_url": "https://api.github.com/users/dmorton714/followers", "following_url": "https://api.github.com/users/dmorton714/following{/other_user}", "gists_url": "https://api.github.com/users/dmorton714/gists{/gist_id}", "starred_url": "https://api.github.com/users/dmorton714/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dmorton714/subscriptions", "organizations_url": "https://api.github.com/users/dmorton714/orgs", "repos_url": "https://api.github.com/users/dmorton714/repos", "events_url": "https://api.github.com/users/dmorton714/events{/privacy}", "received_events_url": "https://api.github.com/users/dmorton714/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
0
2024-10-08T13:13:16
2024-10-08T13:13:16
null
NONE
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/60004", "html_url": "https://github.com/pandas-dev/pandas/pull/60004", "diff_url": "https://github.com/pandas-dev/pandas/pull/60004.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/60004.patch", "merged_at": null }
- [ ] closes #60004 ? (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - I'm not sure if you have how you implement into the code base so I just gave use case examples - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. - [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature. I am new to adding features and working with anything this extensive. I didn't realize to_markdown() was a function so I made my own. It also doesn't require tabulate and is around 40% fasters in my tests. Looking forward to any feedback.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/60004/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/60004/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/60003
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/60003/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/60003/comments
https://api.github.com/repos/pandas-dev/pandas/issues/60003/events
https://github.com/pandas-dev/pandas/issues/60003
2,572,779,091
I_kwDOAA0YD86ZWX5T
60,003
TYP: More precise NaT stubs
{ "login": "randolf-scholz", "id": 39696536, "node_id": "MDQ6VXNlcjM5Njk2NTM2", "avatar_url": "https://avatars.githubusercontent.com/u/39696536?v=4", "gravatar_id": "", "url": "https://api.github.com/users/randolf-scholz", "html_url": "https://github.com/randolf-scholz", "followers_url": "https://api.github.com/users/randolf-scholz/followers", "following_url": "https://api.github.com/users/randolf-scholz/following{/other_user}", "gists_url": "https://api.github.com/users/randolf-scholz/gists{/gist_id}", "starred_url": "https://api.github.com/users/randolf-scholz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/randolf-scholz/subscriptions", "organizations_url": "https://api.github.com/users/randolf-scholz/orgs", "repos_url": "https://api.github.com/users/randolf-scholz/repos", "events_url": "https://api.github.com/users/randolf-scholz/events{/privacy}", "received_events_url": "https://api.github.com/users/randolf-scholz/received_events", "type": "User", "site_admin": false }
[ { "id": 76812, "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement", "name": "Enhancement", "color": "4E9A06", "default": false, "description": null }, { "id": 1954720290, "node_id": "MDU6TGFiZWwxOTU0NzIwMjkw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage", "name": "Needs Triage", "color": "0052cc", "default": false, "description": "Issue that has not been reviewed by a pandas team member" } ]
open
false
null
[]
null
0
2024-10-08T10:30:01
2024-10-08T10:30:01
null
CONTRIBUTOR
null
null
null
### Feature Type - [ ] Adding new functionality to pandas - [X] Changing existing functionality in pandas - [ ] Removing existing functionality in pandas ### Problem Description Amendment to #59996. The current stub has some imprecise typing. ### Feature Description - inequalities do not cover comparisons of NaTType with itself. - addition/subtraction does not cover `pd.Period` and numpy types. - dunder methods should be marked with positional-only parameters, even if the class supports keyword usage. ### Alternative Solutions N/A ### Additional Context _No response_
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/60003/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/60003/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/60002
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/60002/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/60002/comments
https://api.github.com/repos/pandas-dev/pandas/issues/60002/events
https://github.com/pandas-dev/pandas/pull/60002
2,572,484,029
PR_kwDOAA0YD8596lP7
60,002
Typing: More precise NaT stub
{ "login": "randolf-scholz", "id": 39696536, "node_id": "MDQ6VXNlcjM5Njk2NTM2", "avatar_url": "https://avatars.githubusercontent.com/u/39696536?v=4", "gravatar_id": "", "url": "https://api.github.com/users/randolf-scholz", "html_url": "https://github.com/randolf-scholz", "followers_url": "https://api.github.com/users/randolf-scholz/followers", "following_url": "https://api.github.com/users/randolf-scholz/following{/other_user}", "gists_url": "https://api.github.com/users/randolf-scholz/gists{/gist_id}", "starred_url": "https://api.github.com/users/randolf-scholz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/randolf-scholz/subscriptions", "organizations_url": "https://api.github.com/users/randolf-scholz/orgs", "repos_url": "https://api.github.com/users/randolf-scholz/repos", "events_url": "https://api.github.com/users/randolf-scholz/events{/privacy}", "received_events_url": "https://api.github.com/users/randolf-scholz/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
0
2024-10-08T08:32:21
2024-10-08T10:30:25
null
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/60002", "html_url": "https://github.com/pandas-dev/pandas/pull/60002", "diff_url": "https://github.com/pandas-dev/pandas/pull/60002.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/60002.patch", "merged_at": null }
- marked arguments in dunder methods positional only (important for subclassing and protocols) - added `Period`, `np.datetime64` and `np.timedelta64` as compatible for `__add__` and `__sub__` - added `np.datetime64` and `np.timedelta64` as compatible with `__floordiv__` and `__truediv__` - reworked comparisons: - removed protocol and use plain definition - changed return type from `bool` to `Literal[False]` - added `Self` to comparable types, so that `pd.NaT > pd.NaT` is considered valid - [x] closes #60003 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. - [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/60002/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/60002/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/60001
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/60001/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/60001/comments
https://api.github.com/repos/pandas-dev/pandas/issues/60001/events
https://github.com/pandas-dev/pandas/pull/60001
2,572,364,169
PR_kwDOAA0YD8596NKe
60,001
Fix Styler docstring
{ "login": "albertvillanova", "id": 8515462, "node_id": "MDQ6VXNlcjg1MTU0NjI=", "avatar_url": "https://avatars.githubusercontent.com/u/8515462?v=4", "gravatar_id": "", "url": "https://api.github.com/users/albertvillanova", "html_url": "https://github.com/albertvillanova", "followers_url": "https://api.github.com/users/albertvillanova/followers", "following_url": "https://api.github.com/users/albertvillanova/following{/other_user}", "gists_url": "https://api.github.com/users/albertvillanova/gists{/gist_id}", "starred_url": "https://api.github.com/users/albertvillanova/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/albertvillanova/subscriptions", "organizations_url": "https://api.github.com/users/albertvillanova/orgs", "repos_url": "https://api.github.com/users/albertvillanova/repos", "events_url": "https://api.github.com/users/albertvillanova/events{/privacy}", "received_events_url": "https://api.github.com/users/albertvillanova/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
0
2024-10-08T07:41:09
2024-10-08T08:31:21
null
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/60001", "html_url": "https://github.com/pandas-dev/pandas/pull/60001", "diff_url": "https://github.com/pandas-dev/pandas/pull/60001.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/60001.patch", "merged_at": null }
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. - [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/60001/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/60001/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59998
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59998/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59998/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59998/events
https://github.com/pandas-dev/pandas/pull/59998
2,570,929,321
PR_kwDOAA0YD85914lo
59,998
[pre-commit.ci] pre-commit autoupdate
{ "login": "pre-commit-ci[bot]", "id": 66853113, "node_id": "MDM6Qm90NjY4NTMxMTM=", "avatar_url": "https://avatars.githubusercontent.com/in/68672?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pre-commit-ci%5Bbot%5D", "html_url": "https://github.com/apps/pre-commit-ci", "followers_url": "https://api.github.com/users/pre-commit-ci%5Bbot%5D/followers", "following_url": "https://api.github.com/users/pre-commit-ci%5Bbot%5D/following{/other_user}", "gists_url": "https://api.github.com/users/pre-commit-ci%5Bbot%5D/gists{/gist_id}", "starred_url": "https://api.github.com/users/pre-commit-ci%5Bbot%5D/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pre-commit-ci%5Bbot%5D/subscriptions", "organizations_url": "https://api.github.com/users/pre-commit-ci%5Bbot%5D/orgs", "repos_url": "https://api.github.com/users/pre-commit-ci%5Bbot%5D/repos", "events_url": "https://api.github.com/users/pre-commit-ci%5Bbot%5D/events{/privacy}", "received_events_url": "https://api.github.com/users/pre-commit-ci%5Bbot%5D/received_events", "type": "Bot", "site_admin": false }
[ { "id": 106935113, "node_id": "MDU6TGFiZWwxMDY5MzUxMTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style", "name": "Code Style", "color": "eb6420", "default": false, "description": "Code style, linting, code_checks" } ]
open
false
null
[]
{ "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/102", "html_url": "https://github.com/pandas-dev/pandas/milestone/102", "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/102/labels", "id": 9021906, "node_id": "MI_kwDOAA0YD84AianS", "number": 102, "title": "3.0", "description": "", "creator": { "login": "jbrockmendel", "id": 8078968, "node_id": "MDQ6VXNlcjgwNzg5Njg=", "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jbrockmendel", "html_url": "https://github.com/jbrockmendel", "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}", "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "type": "User", "site_admin": false }, "open_issues": 42, "closed_issues": 1325, "state": "open", "created_at": "2023-02-08T18:16:49", "updated_at": "2024-10-08T02:35:04", "due_on": null, "closed_at": null }
3
2024-10-07T16:32:52
2024-10-07T22:46:28
null
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59998", "html_url": "https://github.com/pandas-dev/pandas/pull/59998", "diff_url": "https://github.com/pandas-dev/pandas/pull/59998.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59998.patch", "merged_at": null }
<!--pre-commit.ci start--> updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.0 → v0.6.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.0...v0.6.9) - [github.com/jendrikseipp/vulture: v2.11 → v2.13](https://github.com/jendrikseipp/vulture/compare/v2.11...v2.13) - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/sphinx-contrib/sphinx-lint: v0.9.1 → v1.0.0](https://github.com/sphinx-contrib/sphinx-lint/compare/v0.9.1...v1.0.0) - [github.com/pre-commit/mirrors-clang-format: v18.1.8 → v19.1.1](https://github.com/pre-commit/mirrors-clang-format/compare/v18.1.8...v19.1.1) <!--pre-commit.ci end--> Note: pyupgrade 3.17 needs to be coordinated with an upgrade in mypy & pyright
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59998/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59998/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59997
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59997/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59997/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59997/events
https://github.com/pandas-dev/pandas/pull/59997
2,570,805,315
PR_kwDOAA0YD8591fRr
59,997
BUG: fix #59965 skipna=True operations don't skip NaN in FloatingArrays
{ "login": "cooolheater", "id": 184128544, "node_id": "U_kgDOCvmUIA", "avatar_url": "https://avatars.githubusercontent.com/u/184128544?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cooolheater", "html_url": "https://github.com/cooolheater", "followers_url": "https://api.github.com/users/cooolheater/followers", "following_url": "https://api.github.com/users/cooolheater/following{/other_user}", "gists_url": "https://api.github.com/users/cooolheater/gists{/gist_id}", "starred_url": "https://api.github.com/users/cooolheater/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cooolheater/subscriptions", "organizations_url": "https://api.github.com/users/cooolheater/orgs", "repos_url": "https://api.github.com/users/cooolheater/repos", "events_url": "https://api.github.com/users/cooolheater/events{/privacy}", "received_events_url": "https://api.github.com/users/cooolheater/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
0
2024-10-07T15:36:46
2024-10-07T23:54:09
null
NONE
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59997", "html_url": "https://github.com/pandas-dev/pandas/pull/59997", "diff_url": "https://github.com/pandas-dev/pandas/pull/59997.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59997.patch", "merged_at": null }
- Issue: The skipna was not properly handled for BaseMaskedArray - Fix: Added mask for NA values - Test: Added test to series/test_reductions since the test uses - [X] closes #59965 - [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59997/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59997/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59994
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59994/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59994/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59994/events
https://github.com/pandas-dev/pandas/pull/59994
2,570,374,005
PR_kwDOAA0YD8590FEn
59,994
enhancement on times.py
{ "login": "Lzforevr", "id": 139556927, "node_id": "U_kgDOCFF4Pw", "avatar_url": "https://avatars.githubusercontent.com/u/139556927?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Lzforevr", "html_url": "https://github.com/Lzforevr", "followers_url": "https://api.github.com/users/Lzforevr/followers", "following_url": "https://api.github.com/users/Lzforevr/following{/other_user}", "gists_url": "https://api.github.com/users/Lzforevr/gists{/gist_id}", "starred_url": "https://api.github.com/users/Lzforevr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lzforevr/subscriptions", "organizations_url": "https://api.github.com/users/Lzforevr/orgs", "repos_url": "https://api.github.com/users/Lzforevr/repos", "events_url": "https://api.github.com/users/Lzforevr/events{/privacy}", "received_events_url": "https://api.github.com/users/Lzforevr/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
0
2024-10-07T12:59:45
2024-10-07T12:59:45
null
NONE
null
true
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59994", "html_url": "https://github.com/pandas-dev/pandas/pull/59994", "diff_url": "https://github.com/pandas-dev/pandas/pull/59994.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59994.patch", "merged_at": null }
- [ ] closes #59931 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. - [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59994/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59994/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59993
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59993/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59993/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59993/events
https://github.com/pandas-dev/pandas/pull/59993
2,570,365,077
PR_kwDOAA0YD8590DHV
59,993
Enhancements in numeric.py for 0x,0o,0b
{ "login": "Lzforevr", "id": 139556927, "node_id": "U_kgDOCFF4Pw", "avatar_url": "https://avatars.githubusercontent.com/u/139556927?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Lzforevr", "html_url": "https://github.com/Lzforevr", "followers_url": "https://api.github.com/users/Lzforevr/followers", "following_url": "https://api.github.com/users/Lzforevr/following{/other_user}", "gists_url": "https://api.github.com/users/Lzforevr/gists{/gist_id}", "starred_url": "https://api.github.com/users/Lzforevr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lzforevr/subscriptions", "organizations_url": "https://api.github.com/users/Lzforevr/orgs", "repos_url": "https://api.github.com/users/Lzforevr/repos", "events_url": "https://api.github.com/users/Lzforevr/events{/privacy}", "received_events_url": "https://api.github.com/users/Lzforevr/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
0
2024-10-07T12:56:10
2024-10-07T12:56:15
null
NONE
null
true
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59993", "html_url": "https://github.com/pandas-dev/pandas/pull/59993", "diff_url": "https://github.com/pandas-dev/pandas/pull/59993.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59993.patch", "merged_at": null }
- [x] closes #59207 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. - [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59993/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59993/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59987
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59987/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59987/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59987/events
https://github.com/pandas-dev/pandas/pull/59987
2,569,446,341
PR_kwDOAA0YD859xDGj
59,987
Fix: Change None values to NaN in combine_first method for better han…
{ "login": "Lavishgangwani", "id": 154001570, "node_id": "U_kgDOCS3gog", "avatar_url": "https://avatars.githubusercontent.com/u/154001570?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Lavishgangwani", "html_url": "https://github.com/Lavishgangwani", "followers_url": "https://api.github.com/users/Lavishgangwani/followers", "following_url": "https://api.github.com/users/Lavishgangwani/following{/other_user}", "gists_url": "https://api.github.com/users/Lavishgangwani/gists{/gist_id}", "starred_url": "https://api.github.com/users/Lavishgangwani/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lavishgangwani/subscriptions", "organizations_url": "https://api.github.com/users/Lavishgangwani/orgs", "repos_url": "https://api.github.com/users/Lavishgangwani/repos", "events_url": "https://api.github.com/users/Lavishgangwani/events{/privacy}", "received_events_url": "https://api.github.com/users/Lavishgangwani/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
0
2024-10-07T06:24:16
2024-10-08T03:41:58
null
NONE
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59987", "html_url": "https://github.com/pandas-dev/pandas/pull/59987", "diff_url": "https://github.com/pandas-dev/pandas/pull/59987.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59987.patch", "merged_at": null }
### Description This pull request addresses issue #58977 by improving the handling of missing data in the `combine_first` method. The changes ensure that `None` values are replaced with `NaN`, which allows for better integration with other Pandas functions that expect `NaN` values. ### Related Issue - Fixes #58977 ### Checklist - [x] Tests added and passed if fixing a bug or adding a new feature - [x] All code checks passed - [ ] Added type annotations to new arguments/methods/functions (if applicable) - [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature
{ "login": "Lavishgangwani", "id": 154001570, "node_id": "U_kgDOCS3gog", "avatar_url": "https://avatars.githubusercontent.com/u/154001570?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Lavishgangwani", "html_url": "https://github.com/Lavishgangwani", "followers_url": "https://api.github.com/users/Lavishgangwani/followers", "following_url": "https://api.github.com/users/Lavishgangwani/following{/other_user}", "gists_url": "https://api.github.com/users/Lavishgangwani/gists{/gist_id}", "starred_url": "https://api.github.com/users/Lavishgangwani/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lavishgangwani/subscriptions", "organizations_url": "https://api.github.com/users/Lavishgangwani/orgs", "repos_url": "https://api.github.com/users/Lavishgangwani/repos", "events_url": "https://api.github.com/users/Lavishgangwani/events{/privacy}", "received_events_url": "https://api.github.com/users/Lavishgangwani/received_events", "type": "User", "site_admin": false }
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59987/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59987/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59985
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59985/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59985/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59985/events
https://github.com/pandas-dev/pandas/pull/59985
2,568,852,430
PR_kwDOAA0YD859vRrP
59,985
Programming Language :: Python :: 3.13 added to pyproject.toml
{ "login": "nahcol10", "id": 104910006, "node_id": "U_kgDOBkDMtg", "avatar_url": "https://avatars.githubusercontent.com/u/104910006?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nahcol10", "html_url": "https://github.com/nahcol10", "followers_url": "https://api.github.com/users/nahcol10/followers", "following_url": "https://api.github.com/users/nahcol10/following{/other_user}", "gists_url": "https://api.github.com/users/nahcol10/gists{/gist_id}", "starred_url": "https://api.github.com/users/nahcol10/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nahcol10/subscriptions", "organizations_url": "https://api.github.com/users/nahcol10/orgs", "repos_url": "https://api.github.com/users/nahcol10/repos", "events_url": "https://api.github.com/users/nahcol10/events{/privacy}", "received_events_url": "https://api.github.com/users/nahcol10/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
0
2024-10-06T19:38:03
2024-10-06T19:41:47
null
NONE
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59985", "html_url": "https://github.com/pandas-dev/pandas/pull/59985", "diff_url": "https://github.com/pandas-dev/pandas/pull/59985.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59985.patch", "merged_at": null }
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. - [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59985/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59985/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59978
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59978/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59978/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59978/events
https://github.com/pandas-dev/pandas/issues/59978
2,568,377,394
I_kwDOAA0YD86ZFlQy
59,978
DOC: Pandas 2.2.3 pyproject.toml missing "Python 3.13" in classifiers -- but Pandas supports this Python version
{ "login": "surfaceowl", "id": 22673372, "node_id": "MDQ6VXNlcjIyNjczMzcy", "avatar_url": "https://avatars.githubusercontent.com/u/22673372?v=4", "gravatar_id": "", "url": "https://api.github.com/users/surfaceowl", "html_url": "https://github.com/surfaceowl", "followers_url": "https://api.github.com/users/surfaceowl/followers", "following_url": "https://api.github.com/users/surfaceowl/following{/other_user}", "gists_url": "https://api.github.com/users/surfaceowl/gists{/gist_id}", "starred_url": "https://api.github.com/users/surfaceowl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/surfaceowl/subscriptions", "organizations_url": "https://api.github.com/users/surfaceowl/orgs", "repos_url": "https://api.github.com/users/surfaceowl/repos", "events_url": "https://api.github.com/users/surfaceowl/events{/privacy}", "received_events_url": "https://api.github.com/users/surfaceowl/received_events", "type": "User", "site_admin": false }
[ { "id": 134699, "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs", "name": "Docs", "color": "3465A4", "default": false, "description": null } ]
open
false
null
[]
null
4
2024-10-06T00:11:40
2024-10-07T21:16:54
null
NONE
null
null
null
### Pandas version checks - [X] I have checked that the issue still exists on the latest versions of the docs on `main` [here](https://pandas.pydata.org/docs/dev/) ### Location of the documentation This does not directly impact Pandas behavior, so Docs is the best fit for issue from what I can see. On searching docs, this is the closest ref: [https://pandas.pydata.org/docs/dev/getting_started/install.html](https://pandas.pydata.org/docs/dev/getting_started/install.html)<br> I also searched: https://pandas.pydata.org/docs/dev/search.html?q=3.13 ### Documentation problem Pandas 2.2.3 `pyproject.toml` file does not include `Python 3.13` in the list of classifiers.<br> Although Pandas 2.2.3 is broadly compatible with `Python 3.13`, that fact is not documented in `pyproject.toml` causing Pandas version support to be shown incorrectly on on PyPi and other python sources.<br> The Pandas release announcement on 20 Sept 2024 [https://pandas.pydata.org/docs/whatsnew/v2.2.3.html](https://pandas.pydata.org/docs/whatsnew/v2.2.3.html) states: *"Pandas 2.2.3 is the first version of pandas that is generally compatible with the upcoming Python 3.13, and both wheels for free-threaded and normal `Python 3.13` will be uploaded for this release."* In addition, I have tested Pandas 2.2.3 with `Python 3.13.0rc3` and not found issues. No documentation on current active docs reference Python 3.13: https://pandas.pydata.org/docs/dev/search.html?q=3.13<br> *Impact -- People do not know Pandas is compatible with Python 3.13** - on PyPi -- Pandas 2.2.3 does not show Python 3.13 Programming Language Classifier. - on pyreadiness.org for Python 3.13 - Pandas does not show up as compatible with 3.13 [https://pyreadiness.org/3.13/](https://pyreadiness.org/3.13/) ### Suggested fix for documentation **Suggested fix:** - in [pandas main branch](https://github.com/pandas-dev/pandas/tree/main)<br> - Add the following line to `pandas/pyproject.toml` in the `classifiers` block: <br> ```'Programming Language :: Python :: 3.13',```<br> **Why it's better:** Adding this change would populate the Programming Language section of the Classifiers on PyPi, which would then flow through to other sites like pyreadiness.org.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59978/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59978/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59977
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59977/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59977/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59977/events
https://github.com/pandas-dev/pandas/issues/59977
2,568,282,267
I_kwDOAA0YD86ZFOCb
59,977
ENH: Add support for generating 4-4-5 but by month not just quarter or year
{ "login": "KuriaMaingi", "id": 61688232, "node_id": "MDQ6VXNlcjYxNjg4MjMy", "avatar_url": "https://avatars.githubusercontent.com/u/61688232?v=4", "gravatar_id": "", "url": "https://api.github.com/users/KuriaMaingi", "html_url": "https://github.com/KuriaMaingi", "followers_url": "https://api.github.com/users/KuriaMaingi/followers", "following_url": "https://api.github.com/users/KuriaMaingi/following{/other_user}", "gists_url": "https://api.github.com/users/KuriaMaingi/gists{/gist_id}", "starred_url": "https://api.github.com/users/KuriaMaingi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/KuriaMaingi/subscriptions", "organizations_url": "https://api.github.com/users/KuriaMaingi/orgs", "repos_url": "https://api.github.com/users/KuriaMaingi/repos", "events_url": "https://api.github.com/users/KuriaMaingi/events{/privacy}", "received_events_url": "https://api.github.com/users/KuriaMaingi/received_events", "type": "User", "site_admin": false }
[ { "id": 76812, "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement", "name": "Enhancement", "color": "4E9A06", "default": false, "description": null }, { "id": 1954720290, "node_id": "MDU6TGFiZWwxOTU0NzIwMjkw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage", "name": "Needs Triage", "color": "0052cc", "default": false, "description": "Issue that has not been reviewed by a pandas team member" } ]
open
false
null
[]
null
0
2024-10-05T19:23:03
2024-10-05T19:23:03
null
NONE
null
null
null
### Feature Type - [X] Adding new functionality to pandas - [ ] Changing existing functionality in pandas - [ ] Removing existing functionality in pandas ### Problem Description Currently, you can generate quarters that fit the 4-4-5 fiscal calendar as is common in the retail world. [https://pandas.pydata.org/docs/reference/api/pandas.tseries.offsets.FY5253Quarter.html](url) How can I generate a datetime index by month (generating a "future" dataframe for forecasting purposes) that matches the input data which is monthly & follows that 4-4-5 calendar? For example, input data covers these time periods: `['2020-07-05 00:00:00', '2020-08-02 00:00:00', '2020-08-30 00:00:00', '2020-10-04 00:00:00', '2020-11-01 00:00:00', '2020-11-29 00:00:00', '2021-01-03 00:00:00', '2021-01-31 00:00:00', '2021-02-28 00:00:00', '2021-04-04 00:00:00', '2021-05-02 00:00:00', '2021-05-30 00:00:00', '2021-07-04 00:00:00', '2021-08-01 00:00:00', '2021-08-29 00:00:00', '2021-10-03 00:00:00', '2021-10-31 00:00:00', '2021-11-28 00:00:00', '2022-01-02 00:00:00', '2022-01-30 00:00:00', '2022-02-27 00:00:00', '2022-04-03 00:00:00', '2022-05-01 00:00:00', '2022-05-29 00:00:00', '2022-07-03 00:00:00', '2022-07-31 00:00:00', '2022-08-28 00:00:00', '2022-10-02 00:00:00', '2022-10-30 00:00:00', '2022-11-27 00:00:00', '2023-01-01 00:00:00']` I can generate the quarters that match up with this frequency by using the following code: `yoffset = pd.offsets.FY5253Quarter(weekday=6, startingMonth=8, variation="last") yindex = pd.date_range('2020-08-30', periods=12, freq=yoffset) yindex` which in turn generates the correct output: `DatetimeIndex(['2020-08-30', '2020-11-29', '2021-02-28', '2021-05-30', '2021-08-29', '2021-11-28', '2022-02-27', '2022-05-29', '2022-08-28', '2022-11-27', '2023-02-26', '2023-05-28'], dtype='datetime64[ns]', freq='REQ-L-AUG-SUN-1')` How can I resample these quarterly periods to generate an equivalent 4-4-5 monthly frequency that follows the same ruleset? ### Feature Description pd.offsets.FY5253Month(weekday=x, startingMonth=y, variation="z) ### Alternative Solutions Not aware of any and currently stuck ### Additional Context _No response_
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59977/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59977/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59976
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59976/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59976/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59976/events
https://github.com/pandas-dev/pandas/issues/59976
2,568,026,073
I_kwDOAA0YD86ZEPfZ
59,976
DOC: Improve docs in the dt namespace
{ "login": "rhshadrach", "id": 45562402, "node_id": "MDQ6VXNlcjQ1NTYyNDAy", "avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rhshadrach", "html_url": "https://github.com/rhshadrach", "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}", "starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions", "organizations_url": "https://api.github.com/users/rhshadrach/orgs", "repos_url": "https://api.github.com/users/rhshadrach/repos", "events_url": "https://api.github.com/users/rhshadrach/events{/privacy}", "received_events_url": "https://api.github.com/users/rhshadrach/received_events", "type": "User", "site_admin": false }
[ { "id": 134699, "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs", "name": "Docs", "color": "3465A4", "default": false, "description": null }, { "id": 219960758, "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion", "name": "Needs Discussion", "color": "207de5", "default": false, "description": "Requires discussion from core team before further action" } ]
open
false
null
[]
null
1
2024-10-05T13:08:12
2024-10-07T19:51:45
null
MEMBER
null
null
null
Ref: https://github.com/pandas-dev/pandas/pull/59878#discussion_r1788584918 E.g. https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.dt.to_period.html We currently copy the docstring from the underlying array method, which is at times either vague or incorrect as in the example above. We could instead override the docstring with custom value in `pandas/core/accessor.py` in the `_create_delegator_method` function. We would need a place to store the docstrings, and it would be a significant effort to add them all. Possible approach: Create a new subdirectory, `pandas/core/docstrings/` for storing docstrings for purposes like this, and add `series_dt.py` there. It would contain a dictionary mapping the method name to the docstring.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59976/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59976/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59973
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59973/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59973/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59973/events
https://github.com/pandas-dev/pandas/pull/59973
2,567,581,009
PR_kwDOAA0YD859rYky
59,973
Shiny new feature
{ "login": "wshaoul", "id": 82252983, "node_id": "MDQ6VXNlcjgyMjUyOTgz", "avatar_url": "https://avatars.githubusercontent.com/u/82252983?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wshaoul", "html_url": "https://github.com/wshaoul", "followers_url": "https://api.github.com/users/wshaoul/followers", "following_url": "https://api.github.com/users/wshaoul/following{/other_user}", "gists_url": "https://api.github.com/users/wshaoul/gists{/gist_id}", "starred_url": "https://api.github.com/users/wshaoul/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wshaoul/subscriptions", "organizations_url": "https://api.github.com/users/wshaoul/orgs", "repos_url": "https://api.github.com/users/wshaoul/repos", "events_url": "https://api.github.com/users/wshaoul/events{/privacy}", "received_events_url": "https://api.github.com/users/wshaoul/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
0
2024-10-05T01:17:44
2024-10-05T01:17:44
null
NONE
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59973", "html_url": "https://github.com/pandas-dev/pandas/pull/59973", "diff_url": "https://github.com/pandas-dev/pandas/pull/59973.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59973.patch", "merged_at": null }
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. - [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59973/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59973/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59972
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59972/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59972/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59972/events
https://github.com/pandas-dev/pandas/pull/59972
2,567,554,253
PR_kwDOAA0YD859rTGm
59,972
DOC: Fix title capitalization in documentation files (#32550)
{ "login": "steeleelliott03", "id": 100764769, "node_id": "U_kgDOBgGMYQ", "avatar_url": "https://avatars.githubusercontent.com/u/100764769?v=4", "gravatar_id": "", "url": "https://api.github.com/users/steeleelliott03", "html_url": "https://github.com/steeleelliott03", "followers_url": "https://api.github.com/users/steeleelliott03/followers", "following_url": "https://api.github.com/users/steeleelliott03/following{/other_user}", "gists_url": "https://api.github.com/users/steeleelliott03/gists{/gist_id}", "starred_url": "https://api.github.com/users/steeleelliott03/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/steeleelliott03/subscriptions", "organizations_url": "https://api.github.com/users/steeleelliott03/orgs", "repos_url": "https://api.github.com/users/steeleelliott03/repos", "events_url": "https://api.github.com/users/steeleelliott03/events{/privacy}", "received_events_url": "https://api.github.com/users/steeleelliott03/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
0
2024-10-05T00:18:26
2024-10-05T00:18:26
null
NONE
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59972", "html_url": "https://github.com/pandas-dev/pandas/pull/59972", "diff_url": "https://github.com/pandas-dev/pandas/pull/59972.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59972.patch", "merged_at": null }
Corrected title capitalization in various .rst files to match the standard of capitalizing only the first word, unless a term like DataFrame or Series is involved. Ran the script to find and correct heading issues in the following files: - doc/source/user_guide/timedeltas.rst - doc/source/whatsnew/v0.7.0.rst - doc/source/whatsnew/v0.23.4.rst - (… and so on) Fixes part of issue #32550. - [ ] closes #32550
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59972/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59972/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59971
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59971/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59971/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59971/events
https://github.com/pandas-dev/pandas/pull/59971
2,567,203,196
PR_kwDOAA0YD859qUuE
59,971
BUG: fix #59950 handle duplicate column names in dataframe queries
{ "login": "miguelcsx", "id": 78029302, "node_id": "MDQ6VXNlcjc4MDI5MzAy", "avatar_url": "https://avatars.githubusercontent.com/u/78029302?v=4", "gravatar_id": "", "url": "https://api.github.com/users/miguelcsx", "html_url": "https://github.com/miguelcsx", "followers_url": "https://api.github.com/users/miguelcsx/followers", "following_url": "https://api.github.com/users/miguelcsx/following{/other_user}", "gists_url": "https://api.github.com/users/miguelcsx/gists{/gist_id}", "starred_url": "https://api.github.com/users/miguelcsx/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/miguelcsx/subscriptions", "organizations_url": "https://api.github.com/users/miguelcsx/orgs", "repos_url": "https://api.github.com/users/miguelcsx/repos", "events_url": "https://api.github.com/users/miguelcsx/events{/privacy}", "received_events_url": "https://api.github.com/users/miguelcsx/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
0
2024-10-04T19:42:45
2024-10-08T13:22:45
null
NONE
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59971", "html_url": "https://github.com/pandas-dev/pandas/pull/59971", "diff_url": "https://github.com/pandas-dev/pandas/pull/59971.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59971.patch", "merged_at": null }
### Issue Description When calling `DataFrame.query()` on a DataFrame with duplicate column names, an unexpected `TypeError` is raised due to a change introduced in pandas 2.2.1. The root cause is the `self.dtypes[k]` returning a Series for duplicate column names instead of a single value, leading to a failure in the query evaluation. ### Changes Made - Fixed an issue where `Dataframe.query()` would throw an unexpected error - The error was caused by `self.dtypes[k]` - Adjusted the behavior to match the behavior prior to pandas version - Added tests to ensure that `Dataframe.query()` works as expected ## PR Checklist - [x] closes #59950 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. - [x] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59971/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59971/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59965
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59965/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59965/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59965/events
https://github.com/pandas-dev/pandas/issues/59965
2,566,138,436
I_kwDOAA0YD86Y9CpE
59,965
BUG: skipna=True operations don't skip NaN in FloatingArrays
{ "login": "carlocastoldi", "id": 34198340, "node_id": "MDQ6VXNlcjM0MTk4MzQw", "avatar_url": "https://avatars.githubusercontent.com/u/34198340?v=4", "gravatar_id": "", "url": "https://api.github.com/users/carlocastoldi", "html_url": "https://github.com/carlocastoldi", "followers_url": "https://api.github.com/users/carlocastoldi/followers", "following_url": "https://api.github.com/users/carlocastoldi/following{/other_user}", "gists_url": "https://api.github.com/users/carlocastoldi/gists{/gist_id}", "starred_url": "https://api.github.com/users/carlocastoldi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/carlocastoldi/subscriptions", "organizations_url": "https://api.github.com/users/carlocastoldi/orgs", "repos_url": "https://api.github.com/users/carlocastoldi/repos", "events_url": "https://api.github.com/users/carlocastoldi/events{/privacy}", "received_events_url": "https://api.github.com/users/carlocastoldi/received_events", "type": "User", "site_admin": false }
[ { "id": 76811, "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug", "name": "Bug", "color": "e10c02", "default": false, "description": null }, { "id": 2822342, "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data", "name": "Missing-data", "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate" }, { "id": 849023693, "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray", "name": "ExtensionArray", "color": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays." }, { "id": 2365504383, "node_id": "MDU6TGFiZWwyMzY1NTA0Mzgz", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reduction%20Operations", "name": "Reduction Operations", "color": "547c03", "default": false, "description": "sum, mean, min, max, etc." }, { "id": 6129961102, "node_id": "LA_kwDOAA0YD88AAAABbV_Ijg", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/PDEP%20missing%20values", "name": "PDEP missing values", "color": "fbca04", "default": false, "description": "Issues that would be addressed by the Ice Cream Agreement from the Aug 2023 sprint" } ]
open
false
null
[]
null
1
2024-10-04T11:24:31
2024-10-07T15:37:39
null
NONE
null
null
null
### Pandas version checks - [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas. - [X] I have confirmed this bug exists on the [main branch](https://pandas.pydata.org/docs/dev/getting_started/install.html#installing-the-development-version-of-pandas) of pandas. ### Reproducible Example ```python import pandas as pd s1 = pd.Series({"a": 0.0, "b": 1, "c": 1, "d": 0}) s2 = pd.Series({"a": 0.0, "b": 2, "c": 2, "d": 2}) s3 = s1/s2 #display(s3) s4 = s1.convert_dtypes()/s2.convert_dtypes() #display(s4) s5 = pd.Series([None,0.5,0.5,0]).convert_dtypes() #display(s5) s3.mean(skipna=True), s4.mean(skipna=True), s5.mean(skipna=True) ``` ### Issue Description Following #59961, I understand that series/dataframes of FloatingArrays cointaing `np.NaN` values are possible and meant to exists. These very same dataframes/series, however, fail to skip `NaN` values when asked to. The above examples outputs: ``` (np.float64(0.3333333333333333), <NA>, np.float64(0.3333333333333333)) ``` ### Expected Behavior ``` >>> s4.mean(skipna=True) np.float64(0.3333333333333333) ``` ### Installed Versions <details> INSTALLED VERSIONS ------------------ commit : 139def2145b83d40364235c6297e1833eab7bb05 python : 3.12.3 python-bits : 64 OS : Linux OS-release : 6.8.0-41-generic Version : #41-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 2 20:41:06 UTC 2024 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_GB.UTF-8 LOCALE : en_GB.UTF-8 pandas : 3.0.0.dev0+1545.g139def2145 numpy : 2.2.0.dev0+git20240930.3ee9e6a dateutil : 2.9.0.post0 pip : 24.0 Cython : None sphinx : None IPython : None adbc-driver-postgresql: None adbc-driver-sqlite : None bs4 : None blosc : None bottleneck : None fastparquet : None fsspec : None html5lib : None hypothesis : None gcsfs : None jinja2 : None lxml.etree : None matplotlib : None numba : None numexpr : None odfpy : None openpyxl : None psycopg2 : None pymysql : None pyarrow : None pyreadstat : None pytest : None python-calamine : None pytz : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlsxwriter : None zstandard : None tzdata : 2024.2 qtpy : None pyqt5 : None </details>
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59965/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59965/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59963
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59963/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59963/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59963/events
https://github.com/pandas-dev/pandas/pull/59963
2,565,996,942
PR_kwDOAA0YD859mho8
59,963
Fix API: astype method fails to raise errors for category data type
{ "login": "HagonChan", "id": 77165006, "node_id": "MDQ6VXNlcjc3MTY1MDA2", "avatar_url": "https://avatars.githubusercontent.com/u/77165006?v=4", "gravatar_id": "", "url": "https://api.github.com/users/HagonChan", "html_url": "https://github.com/HagonChan", "followers_url": "https://api.github.com/users/HagonChan/followers", "following_url": "https://api.github.com/users/HagonChan/following{/other_user}", "gists_url": "https://api.github.com/users/HagonChan/gists{/gist_id}", "starred_url": "https://api.github.com/users/HagonChan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HagonChan/subscriptions", "organizations_url": "https://api.github.com/users/HagonChan/orgs", "repos_url": "https://api.github.com/users/HagonChan/repos", "events_url": "https://api.github.com/users/HagonChan/events{/privacy}", "received_events_url": "https://api.github.com/users/HagonChan/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
0
2024-10-04T10:09:06
2024-10-04T10:23:15
null
NONE
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59963", "html_url": "https://github.com/pandas-dev/pandas/pull/59963", "diff_url": "https://github.com/pandas-dev/pandas/pull/59963.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59963.patch", "merged_at": null }
- [x] closes #59899 (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. - [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59963/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59963/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59956
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59956/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59956/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59956/events
https://github.com/pandas-dev/pandas/issues/59956
2,565,553,657
I_kwDOAA0YD86Y6z35
59,956
ENH: Disable Numpy memory allocation while concat
{ "login": "sandeyshc", "id": 45159475, "node_id": "MDQ6VXNlcjQ1MTU5NDc1", "avatar_url": "https://avatars.githubusercontent.com/u/45159475?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sandeyshc", "html_url": "https://github.com/sandeyshc", "followers_url": "https://api.github.com/users/sandeyshc/followers", "following_url": "https://api.github.com/users/sandeyshc/following{/other_user}", "gists_url": "https://api.github.com/users/sandeyshc/gists{/gist_id}", "starred_url": "https://api.github.com/users/sandeyshc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sandeyshc/subscriptions", "organizations_url": "https://api.github.com/users/sandeyshc/orgs", "repos_url": "https://api.github.com/users/sandeyshc/repos", "events_url": "https://api.github.com/users/sandeyshc/events{/privacy}", "received_events_url": "https://api.github.com/users/sandeyshc/received_events", "type": "User", "site_admin": false }
[ { "id": 76812, "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement", "name": "Enhancement", "color": "4E9A06", "default": false, "description": null }, { "id": 8935311, "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance", "name": "Performance", "color": "a10c02", "default": false, "description": "Memory or execution speed performance" }, { "id": 307649777, "node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info", "name": "Needs Info", "color": "207de5", "default": false, "description": "Clarification about behavior needed to assess issue" } ]
open
false
null
[]
null
1
2024-10-04T06:25:07
2024-10-05T13:39:13
null
NONE
null
null
null
### Feature Type - [ ] Adding new functionality to pandas - [X] Changing existing functionality in pandas - [ ] Removing existing functionality in pandas ### Problem Description We have sparse data with many null values, and while reading it using Pandas with PyArrow, it doesn't consume much memory because of pandas internal compression logic. However, during concatenation, NumPy allocates memory that isn't actually used, causing our Python script to fail due to memory allocation issues. Can you provide an option to disable NumPy memory allocation when concatenating DataFrames along axis=1? ### Feature Description pd.concat(df_list,axis=1,numpy_allocation=False) ### Alternative Solutions Atleast can you provide how can we change C++ script internally and use it for our purpose ### Additional Context Please let me know if i am wrong.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59956/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59956/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59955
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59955/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59955/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59955/events
https://github.com/pandas-dev/pandas/pull/59955
2,565,217,863
PR_kwDOAA0YD859kBS-
59,955
DOCS: fix docstring validation errors for pandas.Series #59595
{ "login": "d-urbonas", "id": 110120780, "node_id": "U_kgDOBpBPTA", "avatar_url": "https://avatars.githubusercontent.com/u/110120780?v=4", "gravatar_id": "", "url": "https://api.github.com/users/d-urbonas", "html_url": "https://github.com/d-urbonas", "followers_url": "https://api.github.com/users/d-urbonas/followers", "following_url": "https://api.github.com/users/d-urbonas/following{/other_user}", "gists_url": "https://api.github.com/users/d-urbonas/gists{/gist_id}", "starred_url": "https://api.github.com/users/d-urbonas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/d-urbonas/subscriptions", "organizations_url": "https://api.github.com/users/d-urbonas/orgs", "repos_url": "https://api.github.com/users/d-urbonas/repos", "events_url": "https://api.github.com/users/d-urbonas/events{/privacy}", "received_events_url": "https://api.github.com/users/d-urbonas/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
1
2024-10-04T00:53:30
2024-10-05T17:49:45
null
NONE
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59955", "html_url": "https://github.com/pandas-dev/pandas/pull/59955", "diff_url": "https://github.com/pandas-dev/pandas/pull/59955.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59955.patch", "merged_at": null }
Fixes the following issues from #59595 -i "pandas.Series.sparse.fill_value SA01" \ -i "pandas.Series.str.match RT03" \ - [x] Partially addresses #59595 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. - [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59955/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59955/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59954
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59954/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59954/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59954/events
https://github.com/pandas-dev/pandas/pull/59954
2,565,140,689
PR_kwDOAA0YD859jw7E
59,954
BUG: PeriodIndex.to_datetime inconsistent with its docstring
{ "login": "aram-cinnamon", "id": 97805700, "node_id": "U_kgDOBdRlhA", "avatar_url": "https://avatars.githubusercontent.com/u/97805700?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aram-cinnamon", "html_url": "https://github.com/aram-cinnamon", "followers_url": "https://api.github.com/users/aram-cinnamon/followers", "following_url": "https://api.github.com/users/aram-cinnamon/following{/other_user}", "gists_url": "https://api.github.com/users/aram-cinnamon/gists{/gist_id}", "starred_url": "https://api.github.com/users/aram-cinnamon/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aram-cinnamon/subscriptions", "organizations_url": "https://api.github.com/users/aram-cinnamon/orgs", "repos_url": "https://api.github.com/users/aram-cinnamon/repos", "events_url": "https://api.github.com/users/aram-cinnamon/events{/privacy}", "received_events_url": "https://api.github.com/users/aram-cinnamon/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
0
2024-10-03T23:15:01
2024-10-06T09:44:28
null
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59954", "html_url": "https://github.com/pandas-dev/pandas/pull/59954", "diff_url": "https://github.com/pandas-dev/pandas/pull/59954.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59954.patch", "merged_at": null }
- [x] closes #59371 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. - [x] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59954/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59954/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59953
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59953/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59953/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59953/events
https://github.com/pandas-dev/pandas/issues/59953
2,564,147,199
I_kwDOAA0YD86Y1cf_
59,953
ENH: Is there a way to plot a long format data in matplotlib without pivoting the table ?
{ "login": "infinity-void6", "id": 96457876, "node_id": "U_kgDOBb_UlA", "avatar_url": "https://avatars.githubusercontent.com/u/96457876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/infinity-void6", "html_url": "https://github.com/infinity-void6", "followers_url": "https://api.github.com/users/infinity-void6/followers", "following_url": "https://api.github.com/users/infinity-void6/following{/other_user}", "gists_url": "https://api.github.com/users/infinity-void6/gists{/gist_id}", "starred_url": "https://api.github.com/users/infinity-void6/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/infinity-void6/subscriptions", "organizations_url": "https://api.github.com/users/infinity-void6/orgs", "repos_url": "https://api.github.com/users/infinity-void6/repos", "events_url": "https://api.github.com/users/infinity-void6/events{/privacy}", "received_events_url": "https://api.github.com/users/infinity-void6/received_events", "type": "User", "site_admin": false }
[ { "id": 2413328, "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization", "name": "Visualization", "color": "8AE234", "default": false, "description": "plotting" }, { "id": 34444536, "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question", "name": "Usage Question", "color": "0052cc", "default": false, "description": null }, { "id": 307649777, "node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info", "name": "Needs Info", "color": "207de5", "default": false, "description": "Clarification about behavior needed to assess issue" }, { "id": 2365504893, "node_id": "MDU6TGFiZWwyMzY1NTA0ODkz", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Closing%20Candidate", "name": "Closing Candidate", "color": "be21f2", "default": false, "description": "May be closeable, needs more eyeballs" } ]
open
false
null
[]
null
2
2024-10-03T13:59:42
2024-10-06T18:30:15
null
NONE
null
null
null
### Feature Type - [ ] Adding new functionality to pandas - [ ] Changing existing functionality in pandas - [ ] Removing existing functionality in pandas ### Problem Description ### Problem I am currently reading this book called Hands On Data Analysis using Pandas by Stefie Molin. There are two formats of data, wide and long format data. The author uses pandas and matplotlib to plot a wide format data while uses seaborn package for the long format data. I tried searching in the web and it seems to be the custom. I tried asking gpt as well, and I can plot the long format data without seaborn too but it seems that I have to pivot the dataset. Is there a way around it . Wide Data Frame Sample date | TMAX | TMIN | TOBS -- | -- | -- | -- 2018-10-28 | 8.3 | 5.0 | 7.2 2018-10-04 | 22.8 | 11.7 | 11.7 2018-10-20 | 15.0 | -0.6 | 10.6 2018-10-24 | 16.7 | 4.4 | 6.7 2018-10-23 | 15.6 | -1.1 | 10.0 Long Data Frame Sample date | datatype | value -- | -- | -- 2018-10-01 | TMAX | 21.1 2018-10-01 | TMIN | 8.9 2018-10-01 | TOBS | 13.9 2018-10-02 | TMAX | 23.9 2018-10-02 | TMIN | 13.9 2018-10-02 | TOBS | 17.2 Long Data Frame after pivoting ![image](https://github.com/user-attachments/assets/4eb22ed2-1e4f-4b40-be77-2b817f5573a7) plot command for wide df `ax = wide_df.plot( x='date', y=['TMAX', 'TMIN', 'TOBS'], figsize=(15, 5), title='Temperature in NYC in October 2018' ) ` plot command for long df after pivot `ax=long_df.pivot(index='date',columns='datatype',values='value')` and apply a similar command as above plot command for long_df with seaborn `ax=sns.lineplot(data=long_df,x='date',y='value',hue='datatype')` Why isn't there a hue parameter or something similar in pandas for a long data format? My question can also be framed this way, " Why is pandas not enough for plotting? Why do I need external packages like matplotlib and seaborn to plot pandas data structure?" Forgive me for my ignorance but I really want to know why cann't the features available in pandas and seaborn be available in pandas. ### Feature Description Lets start with a hue feature in pandas for a long data format ### Alternative Solutions we might have to pivot the table if we have to plot without using seaborn if we just need to use pandas ### Additional Context _No response_
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59953/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59953/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59950
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59950/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59950/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59950/events
https://github.com/pandas-dev/pandas/issues/59950
2,563,513,795
I_kwDOAA0YD86YzB3D
59,950
BUG: DataFrame.query() throws error when df has duplicate column names
{ "login": "ddenuyl-bebr", "id": 151915448, "node_id": "U_kgDOCQ4LuA", "avatar_url": "https://avatars.githubusercontent.com/u/151915448?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddenuyl-bebr", "html_url": "https://github.com/ddenuyl-bebr", "followers_url": "https://api.github.com/users/ddenuyl-bebr/followers", "following_url": "https://api.github.com/users/ddenuyl-bebr/following{/other_user}", "gists_url": "https://api.github.com/users/ddenuyl-bebr/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddenuyl-bebr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddenuyl-bebr/subscriptions", "organizations_url": "https://api.github.com/users/ddenuyl-bebr/orgs", "repos_url": "https://api.github.com/users/ddenuyl-bebr/repos", "events_url": "https://api.github.com/users/ddenuyl-bebr/events{/privacy}", "received_events_url": "https://api.github.com/users/ddenuyl-bebr/received_events", "type": "User", "site_admin": false }
[ { "id": 76811, "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug", "name": "Bug", "color": "e10c02", "default": false, "description": null }, { "id": 717120670, "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue", "name": "good first issue", "color": "0e8a16", "default": true, "description": null }, { "id": 1631985267, "node_id": "MDU6TGFiZWwxNjMxOTg1MjY3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/expressions", "name": "expressions", "color": "f3afff", "default": false, "description": "pd.eval, query" } ]
open
false
{ "login": "miguelcsx", "id": 78029302, "node_id": "MDQ6VXNlcjc4MDI5MzAy", "avatar_url": "https://avatars.githubusercontent.com/u/78029302?v=4", "gravatar_id": "", "url": "https://api.github.com/users/miguelcsx", "html_url": "https://github.com/miguelcsx", "followers_url": "https://api.github.com/users/miguelcsx/followers", "following_url": "https://api.github.com/users/miguelcsx/following{/other_user}", "gists_url": "https://api.github.com/users/miguelcsx/gists{/gist_id}", "starred_url": "https://api.github.com/users/miguelcsx/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/miguelcsx/subscriptions", "organizations_url": "https://api.github.com/users/miguelcsx/orgs", "repos_url": "https://api.github.com/users/miguelcsx/repos", "events_url": "https://api.github.com/users/miguelcsx/events{/privacy}", "received_events_url": "https://api.github.com/users/miguelcsx/received_events", "type": "User", "site_admin": false }
[ { "login": "miguelcsx", "id": 78029302, "node_id": "MDQ6VXNlcjc4MDI5MzAy", "avatar_url": "https://avatars.githubusercontent.com/u/78029302?v=4", "gravatar_id": "", "url": "https://api.github.com/users/miguelcsx", "html_url": "https://github.com/miguelcsx", "followers_url": "https://api.github.com/users/miguelcsx/followers", "following_url": "https://api.github.com/users/miguelcsx/following{/other_user}", "gists_url": "https://api.github.com/users/miguelcsx/gists{/gist_id}", "starred_url": "https://api.github.com/users/miguelcsx/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/miguelcsx/subscriptions", "organizations_url": "https://api.github.com/users/miguelcsx/orgs", "repos_url": "https://api.github.com/users/miguelcsx/repos", "events_url": "https://api.github.com/users/miguelcsx/events{/privacy}", "received_events_url": "https://api.github.com/users/miguelcsx/received_events", "type": "User", "site_admin": false }, { "login": "Asifussain", "id": 93661420, "node_id": "U_kgDOBZUo7A", "avatar_url": "https://avatars.githubusercontent.com/u/93661420?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Asifussain", "html_url": "https://github.com/Asifussain", "followers_url": "https://api.github.com/users/Asifussain/followers", "following_url": "https://api.github.com/users/Asifussain/following{/other_user}", "gists_url": "https://api.github.com/users/Asifussain/gists{/gist_id}", "starred_url": "https://api.github.com/users/Asifussain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Asifussain/subscriptions", "organizations_url": "https://api.github.com/users/Asifussain/orgs", "repos_url": "https://api.github.com/users/Asifussain/repos", "events_url": "https://api.github.com/users/Asifussain/events{/privacy}", "received_events_url": "https://api.github.com/users/Asifussain/received_events", "type": "User", "site_admin": false } ]
null
10
2024-10-03T09:07:39
2024-10-08T15:17:58
null
NONE
null
null
null
### Pandas version checks - [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas. - [X] I have confirmed this bug exists on the [main branch](https://pandas.pydata.org/docs/dev/getting_started/install.html#installing-the-development-version-of-pandas) of pandas. ### Reproducible Example ```python import pandas as pd df = pd.DataFrame({'a': range(3), 'b': range(3), 'c': range(3)}).rename(columns={'b': 'a'}) print(df.query('c == 1')) ``` ### Issue Description Since pandas 2.2.1 this throws an unexpected error: `TypeError: dtype 'a int64 a int64 dtype: object' not understood` This is because DataFrame.query() calls DataFrame.eval() which in turn calls DataFrame._get_cleaned_column_resolvers(). The dict comprehension in DataFrame._get_cleaned_column_resolvers() was changed in version 2.2.1. version 2.2.0 ``` return { clean_column_name(k): Series( v, copy=False, index=self.index, name=k ).__finalize__(self) for k, v in zip(self.columns, self._iter_column_arrays()) if not isinstance(k, int) } ``` version 2.2.1 ``` return { clean_column_name(k): Series( v, copy=False, index=self.index, name=k, dtype=self.dtypes[k] ).__finalize__(self) for k, v in zip(self.columns, self._iter_column_arrays()) if not isinstance(k, int) } ``` since the dtypes are now checked when the Series are created, this introduces the error described above, since for a duplicate column name self.dtypes[k] returns a Series instead of single value. ### Expected Behavior 1) I would expect either the behavior prior to v2.2.1 where the above example would return: ``` >>> df.query('c == 1') a a c 1 1 1 1 ``` moreover, calling query() on column 'a' also works: ``` >>> df.query('a == 1') a a c 1 1 1 1 ``` or 2) If above behavior is unwanted, I would except better error handling, smt like: ``` >>> df.query('c == 1') DuplicateColumnError: DataFrame.query() is not supported for DataFrames with duplicate column names ``` ### Installed Versions INSTALLED VERSIONS ------------------ commit : bdc79c146c2e32f2cab629be240f01658cfb6cc2 python : 3.11.6.final.0 python-bits : 64 OS : Linux OS-release : 5.4.0-165-generic Version : #182-Ubuntu SMP Mon Oct 2 19:43:28 UTC 2023 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 2.2.1 numpy : 1.26.4 pytz : 2024.1 dateutil : 2.8.2 setuptools : 69.1.1 pip : 23.0 Cython : None pytest : 8.2.0 hypothesis : 6.100.4 sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 5.2.2 html5lib : None pymysql : None psycopg2 : None jinja2 : 3.1.3 IPython : None pandas_datareader : None adbc-driver-postgresql: None adbc-driver-sqlite : None bs4 : None bottleneck : None dataframe-api-compat : None fastparquet : None fsspec : None gcsfs : None matplotlib : None numba : None numexpr : None odfpy : None openpyxl : 3.1.2 pandas_gbq : 0.19.2 pyarrow : 15.0.0 pyreadstat : None python-calamine : None pyxlsb : None s3fs : None scipy : None sqlalchemy : 2.0.27 tables : None tabulate : 0.9.0 xarray : None xlrd : None zstandard : None tzdata : 2024.1 qtpy : None pyqt5 : None
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59950/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59950/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59948
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59948/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59948/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59948/events
https://github.com/pandas-dev/pandas/pull/59948
2,563,181,832
PR_kwDOAA0YD859dHgl
59,948
Update html.py
{ "login": "JustinCapili", "id": 107870885, "node_id": "U_kgDOBm36pQ", "avatar_url": "https://avatars.githubusercontent.com/u/107870885?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JustinCapili", "html_url": "https://github.com/JustinCapili", "followers_url": "https://api.github.com/users/JustinCapili/followers", "following_url": "https://api.github.com/users/JustinCapili/following{/other_user}", "gists_url": "https://api.github.com/users/JustinCapili/gists{/gist_id}", "starred_url": "https://api.github.com/users/JustinCapili/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JustinCapili/subscriptions", "organizations_url": "https://api.github.com/users/JustinCapili/orgs", "repos_url": "https://api.github.com/users/JustinCapili/repos", "events_url": "https://api.github.com/users/JustinCapili/events{/privacy}", "received_events_url": "https://api.github.com/users/JustinCapili/received_events", "type": "User", "site_admin": false }
[ { "id": 76811, "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug", "name": "Bug", "color": "e10c02", "default": false, "description": null }, { "id": 13101118, "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting", "name": "Output-Formatting", "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string" } ]
open
false
null
[]
null
0
2024-10-03T05:53:16
2024-10-05T13:15:29
null
NONE
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59948", "html_url": "https://github.com/pandas-dev/pandas/pull/59948", "diff_url": "https://github.com/pandas-dev/pandas/pull/59948.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59948.patch", "merged_at": null }
Adding a mathjax_ignore as a bug fix to ensure that proper formatting is performed - [X] closes #59884 (Replace xxxx with the GitHub issue number) - [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [X] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. - [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59948/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59948/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59947
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59947/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59947/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59947/events
https://github.com/pandas-dev/pandas/pull/59947
2,562,806,464
PR_kwDOAA0YD859b4oy
59,947
Update hist.py
{ "login": "rraadd88", "id": 9945034, "node_id": "MDQ6VXNlcjk5NDUwMzQ=", "avatar_url": "https://avatars.githubusercontent.com/u/9945034?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rraadd88", "html_url": "https://github.com/rraadd88", "followers_url": "https://api.github.com/users/rraadd88/followers", "following_url": "https://api.github.com/users/rraadd88/following{/other_user}", "gists_url": "https://api.github.com/users/rraadd88/gists{/gist_id}", "starred_url": "https://api.github.com/users/rraadd88/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rraadd88/subscriptions", "organizations_url": "https://api.github.com/users/rraadd88/orgs", "repos_url": "https://api.github.com/users/rraadd88/repos", "events_url": "https://api.github.com/users/rraadd88/events{/privacy}", "received_events_url": "https://api.github.com/users/rraadd88/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
0
2024-10-02T23:17:22
2024-10-03T16:12:01
null
NONE
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59947", "html_url": "https://github.com/pandas-dev/pandas/pull/59947", "diff_url": "https://github.com/pandas-dev/pandas/pull/59947.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59947.patch", "merged_at": null }
Minor improvement, allowing inference of the xlabel for a histgram plotted using a Series. Reduces these lines of code: ``` ax=ds.hist() ax.set( xlabel=ds.name, ) ``` to ``` ds.hist() ``` --- - [NA] closes #xxxx (Replace xxxx with the GitHub issue number) - [NA] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [NA] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [NA] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. - [NA] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59947/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59947/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59942
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59942/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59942/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59942/events
https://github.com/pandas-dev/pandas/pull/59942
2,561,946,080
PR_kwDOAA0YD859Y9J0
59,942
Enhanced numeric.py to process hexadecimal,decimal,binary formats(0x 0o 0b…)
{ "login": "Lzforevr", "id": 139556927, "node_id": "U_kgDOCFF4Pw", "avatar_url": "https://avatars.githubusercontent.com/u/139556927?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Lzforevr", "html_url": "https://github.com/Lzforevr", "followers_url": "https://api.github.com/users/Lzforevr/followers", "following_url": "https://api.github.com/users/Lzforevr/following{/other_user}", "gists_url": "https://api.github.com/users/Lzforevr/gists{/gist_id}", "starred_url": "https://api.github.com/users/Lzforevr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lzforevr/subscriptions", "organizations_url": "https://api.github.com/users/Lzforevr/orgs", "repos_url": "https://api.github.com/users/Lzforevr/repos", "events_url": "https://api.github.com/users/Lzforevr/events{/privacy}", "received_events_url": "https://api.github.com/users/Lzforevr/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
0
2024-10-02T15:05:50
2024-10-02T15:27:51
null
NONE
null
true
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59942", "html_url": "https://github.com/pandas-dev/pandas/pull/59942", "diff_url": "https://github.com/pandas-dev/pandas/pull/59942.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59942.patch", "merged_at": null }
- [x] closes #59207 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. - [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59942/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59942/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59937
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59937/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59937/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59937/events
https://github.com/pandas-dev/pandas/pull/59937
2,561,181,331
PR_kwDOAA0YD859W2ag
59,937
Backport PR #59906 on branch 2.3.x (BLD: Fix armv7 build)
{ "login": "meeseeksmachine", "id": 39504233, "node_id": "MDQ6VXNlcjM5NTA0MjMz", "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "gravatar_id": "", "url": "https://api.github.com/users/meeseeksmachine", "html_url": "https://github.com/meeseeksmachine", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "type": "User", "site_admin": false }
[ { "id": 129350, "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build", "name": "Build", "color": "75507B", "default": false, "description": "Library building on various platforms" }, { "id": 2628846204, "node_id": "MDU6TGFiZWwyNjI4ODQ2MjA0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ARM", "name": "ARM", "color": "c2e0c6", "default": false, "description": "aarch64 architecture" } ]
open
false
null
[]
{ "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/119", "html_url": "https://github.com/pandas-dev/pandas/milestone/119", "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/119/labels", "id": 11466880, "node_id": "MI_kwDOAA0YD84ArviA", "number": 119, "title": "2.3", "description": "on-merge: backport to 2.3.x", "creator": { "login": "jorisvandenbossche", "id": 1020496, "node_id": "MDQ6VXNlcjEwMjA0OTY=", "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jorisvandenbossche", "html_url": "https://github.com/jorisvandenbossche", "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}", "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "type": "User", "site_admin": false }, "open_issues": 37, "closed_issues": 70, "state": "open", "created_at": "2024-08-20T19:39:44", "updated_at": "2024-10-03T20:12:23", "due_on": null, "closed_at": null }
0
2024-10-02T10:12:35
2024-10-03T07:41:15
null
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59937", "html_url": "https://github.com/pandas-dev/pandas/pull/59937", "diff_url": "https://github.com/pandas-dev/pandas/pull/59937.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59937.patch", "merged_at": null }
Backport PR #59906: BLD: Fix armv7 build
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59937/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59937/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59935
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59935/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59935/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59935/events
https://github.com/pandas-dev/pandas/pull/59935
2,560,968,766
PR_kwDOAA0YD859WH1R
59,935
Handling conversion of empty categorical with dtype_backend='pyarrow'
{ "login": "veljanin", "id": 36128327, "node_id": "MDQ6VXNlcjM2MTI4MzI3", "avatar_url": "https://avatars.githubusercontent.com/u/36128327?v=4", "gravatar_id": "", "url": "https://api.github.com/users/veljanin", "html_url": "https://github.com/veljanin", "followers_url": "https://api.github.com/users/veljanin/followers", "following_url": "https://api.github.com/users/veljanin/following{/other_user}", "gists_url": "https://api.github.com/users/veljanin/gists{/gist_id}", "starred_url": "https://api.github.com/users/veljanin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/veljanin/subscriptions", "organizations_url": "https://api.github.com/users/veljanin/orgs", "repos_url": "https://api.github.com/users/veljanin/repos", "events_url": "https://api.github.com/users/veljanin/events{/privacy}", "received_events_url": "https://api.github.com/users/veljanin/received_events", "type": "User", "site_admin": false }
[ { "id": 76811, "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug", "name": "Bug", "color": "e10c02", "default": false, "description": null }, { "id": 78527356, "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical", "name": "Categorical", "color": "e11d21", "default": false, "description": "Categorical Data Type" } ]
open
false
null
[]
null
4
2024-10-02T08:33:57
2024-10-07T20:32:52
null
NONE
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59935", "html_url": "https://github.com/pandas-dev/pandas/pull/59935", "diff_url": "https://github.com/pandas-dev/pandas/pull/59935.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59935.patch", "merged_at": null }
Handling the case where conversion of empty categorical series with specified dtype_backend='pyarrow' in convert_dtypes function results in 1) an error (when there are no defined categories) or 2) in null[pyarrow] dtype (when there are some defined categories). - [x] Tests added and passed - [x] Closes #59934
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59935/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59935/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59934
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59934/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59934/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59934/events
https://github.com/pandas-dev/pandas/issues/59934
2,560,944,506
I_kwDOAA0YD86YpOl6
59,934
BUG: Trying to use convert_dtypes with dtype_backend='pyarrow' specified on empty categorical series results in error or null[pyarrow] dtype
{ "login": "veljanin", "id": 36128327, "node_id": "MDQ6VXNlcjM2MTI4MzI3", "avatar_url": "https://avatars.githubusercontent.com/u/36128327?v=4", "gravatar_id": "", "url": "https://api.github.com/users/veljanin", "html_url": "https://github.com/veljanin", "followers_url": "https://api.github.com/users/veljanin/followers", "following_url": "https://api.github.com/users/veljanin/following{/other_user}", "gists_url": "https://api.github.com/users/veljanin/gists{/gist_id}", "starred_url": "https://api.github.com/users/veljanin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/veljanin/subscriptions", "organizations_url": "https://api.github.com/users/veljanin/orgs", "repos_url": "https://api.github.com/users/veljanin/repos", "events_url": "https://api.github.com/users/veljanin/events{/privacy}", "received_events_url": "https://api.github.com/users/veljanin/received_events", "type": "User", "site_admin": false }
[ { "id": 76811, "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug", "name": "Bug", "color": "e10c02", "default": false, "description": null }, { "id": 78527356, "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical", "name": "Categorical", "color": "e11d21", "default": false, "description": "Categorical Data Type" }, { "id": 3303158446, "node_id": "MDU6TGFiZWwzMzAzMTU4NDQ2", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Arrow", "name": "Arrow", "color": "f9d0c4", "default": false, "description": "pyarrow functionality" } ]
open
false
null
[]
null
0
2024-10-02T08:22:10
2024-10-02T21:04:49
null
NONE
null
null
null
### Pandas version checks - [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas. - [X] I have confirmed this bug exists on the [main branch](https://pandas.pydata.org/docs/dev/getting_started/install.html#installing-the-development-version-of-pandas) of pandas. ### Reproducible Example ```python import pandas as pd # example 1 ser1 = pd.Series(pd.Categorical([None] * 5)) converted1 = ser1.convert_dtypes(dtype_backend="pyarrow") # example 2 ser2 = pd.Series(pd.Categorical([None] * 5, categories=["S1", "S2"])) converted2 = ser2.convert_dtypes(dtype_backend="pyarrow") ``` ### Issue Description Trying to convert categorical series with empty categories results in `pyarrow.lib.ArrowNotImplementedError: NumPyConverter doesn't implement <null> conversion. `. Trying to convert categorical series with non-empty categories returns null[pyarrow] dtype. This is inconsistent with regular behavior when converting categoricals - if series is not empty, convert_dtypes call returns categorical dtype (essentially ignoring the requested pyarrow backend conversion). I encountered this issue when trying to read files (like parquet, spss, ...) where some categorical variables are empty... ### Expected Behavior Returning categorical dtype with propagated categories, and not raising errors. ### Installed Versions <details> INSTALLED VERSIONS ------------------ commit : 00855f81bd84cc6ed9ae42c5f66916b2208dbe04 python : 3.12.0 python-bits : 64 OS : Windows OS-release : 11 Version : 10.0.22631 machine : AMD64 processor : Intel64 Family 6 Model 165 Stepping 2, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : English_United States.1252 pandas : 3.0.0.dev0+1536.g00855f81bd numpy : 1.26.4 dateutil : 2.9.0.post0 pip : 24.2 Cython : 3.0.11 sphinx : 8.0.2 IPython : 8.27.0 adbc-driver-postgresql: None adbc-driver-sqlite : None bs4 : 4.12.3 blosc : None bottleneck : 1.4.0 fastparquet : 2024.5.0 fsspec : 2024.9.0 html5lib : 1.1 hypothesis : 6.112.2 gcsfs : 2024.9.0post1 jinja2 : 3.1.4 lxml.etree : 5.3.0 matplotlib : 3.9.2 numba : 0.60.0 numexpr : 2.10.1 odfpy : None openpyxl : 3.1.5 psycopg2 : 2.9.9 pymysql : 1.4.6 pyarrow : 17.0.0 pyreadstat : 1.2.7 pytest : 8.3.3 python-calamine : None pytz : 2024.2 pyxlsb : 1.0.10 s3fs : 2024.9.0 scipy : 1.14.1 sqlalchemy : 2.0.35 tables : 3.10.1 tabulate : 0.9.0 xarray : 2024.9.0 xlrd : 2.0.1 xlsxwriter : 3.2.0 zstandard : 0.23.0 tzdata : 2024.2 qtpy : None pyqt5 : None </details>
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59934/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59934/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59933
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59933/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59933/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59933/events
https://github.com/pandas-dev/pandas/issues/59933
2,560,390,330
I_kwDOAA0YD86YnHS6
59,933
BUG: locset with Series as column key fails inconsistently
{ "login": "sfc-gh-rdurrani", "id": 149019786, "node_id": "U_kgDOCOHcig", "avatar_url": "https://avatars.githubusercontent.com/u/149019786?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sfc-gh-rdurrani", "html_url": "https://github.com/sfc-gh-rdurrani", "followers_url": "https://api.github.com/users/sfc-gh-rdurrani/followers", "following_url": "https://api.github.com/users/sfc-gh-rdurrani/following{/other_user}", "gists_url": "https://api.github.com/users/sfc-gh-rdurrani/gists{/gist_id}", "starred_url": "https://api.github.com/users/sfc-gh-rdurrani/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sfc-gh-rdurrani/subscriptions", "organizations_url": "https://api.github.com/users/sfc-gh-rdurrani/orgs", "repos_url": "https://api.github.com/users/sfc-gh-rdurrani/repos", "events_url": "https://api.github.com/users/sfc-gh-rdurrani/events{/privacy}", "received_events_url": "https://api.github.com/users/sfc-gh-rdurrani/received_events", "type": "User", "site_admin": false }
[ { "id": 76811, "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug", "name": "Bug", "color": "e10c02", "default": false, "description": null }, { "id": 2822098, "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing", "name": "Indexing", "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves" } ]
open
false
null
[]
null
2
2024-10-01T23:40:51
2024-10-05T22:50:57
null
NONE
null
null
null
### Pandas version checks - [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas. - [ ] I have confirmed this bug exists on the [main branch](https://pandas.pydata.org/docs/dev/getting_started/install.html#installing-the-development-version-of-pandas) of pandas. ### Reproducible Example ```python >>> import pandas as pd >>> df = pd.DataFrame([[1, 2, 3], [4, 5, 6]], columns=list("ABC")) >>> df.loc[:, pd.Series(['A', 'C'])] = pd.Series([10, 20, 30]) # succeeds >>> df A B C 0 10 2 20 1 10 5 20 >>> df.loc[:, pd.Series(['A', 'B', 'C'])] = pd.Series([10, 20, 30]) # fails --------------------------------------------------------------------------- ValueError Traceback (most recent call last) File ~/.miniconda3/envs/snowpark/lib/python3.10/site-packages/pandas/core/internals/blocks.py:1429, in Block.setitem(self, indexer, value, using_cow) 1428 try: -> 1429 values[indexer] = casted 1430 except (TypeError, ValueError) as err: ValueError: shape mismatch: value array of shape (2,) could not be broadcast to indexing result of shape (2,3) The above exception was the direct cause of the following exception: ValueError Traceback (most recent call last) Cell In[5], line 1 ----> 1 df.loc[:, pd.Series(['A', 'B', 'C'])] = pd.Series([10, 20, 30]) File ~/.miniconda3/envs/snowpark/lib/python3.10/site-packages/pandas/core/indexing.py:911, in _LocationIndexer.__setitem__(self, key, value) 908 self._has_valid_setitem_indexer(key) 910 iloc = self if self.name == "iloc" else self.obj.iloc --> 911 iloc._setitem_with_indexer(indexer, value, self.name) File ~/.miniconda3/envs/snowpark/lib/python3.10/site-packages/pandas/core/indexing.py:1944, in _iLocIndexer._setitem_with_indexer(self, indexer, value, name) 1942 self._setitem_with_indexer_split_path(indexer, value, name) 1943 else: -> 1944 self._setitem_single_block(indexer, value, name) File ~/.miniconda3/envs/snowpark/lib/python3.10/site-packages/pandas/core/indexing.py:2218, in _iLocIndexer._setitem_single_block(self, indexer, value, name) 2215 self.obj._check_is_chained_assignment_possible() 2217 # actually do the set -> 2218 self.obj._mgr = self.obj._mgr.setitem(indexer=indexer, value=value) 2219 self.obj._maybe_update_cacher(clear=True, inplace=True) File ~/.miniconda3/envs/snowpark/lib/python3.10/site-packages/pandas/core/internals/managers.py:415, in BaseBlockManager.setitem(self, indexer, value, warn) 411 # No need to split if we either set all columns or on a single block 412 # manager 413 self = self.copy() --> 415 return self.apply("setitem", indexer=indexer, value=value) File ~/.miniconda3/envs/snowpark/lib/python3.10/site-packages/pandas/core/internals/managers.py:363, in BaseBlockManager.apply(self, f, align_keys, **kwargs) 361 applied = b.apply(f, **kwargs) 362 else: --> 363 applied = getattr(b, f)(**kwargs) 364 result_blocks = extend_blocks(applied, result_blocks) 366 out = type(self).from_blocks(result_blocks, self.axes) File ~/.miniconda3/envs/snowpark/lib/python3.10/site-packages/pandas/core/internals/blocks.py:1432, in Block.setitem(self, indexer, value, using_cow) 1430 except (TypeError, ValueError) as err: 1431 if is_list_like(casted): -> 1432 raise ValueError( 1433 "setting an array element with a sequence." 1434 ) from err 1435 raise 1436 return self ValueError: setting an array element with a sequence. >>> In [7]: df.loc[:, pd.Series(['A'])] = pd.Series([10, 20, 30]) # Fails --------------------------------------------------------------------------- ValueError Traceback (most recent call last) File ~/.miniconda3/envs/snowpark/lib/python3.10/site-packages/pandas/core/internals/blocks.py:1429, in Block.setitem(self, indexer, value, using_cow) 1428 try: -> 1429 values[indexer] = casted 1430 except (TypeError, ValueError) as err: ValueError: shape mismatch: value array of shape (2,) could not be broadcast to indexing result of shape (2,1) The above exception was the direct cause of the following exception: ValueError Traceback (most recent call last) Cell In[7], line 1 ----> 1 df.loc[:, pd.Series(['A'])] = pd.Series([10, 20, 30]) File ~/.miniconda3/envs/snowpark/lib/python3.10/site-packages/pandas/core/indexing.py:911, in _LocationIndexer.__setitem__(self, key, value) 908 self._has_valid_setitem_indexer(key) 910 iloc = self if self.name == "iloc" else self.obj.iloc --> 911 iloc._setitem_with_indexer(indexer, value, self.name) File ~/.miniconda3/envs/snowpark/lib/python3.10/site-packages/pandas/core/indexing.py:1944, in _iLocIndexer._setitem_with_indexer(self, indexer, value, name) 1942 self._setitem_with_indexer_split_path(indexer, value, name) 1943 else: -> 1944 self._setitem_single_block(indexer, value, name) File ~/.miniconda3/envs/snowpark/lib/python3.10/site-packages/pandas/core/indexing.py:2218, in _iLocIndexer._setitem_single_block(self, indexer, value, name) 2215 self.obj._check_is_chained_assignment_possible() 2217 # actually do the set -> 2218 self.obj._mgr = self.obj._mgr.setitem(indexer=indexer, value=value) 2219 self.obj._maybe_update_cacher(clear=True, inplace=True) File ~/.miniconda3/envs/snowpark/lib/python3.10/site-packages/pandas/core/internals/managers.py:415, in BaseBlockManager.setitem(self, indexer, value, warn) 411 # No need to split if we either set all columns or on a single block 412 # manager 413 self = self.copy() --> 415 return self.apply("setitem", indexer=indexer, value=value) File ~/.miniconda3/envs/snowpark/lib/python3.10/site-packages/pandas/core/internals/managers.py:363, in BaseBlockManager.apply(self, f, align_keys, **kwargs) 361 applied = b.apply(f, **kwargs) 362 else: --> 363 applied = getattr(b, f)(**kwargs) 364 result_blocks = extend_blocks(applied, result_blocks) 366 out = type(self).from_blocks(result_blocks, self.axes) File ~/.miniconda3/envs/snowpark/lib/python3.10/site-packages/pandas/core/internals/blocks.py:1432, in Block.setitem(self, indexer, value, using_cow) 1430 except (TypeError, ValueError) as err: 1431 if is_list_like(casted): -> 1432 raise ValueError( 1433 "setting an array element with a sequence." 1434 ) from err 1435 raise 1436 return self ValueError: setting an array element with a sequence >>> df = pd.DataFrame([[1, 2, 3], [4, 5, 6], [7, 8, 9]], columns=list("ABC")) >>> df.loc[:, pd.Series(['A', 'B', 'C'])] = pd.Series([10, 20, 30]) # Succeeds >>> df A B C 0 10 20 30 1 10 20 30 2 10 20 30 ``` ### Issue Description It seems that we can only provide as many column indexers in the Series key for the column as are rows, but all of the above examples should succeed. ### Expected Behavior Columns that are indexed should be set with the corresponding value (determined by position). ### Installed Versions <details> INSTALLED VERSIONS ------------------ commit : bdc79c146c2e32f2cab629be240f01658cfb6cc2 python : 3.10.14.final.0 python-bits : 64 OS : Darwin OS-release : 23.6.0 Version : Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:04 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6020 machine : arm64 processor : arm byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 2.2.1 numpy : 1.26.4 pytz : 2024.1 dateutil : 2.9.0.post0 setuptools : 72.1.0 pip : 24.2 Cython : None pytest : 7.4.4 hypothesis : None sphinx : 5.0.2 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 3.1.4 IPython : 8.27.0 pandas_datareader : None adbc-driver-postgresql: None adbc-driver-sqlite : None bs4 : 4.12.3 bottleneck : None dataframe-api-compat : None fastparquet : None fsspec : 2024.6.1 gcsfs : None matplotlib : 3.9.2 numba : None numexpr : None odfpy : None openpyxl : 3.1.5 pandas_gbq : None pyarrow : 17.0.0 pyreadstat : None python-calamine : None pyxlsb : None s3fs : None scipy : 1.14.1 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None zstandard : None tzdata : 2024.1 qtpy : None pyqt5 : None </details>
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59933/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59933/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59932
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59932/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59932/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59932/events
https://github.com/pandas-dev/pandas/issues/59932
2,559,779,205
I_kwDOAA0YD86YkyGF
59,932
BUG: np.nan_to_num change pandas DataFrame in place when copy = True
{ "login": "lil-blue-curve", "id": 183429179, "node_id": "U_kgDOCu7oOw", "avatar_url": "https://avatars.githubusercontent.com/u/183429179?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lil-blue-curve", "html_url": "https://github.com/lil-blue-curve", "followers_url": "https://api.github.com/users/lil-blue-curve/followers", "following_url": "https://api.github.com/users/lil-blue-curve/following{/other_user}", "gists_url": "https://api.github.com/users/lil-blue-curve/gists{/gist_id}", "starred_url": "https://api.github.com/users/lil-blue-curve/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lil-blue-curve/subscriptions", "organizations_url": "https://api.github.com/users/lil-blue-curve/orgs", "repos_url": "https://api.github.com/users/lil-blue-curve/repos", "events_url": "https://api.github.com/users/lil-blue-curve/events{/privacy}", "received_events_url": "https://api.github.com/users/lil-blue-curve/received_events", "type": "User", "site_admin": false }
[ { "id": 76811, "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug", "name": "Bug", "color": "e10c02", "default": false, "description": null }, { "id": 76865106, "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat", "name": "Compat", "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions" } ]
open
false
null
[]
null
1
2024-10-01T17:07:38
2024-10-01T21:03:57
null
NONE
null
null
null
### Pandas version checks - [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas. - [X] I have confirmed this bug exists on the [main branch](https://pandas.pydata.org/docs/dev/getting_started/install.html#installing-the-development-version-of-pandas) of pandas. ### Reproducible Example ```python import numpy as np import pandas as pd x = pd.DataFrame([np.nan]) np.nan_to_num(x, copy=True) print(x) ``` ### Issue Description Result x is changed to 0.0 even when nan_to_num is called with copy=True. This issue is originally reported to numpy [here](https://github.com/numpy/numpy/issues/27487). Looks like pandas ignores `copy=True` NumPy passes? ### Expected Behavior x should not be changed when copy=True. ### Installed Versions <details> INSTALLED VERSIONS ------------------ commit : 0691c5cf90477d3503834d983f69350f250a6ff7 python : 3.11.8 python-bits : 64 OS : Linux OS-release : 5.10.0-smp-1100.466.602.1 Version : #1 [v5.10.0-1100.466.602.1] SMP @1708156698 machine : x86_64 processor : byteorder : little LC_ALL : None LANG : None LOCALE : en_US.UTF-8 pandas : 2.2.3 numpy : 2.1.1 pytz : 2024.1 dateutil : 2.8.1 pip : None Cython : None sphinx : None IPython : None adbc-driver-postgresql: None adbc-driver-sqlite : None bs4 : None blosc : None bottleneck : None dataframe-api-compat : None fastparquet : None fsspec : None html5lib : None hypothesis : None gcsfs : None jinja2 : None lxml.etree : 5.3.0 matplotlib : None numba : None numexpr : 2.8.7 odfpy : None openpyxl : 3.1.2 pandas_gbq : None psycopg2 : None pymysql : None pyarrow : None pyreadstat : None pytest : None python-calamine : None pyxlsb : None s3fs : None scipy : 1.13.1 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : 2.0.1 xlsxwriter : None zstandard : None tzdata : None qtpy : None pyqt5 : None </details>
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59932/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59932/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59931
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59931/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59931/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59931/events
https://github.com/pandas-dev/pandas/issues/59931
2,559,117,094
I_kwDOAA0YD86YiQcm
59,931
ENH: Add support to customize time format and more detailed error handling information for to_time
{ "login": "Lzforevr", "id": 139556927, "node_id": "U_kgDOCFF4Pw", "avatar_url": "https://avatars.githubusercontent.com/u/139556927?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Lzforevr", "html_url": "https://github.com/Lzforevr", "followers_url": "https://api.github.com/users/Lzforevr/followers", "following_url": "https://api.github.com/users/Lzforevr/following{/other_user}", "gists_url": "https://api.github.com/users/Lzforevr/gists{/gist_id}", "starred_url": "https://api.github.com/users/Lzforevr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lzforevr/subscriptions", "organizations_url": "https://api.github.com/users/Lzforevr/orgs", "repos_url": "https://api.github.com/users/Lzforevr/repos", "events_url": "https://api.github.com/users/Lzforevr/events{/privacy}", "received_events_url": "https://api.github.com/users/Lzforevr/received_events", "type": "User", "site_admin": false }
[ { "id": 76812, "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement", "name": "Enhancement", "color": "4E9A06", "default": false, "description": null }, { "id": 1954720290, "node_id": "MDU6TGFiZWwxOTU0NzIwMjkw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage", "name": "Needs Triage", "color": "0052cc", "default": false, "description": "Issue that has not been reviewed by a pandas team member" } ]
open
false
null
[]
null
1
2024-10-01T12:44:14
2024-10-07T06:36:15
null
NONE
null
null
null
### Feature Type - [ ] Adding new functionality to pandas - [X] Changing existing functionality in pandas - [ ] Removing existing functionality in pandas ### Problem Description **Path:** pandas/core/tools/times.py **Func:** to_time Though to_time is able to handle several common time formats, I still wish to enhance its versatility and adaptability by customizing time format. By the way, customized error handling infos are also of use (though simple). It's my pleasure if you agree with my changes and I'd love to make PR! ### Feature Description I've modified **times.py** for the above enhancements, and I've made a test demo to show its new feature in **times_test.py**. 1. Improved compatibility: Allows users to customize the time format, which improves the versatility and adaptability of the function. 2. Enhanced error handling: Provide more detailed error information for easy debugging and problem location. ### Alternative Solutions The source code are as follows: 1. new times.py ``` python # modfied times.py from __future__ import annotations from datetime import datetime, time from typing import TYPE_CHECKING, List, Union import numpy as np from pandas._libs.lib import is_list_like from pandas.core.dtypes.generic import ABCIndex, ABCSeries from pandas.core.dtypes.missing import notna if TYPE_CHECKING: from pandas._typing import DateTimeErrorChoices def to_time( arg, format: Union[str, List[str], None] = None, infer_time_format: bool = False, errors: DateTimeErrorChoices = "raise", custom_formats: List[str] = None, ): """ Parse time strings to time objects using fixed strptime formats ("%H:%M", "%H%M", "%I:%M%p", "%I%M%p", "%H:%M:%S", "%H%M%S", "%I:%M:%S%p", "%I%M%S%p") and additional custom formats. Use infer_time_format if all the strings are in the same format to speed up conversion. Parameters ---------- arg : string in time format, datetime.time, list, tuple, 1-d array, Series format : str or list of str, default None Format(s) used to convert arg into a time object. If None, fixed formats are used. infer_time_format: bool, default False Infer the time format based on the first non-NaN element. If all strings are in the same format, this will speed up conversion. errors : {'raise', 'coerce'}, default 'raise' - If 'raise', then invalid parsing will raise an exception - If 'coerce', then invalid parsing will be set as None custom_formats : list of str, default None Additional custom time formats to use. Returns ------- datetime.time or list of datetime.time """ if errors not in ("raise", "coerce"): raise ValueError("errors must be one of 'raise', or 'coerce'.") def _convert_listlike(arg, format): if isinstance(arg, (list, tuple)): arg = np.array(arg, dtype="O") elif getattr(arg, "ndim", 1) > 1: raise TypeError( "arg must be a string, datetime, list, tuple, 1-d array, or Series" ) arg = np.asarray(arg, dtype="O") if infer_time_format and format is None: format = _guess_time_format_for_array(arg) times = [] if format is not None: if isinstance(format, list): for element in arg: for fmt in format: try: times.append(datetime.strptime(element, fmt).time()) break except (ValueError, TypeError): continue else: if errors == "raise": msg = ( f"Cannot convert {element} to a time with given "f"formats {format}") raise ValueError(msg) times.append(None) else: for element in arg: try: times.append(datetime.strptime(element, format).time()) except (ValueError, TypeError) as err: if errors == "raise": msg = (f"Cannot convert {element} to a time withgiven "f"format {format}") raise ValueError(msg) from err times.append(None) else: formats = _time_formats + (custom_formats or []) for element in arg: time_object = None try: time_object = time.fromisoformat(element) except (ValueError, TypeError): for time_format in formats: try: time_object = datetime.strptime(element, time_format).time() break except (ValueError, TypeError): continue if time_object is not None: times.append(time_object) elif errors == "raise": raise ValueError(f"Cannot convert arg {arg} to a time") else: times.append(None) return times if arg is None: return arg elif isinstance(arg, time): return arg elif isinstance(arg, ABCSeries): values = _convert_listlike(arg._values, format) return arg._constructor(values, index=arg.index, name=arg.name) elif isinstance(arg, ABCIndex): return _convert_listlike(arg, format) elif is_list_like(arg): return _convert_listlike(arg, format) return _convert_listlike(np.array([arg]), format)[0] # Fixed time formats for time parsing _time_formats = [ "%H:%M", "%H%M", "%I:%M%p", "%I%M%p", "%H:%M:%S", "%H%M%S", "%I:%M:%S%p", "%I%M%S%p", ] def _guess_time_format_for_array(arr): # Try to guess the format based on the first non-NaN element non_nan_elements = notna(arr).nonzero()[0] if len(non_nan_elements): element = arr[non_nan_elements[0]] for time_format in _time_formats: try: datetime.strptime(element, time_format) return time_format except ValueError: pass return None ``` 2. test demo (under the same directory of times.py) ``` python # times_test.py from datetime import time import pandas as pd import numpy as np from times import to_time # Test code def test_to_time(): """ - Tests the `to_time` function with various input formats and demonstrates how it handles invalid inputs. - return: None """ # Single time string single_time_str = "12:30" print("Single time string:", to_time(single_time_str)) # Time object time_obj = time(12, 30) print("Time object:", to_time(time_obj)) # List of time strings time_list = ["12:30", "13:45"] print("List of time strings:", to_time(time_list)) # NumPy array of time strings time_array = np.array(["12:30", "13:45"]) print("NumPy array of time strings:", to_time(time_array)) # Pandas Series of time strings time_series = pd.Series(["12:30", "13:45"]) print("Pandas Series of time strings:", to_time(time_series)) # Error handling invalid_list = ["12:30", "invalid"] try: print("Invalid list:", to_time(invalid_list)) except ValueError as e: print("Error:", e) # Error handling (coerce) invalid_list_coerce = ["12:30", "invalid"] print("Invalid list (coerce):", to_time(invalid_list_coerce, errors="coerce")) # Custom format custom_format = ["%H:%M:%S.%f"] custom_time_list = ["12:30:45.123456", "13:45:00.987654"] print("Custom time list:", to_time(custom_time_list, custom_formats=custom_format)) # Inferred time list inferred_time_list = ["12:30", "13:45"] print("Inferred time list:", to_time(inferred_time_list, infer_time_format=True)) # ISO 8601 time list iso_time_list = ["12:30:45", "13:45:00"] print("ISO 8601 time list:", to_time(iso_time_list)) test_to_time() ``` 3. result for times_test.py ``` bash Single time string: 12:30:00 Time object: 12:30:00 List of time strings: [datetime.time(12, 30), datetime.time(13, 45)] NumPy array of time strings: [datetime.time(12, 30), datetime.time(13, 45)] Pandas Series of time strings: 0 12:30:00 1 13:45:00 dtype: object Error: Cannot convert arg ['12:30' 'invalid'] to a time Invalid list (coerce): [datetime.time(12, 30), None] Custom time list: [datetime.time(12, 30, 45, 123456), datetime.time(13, 45, 0, 987654)] Inferred time list: [datetime.time(12, 30), datetime.time(13, 45)] ISO 8601 time list: [datetime.time(12, 30, 45), datetime.time(13, 45)] ``` ### Additional Context _No response_
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59931/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59931/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59922
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59922/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59922/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59922/events
https://github.com/pandas-dev/pandas/issues/59922
2,555,190,802
I_kwDOAA0YD86YTR4S
59,922
BUG: cannot filter an empty DataFrame by a non-numeric condition
{ "login": "sam-s", "id": 1596894, "node_id": "MDQ6VXNlcjE1OTY4OTQ=", "avatar_url": "https://avatars.githubusercontent.com/u/1596894?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sam-s", "html_url": "https://github.com/sam-s", "followers_url": "https://api.github.com/users/sam-s/followers", "following_url": "https://api.github.com/users/sam-s/following{/other_user}", "gists_url": "https://api.github.com/users/sam-s/gists{/gist_id}", "starred_url": "https://api.github.com/users/sam-s/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sam-s/subscriptions", "organizations_url": "https://api.github.com/users/sam-s/orgs", "repos_url": "https://api.github.com/users/sam-s/repos", "events_url": "https://api.github.com/users/sam-s/events{/privacy}", "received_events_url": "https://api.github.com/users/sam-s/received_events", "type": "User", "site_admin": false }
[ { "id": 76811, "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug", "name": "Bug", "color": "e10c02", "default": false, "description": null }, { "id": 2822098, "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing", "name": "Indexing", "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves" }, { "id": 2365504893, "node_id": "MDU6TGFiZWwyMzY1NTA0ODkz", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Closing%20Candidate", "name": "Closing Candidate", "color": "be21f2", "default": false, "description": "May be closeable, needs more eyeballs" } ]
open
false
null
[]
null
4
2024-09-29T22:20:53
2024-10-08T05:10:53
null
NONE
null
null
null
### Pandas version checks - [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas. - [ ] I have confirmed this bug exists on the [main branch](https://pandas.pydata.org/docs/dev/getting_started/install.html#installing-the-development-version-of-pandas) of pandas. ### Reproducible Example ```python import pandas as pd f = pd.DataFrame() # this works as expected, returning an empty frame f[f.index < 5] # this fails f[f.index > pd.Timestamp("2024-10-10")] ``` ### Issue Description filtering an empty `DataFrame` by a non-numeric filter fails with > TypeError: '>' not supported between instances of 'numpy.ndarray' and 'Timestamp' ### Expected Behavior an empty frame should be returned, just like with a numeric condition ### Installed Versions <details> INSTALLED VERSIONS ------------------ commit : 0691c5cf90477d3503834d983f69350f250a6ff7 python : 3.12.6 python-bits : 64 OS : Windows OS-release : 10 Version : 10.0.19045 machine : AMD64 processor : Intel64 Family 6 Model 85 Stepping 7, GenuineIntel byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : English_United States.1252 pandas : 2.2.3 numpy : 2.1.1 pytz : 2024.1 dateutil : 2.8.2 pip : 24.2 Cython : None sphinx : None IPython : 8.27.0 adbc-driver-postgresql: None adbc-driver-sqlite : None bs4 : 4.12.3 blosc : None bottleneck : None dataframe-api-compat : None fastparquet : None fsspec : 2024.9.0 html5lib : None hypothesis : None gcsfs : None jinja2 : 3.1.4 lxml.etree : 5.3.0 matplotlib : 3.9.2 numba : None numexpr : None odfpy : None openpyxl : 3.1.2 pandas_gbq : None psycopg2 : None pymysql : None pyarrow : None pyreadstat : None pytest : None python-calamine : None pyxlsb : None s3fs : None scipy : 1.14.1 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlsxwriter : None zstandard : 0.23.0 tzdata : 2024.2 qtpy : 2.4.1 pyqt5 : None </details>
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59922/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59922/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59916
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59916/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59916/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59916/events
https://github.com/pandas-dev/pandas/pull/59916
2,554,474,168
PR_kwDOAA0YD859AOU-
59,916
ENH: Be able to add lines for all index levels, not just visible ones [fix #59877]
{ "login": "edbennett", "id": 1698405, "node_id": "MDQ6VXNlcjE2OTg0MDU=", "avatar_url": "https://avatars.githubusercontent.com/u/1698405?v=4", "gravatar_id": "", "url": "https://api.github.com/users/edbennett", "html_url": "https://github.com/edbennett", "followers_url": "https://api.github.com/users/edbennett/followers", "following_url": "https://api.github.com/users/edbennett/following{/other_user}", "gists_url": "https://api.github.com/users/edbennett/gists{/gist_id}", "starred_url": "https://api.github.com/users/edbennett/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/edbennett/subscriptions", "organizations_url": "https://api.github.com/users/edbennett/orgs", "repos_url": "https://api.github.com/users/edbennett/repos", "events_url": "https://api.github.com/users/edbennett/events{/privacy}", "received_events_url": "https://api.github.com/users/edbennett/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
0
2024-09-28T19:56:21
2024-10-03T09:11:19
null
NONE
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59916", "html_url": "https://github.com/pandas-dev/pandas/pull/59916", "diff_url": "https://github.com/pandas-dev/pandas/pull/59916.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59916.patch", "merged_at": null }
Per discussion in #59877, add an `-invisible` suffix that can be added to the index selection in the `clines` option to `Styler.to_latex()`, allowing hidden indices to be used when deciding where to place lines between rows. This approach does not break compatibility with existing code, at the expense of starting a potential combinatoric explosion of options being combined into this one string. There may be a more elegant and/or expressive way of achieving the same result, at the cost of breaking compatibility (or needing to maintain two interfaces until the previous one is deprecated). - [x] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. [No new arguments, methods, or functions added, outside of tests.] - [x] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59916/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59916/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59910
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59910/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59910/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59910/events
https://github.com/pandas-dev/pandas/pull/59910
2,552,802,383
PR_kwDOAA0YD8586liq
59,910
CI: fix wrong syntax in CI env yml files (mamba 2.0 compat)
{ "login": "jorisvandenbossche", "id": 1020496, "node_id": "MDQ6VXNlcjEwMjA0OTY=", "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jorisvandenbossche", "html_url": "https://github.com/jorisvandenbossche", "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}", "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
2
2024-09-27T12:26:06
2024-09-28T11:00:42
null
MEMBER
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59910", "html_url": "https://github.com/pandas-dev/pandas/pull/59910", "diff_url": "https://github.com/pandas-dev/pandas/pull/59910.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59910.patch", "merged_at": null }
All CI is failing with the new mamba 2.0 release. But it seems this is because we had invalid syntax (pip extras syntax) in our environment files, where mamba now fails on (previously used conda for parsing the yml files).
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59910/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59910/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59909
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59909/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59909/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59909/events
https://github.com/pandas-dev/pandas/pull/59909
2,552,748,177
PR_kwDOAA0YD8586ZfM
59,909
ENH: set __module__ for objects in pandas pd.CategoricalDtype API
{ "login": "Amir-101", "id": 44722829, "node_id": "MDQ6VXNlcjQ0NzIyODI5", "avatar_url": "https://avatars.githubusercontent.com/u/44722829?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Amir-101", "html_url": "https://github.com/Amir-101", "followers_url": "https://api.github.com/users/Amir-101/followers", "following_url": "https://api.github.com/users/Amir-101/following{/other_user}", "gists_url": "https://api.github.com/users/Amir-101/gists{/gist_id}", "starred_url": "https://api.github.com/users/Amir-101/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Amir-101/subscriptions", "organizations_url": "https://api.github.com/users/Amir-101/orgs", "repos_url": "https://api.github.com/users/Amir-101/repos", "events_url": "https://api.github.com/users/Amir-101/events{/privacy}", "received_events_url": "https://api.github.com/users/Amir-101/received_events", "type": "User", "site_admin": false }
[ { "id": 13101118, "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting", "name": "Output-Formatting", "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string" } ]
open
false
null
[]
null
0
2024-09-27T11:59:31
2024-10-02T19:49:20
null
NONE
null
false
{ "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/59909", "html_url": "https://github.com/pandas-dev/pandas/pull/59909", "diff_url": "https://github.com/pandas-dev/pandas/pull/59909.diff", "patch_url": "https://github.com/pandas-dev/pandas/pull/59909.patch", "merged_at": null }
Modified top-level name object for all Types class in the Dtype module by importing the set module decorator and decorating the class. Tested the modification by adding an assert statement to the already existing test_set_module test function - [x] xref #55178 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. - [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59909/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59909/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59908
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59908/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59908/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59908/events
https://github.com/pandas-dev/pandas/issues/59908
2,552,482,698
I_kwDOAA0YD86YI8uK
59,908
BUG: user defined function does not work with `DataFrame.apply`
{ "login": "shobsi", "id": 10303222, "node_id": "MDQ6VXNlcjEwMzAzMjIy", "avatar_url": "https://avatars.githubusercontent.com/u/10303222?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shobsi", "html_url": "https://github.com/shobsi", "followers_url": "https://api.github.com/users/shobsi/followers", "following_url": "https://api.github.com/users/shobsi/following{/other_user}", "gists_url": "https://api.github.com/users/shobsi/gists{/gist_id}", "starred_url": "https://api.github.com/users/shobsi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shobsi/subscriptions", "organizations_url": "https://api.github.com/users/shobsi/orgs", "repos_url": "https://api.github.com/users/shobsi/repos", "events_url": "https://api.github.com/users/shobsi/events{/privacy}", "received_events_url": "https://api.github.com/users/shobsi/received_events", "type": "User", "site_admin": false }
[ { "id": 76811, "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug", "name": "Bug", "color": "e10c02", "default": false, "description": null }, { "id": 71268330, "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex", "name": "MultiIndex", "color": "207de5", "default": false, "description": null }, { "id": 219960758, "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion", "name": "Needs Discussion", "color": "207de5", "default": false, "description": "Requires discussion from core team before further action" }, { "id": 1741841389, "node_id": "MDU6TGFiZWwxNzQxODQxMzg5", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency", "name": "API - Consistency", "color": "b60205", "default": false, "description": "Internal Consistency of API/Behavior" } ]
open
false
null
[]
null
1
2024-09-27T09:41:54
2024-09-28T11:56:18
null
NONE
null
null
null
### Pandas version checks - [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas. - [X] I have confirmed this bug exists on the [main branch](https://pandas.pydata.org/docs/dev/getting_started/install.html#installing-the-development-version-of-pandas) of pandas. ### Reproducible Example ```python import pandas as pd df = pd.DataFrame( [[1]], index=pd.MultiIndex.from_frame( pd.DataFrame( { "idx0": pd.Series("a", dtype=pd.StringDtype()), "idx1": pd.Series(100, dtype=pd.Int64Dtype()) } ) ), ) df.loc[("a", 100)].name ``` ``` ('a', np.int64(100)) ``` ```python def foo(row): return row.name[1].item() foo(df.loc[("a", 100)]) ``` ``` 100 ``` ```python df.apply(foo, axis=1) ``` ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/google/home/shobs/code/bigframes1/venv/lib/python3.12/site-packages/pandas/core/frame.py", line 10374, in apply return op.apply().__finalize__(self, method="apply") ^^^^^^^^^^ File "/usr/local/google/home/shobs/code/bigframes1/venv/lib/python3.12/site-packages/pandas/core/apply.py", line 916, in apply return self.apply_standard() ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/google/home/shobs/code/bigframes1/venv/lib/python3.12/site-packages/pandas/core/apply.py", line 1063, in apply_standard results, res_index = self.apply_series_generator() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/google/home/shobs/code/bigframes1/venv/lib/python3.12/site-packages/pandas/core/apply.py", line 1081, in apply_series_generator results[i] = self.func(v, *self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<stdin>", line 1, in foo AttributeError: 'int' object has no attribute 'item' ``` ### Issue Description I ran into this issue where I have a series processing udf, which works fine if I pass a dataframe row to it, but breaks when I `dataframe.apply` it with `axis=1`. It seems the numpy value in the index is being lost in the latter. ### Expected Behavior A user defined function should have the same behavior, whether a dataframe row is passed to it directly or via `DataFrame.apply`. ### Installed Versions <details> commit : 0691c5cf90477d3503834d983f69350f250a6ff7 python : 3.12.0b4 python-bits : 64 OS : Linux OS-release : 6.9.10-1rodete4-amd64 Version : #1 SMP PREEMPT_DYNAMIC Debian 6.9.10-1rodete4 (2024-08-02) machine : x86_64 processor : byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 2.2.3 numpy : 2.1.1 pytz : 2024.2 dateutil : 2.9.0.post0 pip : 23.1.2 Cython : None sphinx : None IPython : 8.27.0 adbc-driver-postgresql: None adbc-driver-sqlite : None bs4 : None blosc : None bottleneck : None dataframe-api-compat : None fastparquet : None fsspec : 2024.9.0 html5lib : None hypothesis : None gcsfs : 2024.9.0post1 jinja2 : None lxml.etree : None matplotlib : 3.9.2 numba : None numexpr : None odfpy : None openpyxl : None pandas_gbq : 0.23.2 psycopg2 : None pymysql : None pyarrow : 17.0.0 pyreadstat : None pytest : 8.3.3 python-calamine : None pyxlsb : None s3fs : None scipy : 1.14.1 sqlalchemy : 2.0.35 tables : None tabulate : 0.9.0 xarray : None xlrd : None xlsxwriter : None zstandard : None tzdata : 2024.2 qtpy : None pyqt5 : None </details>
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59908/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59908/timeline
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/59904
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/59904/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/59904/comments
https://api.github.com/repos/pandas-dev/pandas/issues/59904/events
https://github.com/pandas-dev/pandas/issues/59904
2,550,581,040
I_kwDOAA0YD86YBscw
59,904
BUG: pd.read_csv date parsing not working with dtype_backend="pyarrow" and missing values
{ "login": "mhabets", "id": 2016449, "node_id": "MDQ6VXNlcjIwMTY0NDk=", "avatar_url": "https://avatars.githubusercontent.com/u/2016449?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mhabets", "html_url": "https://github.com/mhabets", "followers_url": "https://api.github.com/users/mhabets/followers", "following_url": "https://api.github.com/users/mhabets/following{/other_user}", "gists_url": "https://api.github.com/users/mhabets/gists{/gist_id}", "starred_url": "https://api.github.com/users/mhabets/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mhabets/subscriptions", "organizations_url": "https://api.github.com/users/mhabets/orgs", "repos_url": "https://api.github.com/users/mhabets/repos", "events_url": "https://api.github.com/users/mhabets/events{/privacy}", "received_events_url": "https://api.github.com/users/mhabets/received_events", "type": "User", "site_admin": false }
[ { "id": 76811, "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug", "name": "Bug", "color": "e10c02", "default": false, "description": null }, { "id": 2822342, "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data", "name": "Missing-data", "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate" }, { "id": 47229171, "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV", "name": "IO CSV", "color": "5319e7", "default": false, "description": "read_csv, to_csv" }, { "id": 717120670, "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue", "name": "good first issue", "color": "0e8a16", "default": true, "description": null }, { "id": 986278782, "node_id": "MDU6TGFiZWw5ODYyNzg3ODI=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests", "name": "Needs Tests", "color": "cdea3c", "default": false, "description": "Unit test(s) needed to prevent regressions" }, { "id": 3303158446, "node_id": "MDU6TGFiZWwzMzAzMTU4NDQ2", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Arrow", "name": "Arrow", "color": "f9d0c4", "default": false, "description": "pyarrow functionality" } ]
open
false
{ "login": "wshaoul", "id": 82252983, "node_id": "MDQ6VXNlcjgyMjUyOTgz", "avatar_url": "https://avatars.githubusercontent.com/u/82252983?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wshaoul", "html_url": "https://github.com/wshaoul", "followers_url": "https://api.github.com/users/wshaoul/followers", "following_url": "https://api.github.com/users/wshaoul/following{/other_user}", "gists_url": "https://api.github.com/users/wshaoul/gists{/gist_id}", "starred_url": "https://api.github.com/users/wshaoul/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wshaoul/subscriptions", "organizations_url": "https://api.github.com/users/wshaoul/orgs", "repos_url": "https://api.github.com/users/wshaoul/repos", "events_url": "https://api.github.com/users/wshaoul/events{/privacy}", "received_events_url": "https://api.github.com/users/wshaoul/received_events", "type": "User", "site_admin": false }
[ { "login": "wshaoul", "id": 82252983, "node_id": "MDQ6VXNlcjgyMjUyOTgz", "avatar_url": "https://avatars.githubusercontent.com/u/82252983?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wshaoul", "html_url": "https://github.com/wshaoul", "followers_url": "https://api.github.com/users/wshaoul/followers", "following_url": "https://api.github.com/users/wshaoul/following{/other_user}", "gists_url": "https://api.github.com/users/wshaoul/gists{/gist_id}", "starred_url": "https://api.github.com/users/wshaoul/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wshaoul/subscriptions", "organizations_url": "https://api.github.com/users/wshaoul/orgs", "repos_url": "https://api.github.com/users/wshaoul/repos", "events_url": "https://api.github.com/users/wshaoul/events{/privacy}", "received_events_url": "https://api.github.com/users/wshaoul/received_events", "type": "User", "site_admin": false } ]
null
4
2024-09-26T13:22:38
2024-10-04T15:33:08
null
NONE
null
null
null
### Pandas version checks - [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas. - [ ] I have confirmed this bug exists on the [main branch](https://pandas.pydata.org/docs/dev/getting_started/install.html#installing-the-development-version-of-pandas) of pandas. ### Reproducible Example ```python import io data = """date,id 20/12/2025,a ,b 31/12/2020,c """ df = pd.read_csv(io.StringIO(data), parse_dates=["date"], dayfirst=True, dtype_backend="pyarrow") df.dtypes # date string[pyarrow_numpy] # id large_string[pyarrow] ``` ### Issue Description dtype for the date column is not a date dtype as a result of a date parsing failure because of the missing value on the second row ### Expected Behavior dtype for the date column should be `timestamp[ns][pyarrow]` ### Installed Versions <details> INSTALLED VERSIONS ------------------ commit : d9cdd2ee5a58015ef6f4d15c7226110c9aab8140 python : 3.12.5.final.0 python-bits : 64 OS : Windows OS-release : 11 Version : 10.0.22631 machine : AMD64 processor : Intel64 Family 6 Model 154 Stepping 3, GenuineIntel byteorder : little LC_ALL : None LANG : en LOCALE : English_United Kingdom.1252 pandas : 2.2.2 numpy : 2.0.1 pytz : 2024.1 dateutil : 2.9.0 setuptools : 72.1.0 pip : 24.2 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 5.3.0 html5lib : None pymysql : None psycopg2 : None jinja2 : 3.1.4 IPython : 8.26.0 pandas_datareader : None adbc-driver-postgresql: None adbc-driver-sqlite : None bs4 : 4.12.3 bottleneck : None dataframe-api-compat : None fastparquet : None fsspec : None gcsfs : None matplotlib : 3.9.2 numba : None numexpr : None odfpy : None openpyxl : 3.1.5 pandas_gbq : None pyarrow : 17.0.0 pyreadstat : None python-calamine : None pyxlsb : None s3fs : None scipy : 1.14.0 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : 2.0.1 zstandard : 0.23.0 tzdata : 2024.1 qtpy : None pyqt5 : None </details>
null
{ "url": "https://api.github.com/repos/pandas-dev/pandas/issues/59904/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/pandas-dev/pandas/issues/59904/timeline
null
null
YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/datasets-cards)

annotations_creators: [] language:

  • en language_creators:
  • found license:
  • afl-3.0
  • artistic-2.0 multilinguality:
  • other-my-multilinguality pretty_name: pandas issues dataset size_categories: [] source_datasets:
  • original tags: [] task_categories:
  • table-to-text task_ids: []
Downloads last month
3