url
stringlengths 55
59
| repository_url
stringclasses 1
value | labels_url
stringlengths 69
73
| comments_url
stringlengths 64
68
| events_url
stringlengths 62
66
| html_url
stringlengths 44
49
| id
int64 338k
1.06B
| node_id
stringlengths 18
32
| number
int64 1
44.6k
| title
stringlengths 1
590
| user
dict | labels
listlengths 0
9
| state
stringclasses 2
values | locked
bool 2
classes | assignee
dict | assignees
listlengths 0
5
| milestone
dict | comments
int64 0
477
| created_at
timestamp[us, tz=UTC] | updated_at
timestamp[us, tz=UTC] | closed_at
timestamp[us, tz=UTC] | author_association
stringclasses 3
values | active_lock_reason
stringclasses 4
values | body
stringlengths 0
251k
⌀ | reactions
dict | timeline_url
stringlengths 64
68
| performed_via_github_app
float64 | draft
float64 0
1
⌀ | pull_request
dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://api.github.com/repos/pandas-dev/pandas/issues/38919
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38919/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38919/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38919/events
|
https://github.com/pandas-dev/pandas/pull/38919
| 777,624,174
|
MDExOlB1bGxSZXF1ZXN0NTQ3ODY5MDI1
| 38,919
|
BUG: fix the bad error raised by HDFStore.put()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/31664721?v=4",
"events_url": "https://api.github.com/users/1MLightyears/events{/privacy}",
"followers_url": "https://api.github.com/users/1MLightyears/followers",
"following_url": "https://api.github.com/users/1MLightyears/following{/other_user}",
"gists_url": "https://api.github.com/users/1MLightyears/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/1MLightyears",
"id": 31664721,
"login": "1MLightyears",
"node_id": "MDQ6VXNlcjMxNjY0NzIx",
"organizations_url": "https://api.github.com/users/1MLightyears/orgs",
"received_events_url": "https://api.github.com/users/1MLightyears/received_events",
"repos_url": "https://api.github.com/users/1MLightyears/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/1MLightyears/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/1MLightyears/subscriptions",
"type": "User",
"url": "https://api.github.com/users/1MLightyears"
}
|
[
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 5
| 2021-01-03T12:00:19Z
| 2021-01-05T02:22:38Z
| 2021-01-05T02:22:33Z
|
CONTRIBUTOR
| null |
- [x] closes #34274
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
*P.S. something was wrong with `git diff upstream/master` so I directly ran `flake8 ./pandas/io/pytables.py` as it's the only file changed*
------
I was running into the same problem as #34274 and found where the error is. But (as I've just started using pandas for several days:sweet_smile:) I have few knowledge about pandas, so maybe I didn't make the full use of pandas' components.
As seen in #34274, if a `DataFrame` contains non-string elements and is about to be written into an HDF5 file by `HDFStore.put()`, a `TypeError: object of type 'int' has no len()` error is raised.
But it's not the right "error" expected. `HDFStore.put()` can't serialize some types of element, `so report an exception on a column by column basis` is actually needed.
This commit fixes this, now it raises `TypeError: Cannot serialize the column [{column_No}] because its data contents are not string but [{non_string_type}] object dtype` as expected.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38919/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38919/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38919.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38919",
"merged_at": "2021-01-05T02:22:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38919.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38919"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38920
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38920/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38920/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38920/events
|
https://github.com/pandas-dev/pandas/pull/38920
| 777,627,524
|
MDExOlB1bGxSZXF1ZXN0NTQ3ODcxNDE5
| 38,920
|
TST: GH30999 Add placeholder messages to pandas/tests/io/test_sql.py and remove test for numexpr < 2.6.8
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1084147?v=4",
"events_url": "https://api.github.com/users/moink/events{/privacy}",
"followers_url": "https://api.github.com/users/moink/followers",
"following_url": "https://api.github.com/users/moink/following{/other_user}",
"gists_url": "https://api.github.com/users/moink/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/moink",
"id": 1084147,
"login": "moink",
"node_id": "MDQ6VXNlcjEwODQxNDc=",
"organizations_url": "https://api.github.com/users/moink/orgs",
"received_events_url": "https://api.github.com/users/moink/received_events",
"repos_url": "https://api.github.com/users/moink/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/moink/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/moink/subscriptions",
"type": "User",
"url": "https://api.github.com/users/moink"
}
|
[
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-03T12:22:31Z
| 2021-01-05T17:01:47Z
| 2021-01-03T17:24:50Z
|
MEMBER
| null |
This is my attempt to finally finish off #30999
In pandas/tests/io/test_sql.py, there is a whole test class skipped. It looks like xref #20536 is supposed to address that, but no one has commented there since March 2018, so I don't think that's going to be fixed any time soon. I noticed that there were other tests in the same module with `match="<insert message here>"` so I decided to put it in the two tests that I can't figure out the correct error message for.
In pandas/tests/computation/test_compat.py there was an if statement that the numexpr library is at least 2.6.8. I tried to set up an environment with a lower version but conda couldn't resolve the dependencies. That test isn't running in the CI (xref #38876) and that test was last touched in a substantive way in 2016. I think that portion of the test is no longer required.
Not sure that I actually addressed these correctly, but I made an attempt so we could have a conversation about it in a more concrete way.
- [x] xref #30999
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38920/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38920/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38920.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38920",
"merged_at": "2021-01-03T17:24:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38920.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38920"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38921
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38921/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38921/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38921/events
|
https://github.com/pandas-dev/pandas/issues/38921
| 777,669,363
|
MDU6SXNzdWU3Nzc2NjkzNjM=
| 38,921
|
COMPAT/BLD: rolling failed on Arm64 Linux
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4",
"events_url": "https://api.github.com/users/fangchenli/events{/privacy}",
"followers_url": "https://api.github.com/users/fangchenli/followers",
"following_url": "https://api.github.com/users/fangchenli/following{/other_user}",
"gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fangchenli",
"id": 7614606,
"login": "fangchenli",
"node_id": "MDQ6VXNlcjc2MTQ2MDY=",
"organizations_url": "https://api.github.com/users/fangchenli/orgs",
"received_events_url": "https://api.github.com/users/fangchenli/received_events",
"repos_url": "https://api.github.com/users/fangchenli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fangchenli"
}
|
[
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"color": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
},
{
"color": "c2e0c6",
"default": false,
"description": "aarch64 architecture",
"id": 2628846204,
"name": "ARM",
"node_id": "MDU6TGFiZWwyNjI4ODQ2MjA0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ARM"
}
] |
open
| false
| null |
[] | null | 16
| 2021-01-03T16:17:40Z
| 2021-08-14T23:12:21Z
| null |
MEMBER
| null |
The test `pandas/tests/window/test_rolling.py::test_rolling_var_numerical_issues` has failed on arm64 build.
```bash
_______________ test_rolling_var_numerical_issues[var-1-values0] _______________
[gw2] linux -- Python 3.7.9 /home/travis/miniconda3/envs/pandas-dev/bin/python
func = 'var', third_value = 1, values = [5e+33, 0, 0.5, 0.5, 2, 0]
@pytest.mark.parametrize(
("func", "third_value", "values"),
[
("var", 1, [5e33, 0, 0.5, 0.5, 2, 0]),
("std", 1, [7.071068e16, 0, 0.7071068, 0.7071068, 1.414214, 0]),
("var", 2, [5e33, 0.5, 0, 0.5, 2, 0]),
("std", 2, [7.071068e16, 0.7071068, 0, 0.7071068, 1.414214, 0]),
],
)
def test_rolling_var_numerical_issues(func, third_value, values):
# GH: 37051
ds = Series([99999999999999999, 1, third_value, 2, 3, 1, 1])
result = getattr(ds.rolling(2), func)()
expected = Series([np.nan] + values)
> tm.assert_series_equal(result, expected)
pandas/tests/window/test_rolling.py:908:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pandas/_libs/testing.pyx:46: in pandas._libs.testing.assert_almost_equal
cpdef assert_almost_equal(a, b,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise_assert_detail(obj, msg, lobj, robj, index_values=index_values)
E AssertionError: Series are different
E
E Series values are different (42.85714 %)
E [index]: [0, 1, 2, 3, 4, 5, 6]
E [left]: [nan, 5e+33, 0.0, 0.0, 0.0, 0.0, 0.0]
E [right]: [nan, 5e+33, 0.0, 0.5, 0.5, 2.0, 0.0]
pandas/_libs/testing.pyx:161: AssertionError
_______________ test_rolling_var_numerical_issues[std-1-values1] _______________
[gw2] linux -- Python 3.7.9 /home/travis/miniconda3/envs/pandas-dev/bin/python
func = 'std', third_value = 1
values = [7.071068e+16, 0, 0.7071068, 0.7071068, 1.414214, 0]
@pytest.mark.parametrize(
("func", "third_value", "values"),
[
("var", 1, [5e33, 0, 0.5, 0.5, 2, 0]),
("std", 1, [7.071068e16, 0, 0.7071068, 0.7071068, 1.414214, 0]),
("var", 2, [5e33, 0.5, 0, 0.5, 2, 0]),
("std", 2, [7.071068e16, 0.7071068, 0, 0.7071068, 1.414214, 0]),
],
)
def test_rolling_var_numerical_issues(func, third_value, values):
# GH: 37051
ds = Series([99999999999999999, 1, third_value, 2, 3, 1, 1])
result = getattr(ds.rolling(2), func)()
expected = Series([np.nan] + values)
> tm.assert_series_equal(result, expected)
pandas/tests/window/test_rolling.py:908:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pandas/_libs/testing.pyx:46: in pandas._libs.testing.assert_almost_equal
cpdef assert_almost_equal(a, b,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise_assert_detail(obj, msg, lobj, robj, index_values=index_values)
E AssertionError: Series are different
E
E Series values are different (42.85714 %)
E [index]: [0, 1, 2, 3, 4, 5, 6]
E [left]: [nan, 7.071067811865475e+16, 0.0, 0.0, 0.0, 0.0, 0.0]
E [right]: [nan, 7.071068e+16, 0.0, 0.7071068, 0.7071068, 1.414214, 0.0]
pandas/_libs/testing.pyx:161: AssertionError
_______________ test_rolling_var_numerical_issues[var-2-values2] _______________
[gw2] linux -- Python 3.7.9 /home/travis/miniconda3/envs/pandas-dev/bin/python
func = 'var', third_value = 2, values = [5e+33, 0.5, 0, 0.5, 2, 0]
@pytest.mark.parametrize(
("func", "third_value", "values"),
[
("var", 1, [5e33, 0, 0.5, 0.5, 2, 0]),
("std", 1, [7.071068e16, 0, 0.7071068, 0.7071068, 1.414214, 0]),
("var", 2, [5e33, 0.5, 0, 0.5, 2, 0]),
("std", 2, [7.071068e16, 0.7071068, 0, 0.7071068, 1.414214, 0]),
],
)
def test_rolling_var_numerical_issues(func, third_value, values):
# GH: 37051
ds = Series([99999999999999999, 1, third_value, 2, 3, 1, 1])
result = getattr(ds.rolling(2), func)()
expected = Series([np.nan] + values)
> tm.assert_series_equal(result, expected)
pandas/tests/window/test_rolling.py:908:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pandas/_libs/testing.pyx:46: in pandas._libs.testing.assert_almost_equal
cpdef assert_almost_equal(a, b,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise_assert_detail(obj, msg, lobj, robj, index_values=index_values)
E AssertionError: Series are different
E
E Series values are different (42.85714 %)
E [index]: [0, 1, 2, 3, 4, 5, 6]
E [left]: [nan, 5e+33, 0.0, 0.0, 0.0, 0.0, 0.0]
E [right]: [nan, 5e+33, 0.5, 0.0, 0.5, 2.0, 0.0]
pandas/_libs/testing.pyx:161: AssertionError
_______________ test_rolling_var_numerical_issues[std-2-values3] _______________
[gw2] linux -- Python 3.7.9 /home/travis/miniconda3/envs/pandas-dev/bin/python
func = 'std', third_value = 2
values = [7.071068e+16, 0.7071068, 0, 0.7071068, 1.414214, 0]
@pytest.mark.parametrize(
("func", "third_value", "values"),
[
("var", 1, [5e33, 0, 0.5, 0.5, 2, 0]),
("std", 1, [7.071068e16, 0, 0.7071068, 0.7071068, 1.414214, 0]),
("var", 2, [5e33, 0.5, 0, 0.5, 2, 0]),
("std", 2, [7.071068e16, 0.7071068, 0, 0.7071068, 1.414214, 0]),
],
)
def test_rolling_var_numerical_issues(func, third_value, values):
# GH: 37051
ds = Series([99999999999999999, 1, third_value, 2, 3, 1, 1])
result = getattr(ds.rolling(2), func)()
expected = Series([np.nan] + values)
> tm.assert_series_equal(result, expected)
pandas/tests/window/test_rolling.py:908:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pandas/_libs/testing.pyx:46: in pandas._libs.testing.assert_almost_equal
cpdef assert_almost_equal(a, b,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise_assert_detail(obj, msg, lobj, robj, index_values=index_values)
E AssertionError: Series are different
E
E Series values are different (42.85714 %)
E [index]: [0, 1, 2, 3, 4, 5, 6]
E [left]: [nan, 7.071067811865475e+16, 0.0, 0.0, 0.0, 0.0, 0.0]
E [right]: [nan, 7.071068e+16, 0.7071068, 0.0, 0.7071068, 1.414214, 0.0]
pandas/_libs/testing.pyx:161: AssertionError
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38921/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38921/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38922
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38922/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38922/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38922/events
|
https://github.com/pandas-dev/pandas/issues/38922
| 777,669,534
|
MDU6SXNzdWU3Nzc2Njk1MzQ=
| 38,922
|
BUG: KeyError on Column Name - Column Name Is 100% There
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/76912549?v=4",
"events_url": "https://api.github.com/users/DDZ12/events{/privacy}",
"followers_url": "https://api.github.com/users/DDZ12/followers",
"following_url": "https://api.github.com/users/DDZ12/following{/other_user}",
"gists_url": "https://api.github.com/users/DDZ12/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DDZ12",
"id": 76912549,
"login": "DDZ12",
"node_id": "MDQ6VXNlcjc2OTEyNTQ5",
"organizations_url": "https://api.github.com/users/DDZ12/orgs",
"received_events_url": "https://api.github.com/users/DDZ12/received_events",
"repos_url": "https://api.github.com/users/DDZ12/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DDZ12/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DDZ12/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DDZ12"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
},
{
"color": "be21f2",
"default": false,
"description": "May be closeable, needs more eyeballs",
"id": 2365504893,
"name": "Closing Candidate",
"node_id": "MDU6TGFiZWwyMzY1NTA0ODkz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Closing%20Candidate"
}
] |
closed
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 4
| 2021-01-03T16:18:34Z
| 2021-02-15T10:46:05Z
| 2021-02-14T14:12:24Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
Yes
- [x] I have confirmed this bug exists on the latest version of pandas.
Yes 1.2.0
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
No
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
```
AAPL
MultiIndex([('AAPL', 'open'),
('AAPL', 'high'),
('AAPL', 'low'),
('AAPL', 'close'),
('AAPL', 'volume')],
)
<class 'pandas.core.frame.DataFrame'>
[False False False False False False False False False False False False
False False False False True True True True True True True True
False False False False False False False False False False False False
False False False False False False False False False False False False
False False False False False False False False False False False False
False False False False False False False False False False False False
False False False False False False False False False False False False
False False False False False False False False False False False False
False False False False]
<class 'numpy.ndarray'>
MultiIndex([('AAPL', 'open'),
('AAPL', 'high'),
('AAPL', 'low'),
('AAPL', 'close'),
('AAPL', 'volume')],
)
<class 'pandas.core.frame.DataFrame'>
```
```python
import sqlite3
import config
import alpaca_trade_api as tradeapi
import pandas as pd
import numpy as np
from datetime import date
symbols = [stock['symbol'] for stock in stocks]
api = tradeapi.REST(config.API_KEY, config.SECRET_KEY, base_url=config.API_URL)
current_date = "2020-12-31"
start_minute_bar = "2020-12-31 09:00:00-05:00"
end_minute_bar = "2020-12-31 09:45:00-05:00"
for symbol in symbols:
minute_bars = api.get_barset(symbol, '5Min', start=pd.Timestamp(current_date), end=pd.Timestamp(current_date)).df
print(symbol)
print(minute_bars.columns)
print(type(minute_bars))
opening_range_mask = (minute_bars.index >= start_minute_bar) & (minute_bars.index < end_minute_bar)
print(type(opening_range_mask))
opening_range_bars = minute_bars.loc[opening_range_mask]
print(opening_range_bars.columns)
print(type(opening_range_bars))
opening_range_low = opening_range_bars['low'].min() <<<<<< ERROR @ THIS LINE ('low') KeyERROR
```
#### Problem description
I keep getting a key error when calling the code line:
opening_range_low = opening_range_bars['low'].min()
the error state being KeyERROR on the 'low' brackets. I've used
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 3e89b4c4b1580aa890023fc550774e63d499da25
python : 3.8.2.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.18362
machine : AMD64
processor : Intel64 Family 6 Model 71 Stepping 1, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en_GB.UTF-8
LOCALE : English_United Kingdom.1252
pandas : 1.2.0
numpy : 1.19.4
pytz : 2020.5
dateutil : 2.8.1
pip : 20.3.3
setuptools : 41.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : None
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>

|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38922/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38922/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38923
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38923/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38923/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38923/events
|
https://github.com/pandas-dev/pandas/issues/38923
| 777,672,030
|
MDU6SXNzdWU3Nzc2NzIwMzA=
| 38,923
|
COMPAT: test in `tests/indexes/interval/test_astype.py` failed on arm64
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4",
"events_url": "https://api.github.com/users/fangchenli/events{/privacy}",
"followers_url": "https://api.github.com/users/fangchenli/followers",
"following_url": "https://api.github.com/users/fangchenli/following{/other_user}",
"gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fangchenli",
"id": 7614606,
"login": "fangchenli",
"node_id": "MDQ6VXNlcjc2MTQ2MDY=",
"organizations_url": "https://api.github.com/users/fangchenli/orgs",
"received_events_url": "https://api.github.com/users/fangchenli/received_events",
"repos_url": "https://api.github.com/users/fangchenli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fangchenli"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "c2e0c6",
"default": false,
"description": "aarch64 architecture",
"id": 2628846204,
"name": "ARM",
"node_id": "MDU6TGFiZWwyNjI4ODQ2MjA0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ARM"
}
] |
open
| false
| null |
[] | null | 0
| 2021-01-03T16:32:30Z
| 2021-08-14T23:12:53Z
| null |
MEMBER
| null |
```bash
_________________ TestFloatSubtype.test_subtype_integer_errors _________________
[gw3] linux -- Python 3.7.9 /home/travis/miniconda3/envs/pandas-dev/bin/python
self = <pandas.tests.indexes.interval.test_astype.TestFloatSubtype object at 0xffff290887d0>
def test_subtype_integer_errors(self):
# float64 -> uint64 fails with negative values
index = interval_range(-10.0, 10.0)
dtype = IntervalDtype("uint64")
msg = re.escape(
"Cannot convert interval[float64] to interval[uint64]; subtypes are "
"incompatible"
)
with pytest.raises(TypeError, match=msg):
> index.astype(dtype)
E Failed: DID NOT RAISE <class 'TypeError'>
pandas/tests/indexes/interval/test_astype.py:177: Failed
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38923/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38923/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38924
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38924/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38924/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38924/events
|
https://github.com/pandas-dev/pandas/pull/38924
| 777,686,823
|
MDExOlB1bGxSZXF1ZXN0NTQ3OTE0ODk1
| 38,924
|
TST: 26807 split pandas/tests/tseries/offsets/test_offsets.py into multiple smaller test modules
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1084147?v=4",
"events_url": "https://api.github.com/users/moink/events{/privacy}",
"followers_url": "https://api.github.com/users/moink/followers",
"following_url": "https://api.github.com/users/moink/following{/other_user}",
"gists_url": "https://api.github.com/users/moink/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/moink",
"id": 1084147,
"login": "moink",
"node_id": "MDQ6VXNlcjEwODQxNDc=",
"organizations_url": "https://api.github.com/users/moink/orgs",
"received_events_url": "https://api.github.com/users/moink/received_events",
"repos_url": "https://api.github.com/users/moink/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/moink/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/moink/subscriptions",
"type": "User",
"url": "https://api.github.com/users/moink"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
},
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 3
| 2021-01-03T17:59:12Z
| 2021-01-05T17:03:38Z
| 2021-01-03T23:22:06Z
|
MEMBER
| null |
This is to address xref #26807 specifically for pandas/tests/tseries/offsets/test_offsets.py . I tried to get all the new modules below about 1000 lines and break it up in logical ways.
Other than moving code, I have changed some list construction for pytest parameterizing to be a tiny bit more compact by changing a bunch of sequential `append`s to a single list literal. Other than that no changes.
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38924/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38924/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38924.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38924",
"merged_at": "2021-01-03T23:22:06Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38924.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38924"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38925
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38925/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38925/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38925/events
|
https://github.com/pandas-dev/pandas/pull/38925
| 777,691,156
|
MDExOlB1bGxSZXF1ZXN0NTQ3OTE3OTQ2
| 38,925
|
ENH: Add support to import optional submodule and specify different min_version than default
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
}
|
[
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-03T18:23:27Z
| 2021-01-04T03:38:53Z
| 2021-01-04T00:14:16Z
|
MEMBER
| null |
- [ ] closes #38888
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
cc @jreback, @arw2019
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38925/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38925/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38925.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38925",
"merged_at": "2021-01-04T00:14:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38925.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38925"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38926
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38926/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38926/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38926/events
|
https://github.com/pandas-dev/pandas/issues/38926
| 777,694,150
|
MDU6SXNzdWU3Nzc2OTQxNTA=
| 38,926
|
CLN: Unify number recognition tests in read_csv for all parsers
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 0
| 2021-01-03T18:42:54Z
| 2021-01-04T23:24:44Z
| 2021-01-04T23:15:17Z
|
MEMBER
| null |
Follow up for #38420
We should parametrize over all parsers for the test sets to ensure a consistent behavior
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38926/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38926/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38927
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38927/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38927/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38927/events
|
https://github.com/pandas-dev/pandas/pull/38927
| 777,695,520
|
MDExOlB1bGxSZXF1ZXN0NTQ3OTIxMDcz
| 38,927
|
TST: stricten xfails
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-03T18:51:51Z
| 2021-01-04T16:22:59Z
| 2021-01-04T13:36:07Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38927/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38927/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38927.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38927",
"merged_at": "2021-01-04T13:36:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38927.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38927"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38928
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38928/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38928/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38928/events
|
https://github.com/pandas-dev/pandas/issues/38928
| 777,698,315
|
MDU6SXNzdWU3Nzc2OTgzMTU=
| 38,928
|
BUG: UnknownTimezoneWarning from df.to_datetime()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7028403?v=4",
"events_url": "https://api.github.com/users/nabelekt/events{/privacy}",
"followers_url": "https://api.github.com/users/nabelekt/followers",
"following_url": "https://api.github.com/users/nabelekt/following{/other_user}",
"gists_url": "https://api.github.com/users/nabelekt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nabelekt",
"id": 7028403,
"login": "nabelekt",
"node_id": "MDQ6VXNlcjcwMjg0MDM=",
"organizations_url": "https://api.github.com/users/nabelekt/orgs",
"received_events_url": "https://api.github.com/users/nabelekt/received_events",
"repos_url": "https://api.github.com/users/nabelekt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nabelekt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nabelekt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nabelekt"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] |
closed
| false
| null |
[] | null | 2
| 2021-01-03T19:08:29Z
| 2021-01-04T01:22:05Z
| 2021-01-04T01:16:46Z
|
NONE
| null |
I have `test.csv`:
```
datetime
Oct 19, 2020 06:58:20 PM EDT
Oct 19, 2020 04:45:33 PM EDT
```
and `test.py`:
```
import pandas as pd
from datetime import datetime
input_file_path = 'test.csv'
df = pd.read_csv(input_file_path, delimiter=';')
print(df)
df['datetime'] = pd.to_datetime(df['datetime'])
print(df)
```
Running `python test.py` results in:
```
datetime
0 Oct 19, 2020 06:58:20 PM EDT
1 Oct 19, 2020 04:45:33 PM EDT
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dateutil/parser/_parser.py:1218: UnknownTimezoneWarning: tzname EDT identified but not understood. Pass `tzinfos` argument in order to correctly return a timezone-aware datetime. In a future version, this will raise an exception.
category=UnknownTimezoneWarning)
datetime
0 2020-10-19 18:58:20
1 2020-10-19 16:45:33
```
The `UnknownTimezoneWarning` from `dateutil` is what I am concerned about. I don't believe there is currently a way to pass an argument to `panda`'s `to_datetime()` to avoid this. Am I missing something or does this need to be addressed?
Running with `pandas` v1.2.0, `python` v3.7.3.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38928/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38928/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38929
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38929/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38929/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38929/events
|
https://github.com/pandas-dev/pandas/pull/38929
| 777,717,069
|
MDExOlB1bGxSZXF1ZXN0NTQ3OTM2MDc1
| 38,929
|
TST: Replace pytest.xfail
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4",
"events_url": "https://api.github.com/users/rhshadrach/events{/privacy}",
"followers_url": "https://api.github.com/users/rhshadrach/followers",
"following_url": "https://api.github.com/users/rhshadrach/following{/other_user}",
"gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rhshadrach",
"id": 45562402,
"login": "rhshadrach",
"node_id": "MDQ6VXNlcjQ1NTYyNDAy",
"organizations_url": "https://api.github.com/users/rhshadrach/orgs",
"received_events_url": "https://api.github.com/users/rhshadrach/received_events",
"repos_url": "https://api.github.com/users/rhshadrach/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rhshadrach"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-03T21:10:21Z
| 2021-01-04T21:05:18Z
| 2021-01-04T01:26:12Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Part of #38902.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38929/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38929/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38929.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38929",
"merged_at": "2021-01-04T01:26:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38929.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38929"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38930
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38930/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38930/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38930/events
|
https://github.com/pandas-dev/pandas/issues/38930
| 777,719,887
|
MDU6SXNzdWU3Nzc3MTk4ODc=
| 38,930
|
TST/REF: splitting pandas/io/parsers.py into multiple files
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4",
"events_url": "https://api.github.com/users/arw2019/events{/privacy}",
"followers_url": "https://api.github.com/users/arw2019/followers",
"following_url": "https://api.github.com/users/arw2019/following{/other_user}",
"gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/arw2019",
"id": 48889395,
"login": "arw2019",
"node_id": "MDQ6VXNlcjQ4ODg5Mzk1",
"organizations_url": "https://api.github.com/users/arw2019/orgs",
"received_events_url": "https://api.github.com/users/arw2019/received_events",
"repos_url": "https://api.github.com/users/arw2019/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arw2019/subscriptions",
"type": "User",
"url": "https://api.github.com/users/arw2019"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-03T21:29:21Z
| 2021-01-21T23:48:43Z
| 2021-01-21T23:48:43Z
|
MEMBER
| null |
`pandas/io/parsers.py` is close to 4k LOC (3986 on 1.3 master). Would it be reasonable to split it into multiple files (located, say, in a `pandas/io/parsers` directory)?
AFAICT the file contains 4 logical pieces:
- `read_...` methods (~700 LOC)
- `ParserBase` and related module-level methods ( ~1100 LOC)
- `CParser` and related module-level methods (~400LOC)
- `PythonParser`, its derived classes and related module-level methods (~1800 LOC)
Once #38370 goes in these would be joined by
- `PyarrowParser` (~100 LOC right now)
IMO this kind of refactor would make the module somewhat easier to grok
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38930/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38930/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38931
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38931/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38931/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38931/events
|
https://github.com/pandas-dev/pandas/pull/38931
| 777,726,452
|
MDExOlB1bGxSZXF1ZXN0NTQ3OTQyNzcy
| 38,931
|
BUG: DataFrame.__setitem__ raising ValueError with string indexer and empty df and df to set
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 0
| 2021-01-03T22:14:19Z
| 2021-01-06T01:13:51Z
| 2021-01-06T00:35:39Z
|
MEMBER
| null |
- [x] closes #38831
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Dont have to convert df to series, df has an index.
cc @jbrockmendel
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38931/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38931/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38931.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38931",
"merged_at": "2021-01-06T00:35:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38931.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38931"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38932
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38932/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38932/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38932/events
|
https://github.com/pandas-dev/pandas/pull/38932
| 777,727,674
|
MDExOlB1bGxSZXF1ZXN0NTQ3OTQzNjkz
| 38,932
|
BUG: rank_2d raising with mixed dtypes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/37011898?v=4",
"events_url": "https://api.github.com/users/mzeitlin11/events{/privacy}",
"followers_url": "https://api.github.com/users/mzeitlin11/followers",
"following_url": "https://api.github.com/users/mzeitlin11/following{/other_user}",
"gists_url": "https://api.github.com/users/mzeitlin11/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mzeitlin11",
"id": 37011898,
"login": "mzeitlin11",
"node_id": "MDQ6VXNlcjM3MDExODk4",
"organizations_url": "https://api.github.com/users/mzeitlin11/orgs",
"received_events_url": "https://api.github.com/users/mzeitlin11/received_events",
"repos_url": "https://api.github.com/users/mzeitlin11/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mzeitlin11/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mzeitlin11/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mzeitlin11"
}
|
[
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-03T22:21:58Z
| 2021-01-05T01:30:14Z
| 2021-01-05T00:45:16Z
|
MEMBER
| null |
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38932/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38932/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38932.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38932",
"merged_at": "2021-01-05T00:45:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38932.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38932"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38933
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38933/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38933/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38933/events
|
https://github.com/pandas-dev/pandas/pull/38933
| 777,737,194
|
MDExOlB1bGxSZXF1ZXN0NTQ3OTUwNjY1
| 38,933
|
DOC: improve shared content between comparison pages
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/86842?v=4",
"events_url": "https://api.github.com/users/afeld/events{/privacy}",
"followers_url": "https://api.github.com/users/afeld/followers",
"following_url": "https://api.github.com/users/afeld/following{/other_user}",
"gists_url": "https://api.github.com/users/afeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/afeld",
"id": 86842,
"login": "afeld",
"node_id": "MDQ6VXNlcjg2ODQy",
"organizations_url": "https://api.github.com/users/afeld/orgs",
"received_events_url": "https://api.github.com/users/afeld/received_events",
"repos_url": "https://api.github.com/users/afeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/afeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/afeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/afeld"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 2
| 2021-01-03T23:31:09Z
| 2021-01-04T04:53:19Z
| 2021-01-04T03:55:07Z
|
MEMBER
| null |
This pull request does a few things between the SAS and Stata pages, in separate commits:
- Makes the headings match, where it makes sense for them to
- Create more shared includes, as a follow-up to https://github.com/pandas-dev/pandas/pull/38887
- Improves some wording and ensures more methods are linked in the comparison includes
The motivation here is that I'm working on adding the other sections to the Comparison to Spreadsheets page, and want to ensure they're consistent.
---
- [ ] ~~closes #xxxx~~
- [x] tests added / passed
- [ ] ~~passes `black pandas`~~
- [ ] ~~passes `git diff upstream/master -u -- "*.py" | flake8 --diff`~~
- [ ] ~~whatsnew entry~~
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38933/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38933/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38933.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38933",
"merged_at": "2021-01-04T03:55:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38933.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38933"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38934
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38934/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38934/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38934/events
|
https://github.com/pandas-dev/pandas/pull/38934
| 777,790,720
|
MDExOlB1bGxSZXF1ZXN0NTQ3OTkyMjIx
| 38,934
|
ENH: Improve numerical stability for groupby.mean and groupby.cumsum
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-04T03:34:55Z
| 2021-01-04T13:26:44Z
| 2021-01-04T13:25:06Z
|
MEMBER
| null |
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38934/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38934/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38934.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38934",
"merged_at": "2021-01-04T13:25:06Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38934.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38934"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38935
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38935/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38935/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38935/events
|
https://github.com/pandas-dev/pandas/pull/38935
| 777,793,198
|
MDExOlB1bGxSZXF1ZXN0NTQ3OTk0MTEx
| 38,935
|
DOC: remove use of head() in the comparison docs
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/86842?v=4",
"events_url": "https://api.github.com/users/afeld/events{/privacy}",
"followers_url": "https://api.github.com/users/afeld/followers",
"following_url": "https://api.github.com/users/afeld/following{/other_user}",
"gists_url": "https://api.github.com/users/afeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/afeld",
"id": 86842,
"login": "afeld",
"node_id": "MDQ6VXNlcjg2ODQy",
"organizations_url": "https://api.github.com/users/afeld/orgs",
"received_events_url": "https://api.github.com/users/afeld/received_events",
"repos_url": "https://api.github.com/users/afeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/afeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/afeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/afeld"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 2
| 2021-01-04T03:43:50Z
| 2021-01-04T13:21:20Z
| 2021-01-04T13:21:16Z
|
MEMBER
| null |
This helps to clarify the examples by removing code that isn't relevant. Added a dedicated section to the SAS, SQL, and Stata pages.
This builds on https://github.com/pandas-dev/pandas/pull/38933; ~~will rebase and mark as ready for review once that's merged. In the meantime, the last commit is the one that can be reviewed.~~ Thanks!
- [ ] ~~closes #xxxx~~
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] ~~whatsnew entry~~
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38935/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38935/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38935.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38935",
"merged_at": "2021-01-04T13:21:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38935.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38935"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38936
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38936/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38936/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38936/events
|
https://github.com/pandas-dev/pandas/issues/38936
| 777,794,983
|
MDU6SXNzdWU3Nzc3OTQ5ODM=
| 38,936
|
CLN: Consolidate raise_on_missing and on_version into a single errors parameter in import_optional_dependency
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
}
] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-04T03:50:52Z
| 2021-01-11T13:59:41Z
| 2021-01-11T13:59:41Z
|
MEMBER
| null |
xref [#38925 comment](https://github.com/pandas-dev/pandas/pull/38925#discussion_r551048418)
The new parameter should errors should have options of either "raise", "warn", or "ignore".
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38936/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38936/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38937
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38937/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38937/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38937/events
|
https://github.com/pandas-dev/pandas/issues/38937
| 777,803,156
|
MDU6SXNzdWU3Nzc4MDMxNTY=
| 38,937
|
ENH: pd.read_excel with table parameter
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/25709809?v=4",
"events_url": "https://api.github.com/users/samukweku/events{/privacy}",
"followers_url": "https://api.github.com/users/samukweku/followers",
"following_url": "https://api.github.com/users/samukweku/following{/other_user}",
"gists_url": "https://api.github.com/users/samukweku/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/samukweku",
"id": 25709809,
"login": "samukweku",
"node_id": "MDQ6VXNlcjI1NzA5ODA5",
"organizations_url": "https://api.github.com/users/samukweku/orgs",
"received_events_url": "https://api.github.com/users/samukweku/received_events",
"repos_url": "https://api.github.com/users/samukweku/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/samukweku/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/samukweku/subscriptions",
"type": "User",
"url": "https://api.github.com/users/samukweku"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] |
open
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 2
| 2021-01-04T04:22:24Z
| 2021-08-14T23:13:35Z
| null |
NONE
| null |
#### Is your feature request related to a problem?
Excel has [tables ](https://support.microsoft.com/en-us/office/overview-of-excel-tables-7ab0bb7d-3a9e-4b56-a3c9-6c94334e492c#:~:text=To%20quickly%20create%20a%20table,row%2C%20and%20then%20click%20OK.), that makes data managing within Excel easier and offers some other features.
At the moment, pandas cannot access those tables, it simply reads in all the data. I think it would be helpful if a `table` parameter was added to `pd.read_excel` to capture table(s) defined in a sheet.
#### Sample Data:
Attached is a sample excel file: [016-MSPTDA-Excel.xlsx](https://github.com/pandas-dev/pandas/files/5768126/016-MSPTDA-Excel.xlsx)
With the current implementation of `read_excel`, we cannot select specific tables (dSalesReps, dProduct, dCategory, or dSupplier). Even if we read the `Tables` sheet, it becomes quite hard to separate the data into individual tables.
#### Describe the solution you'd like
```pd.read_excel(io=filename, sheet=sheetname, table=tablename, ...)```
The table parameter can have a default of `None`, in which case the entire sheet is read in; if however table is not `None`, then the table or lists of tables only are read in. The `openpyxl` library would be used to implement this.
#### API breaking implications
I am not aware of any API breaking implications
#### Describe alternatives you've considered
It could be done outside Pandas, where you read in the data first through `openpyxl`, before passing it to Pandas. I wrote a [blog post](https://samukweku.github.io/data-wrangling-blog/spreadsheet/python/pandas/openpyxl/2020/05/19/Access-Tables-In-Excel.html) about it; I feel, however, that it may be more convenient to provide that same functionality within Pandas and let the user worry less about the abstractions.
#### Additional context
I did check to see if this has been raised before, but did not find any. If it already has, kindly point me to that issue, and I will gladly close this.
Thanks.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38937/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38937/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38938
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38938/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38938/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38938/events
|
https://github.com/pandas-dev/pandas/issues/38938
| 777,808,790
|
MDU6SXNzdWU3Nzc4MDg3OTA=
| 38,938
|
DOC: Update contributing.rst
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/32351527?v=4",
"events_url": "https://api.github.com/users/BobinMathew/events{/privacy}",
"followers_url": "https://api.github.com/users/BobinMathew/followers",
"following_url": "https://api.github.com/users/BobinMathew/following{/other_user}",
"gists_url": "https://api.github.com/users/BobinMathew/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/BobinMathew",
"id": 32351527,
"login": "BobinMathew",
"node_id": "MDQ6VXNlcjMyMzUxNTI3",
"organizations_url": "https://api.github.com/users/BobinMathew/orgs",
"received_events_url": "https://api.github.com/users/BobinMathew/received_events",
"repos_url": "https://api.github.com/users/BobinMathew/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/BobinMathew/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BobinMathew/subscriptions",
"type": "User",
"url": "https://api.github.com/users/BobinMathew"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 2
| 2021-01-04T04:42:01Z
| 2021-01-06T15:02:41Z
| 2021-01-06T15:02:41Z
|
CONTRIBUTOR
| null |
#### Location of the documentation
doc/source/development/contributing.rst
#### Documentation problem
Need additional information about the command that verifies the linting of code files.
#### Suggested fix for documentation
`pre-commit run --from-ref=upstream/master --to-ref=HEAD --all-files`
The command verifies the linting of code files, it looks for common mistake patterns
*NOTE: An additional paragraph is preferred for this*
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38938/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38938/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38939
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38939/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38939/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38939/events
|
https://github.com/pandas-dev/pandas/pull/38939
| 777,852,744
|
MDExOlB1bGxSZXF1ZXN0NTQ4MDQ0MTM2
| 38,939
|
API: honor copy=True when passing dict to DataFrame
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "b60205",
"default": false,
"description": "Internal Consistency of API/Behavior",
"id": 1741841389,
"name": "API - Consistency",
"node_id": "MDU6TGFiZWwxNzQxODQxMzg5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency"
},
{
"color": "70e5ca",
"default": false,
"description": "",
"id": 2085877452,
"name": "Copy / view semantics",
"node_id": "MDU6TGFiZWwyMDg1ODc3NDUy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Copy%20/%20view%20semantics"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 18
| 2021-01-04T06:26:44Z
| 2021-03-31T01:05:17Z
| 2021-03-31T01:03:22Z
|
MEMBER
| null |
- [x] closes #32960
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
xref #34872 cc @TomAugspurger used the test_dict_nocopy you wrote but it ended up pretty mangled
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38939/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38939/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38939.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38939",
"merged_at": "2021-03-31T01:03:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38939.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38939"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38940
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38940/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38940/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38940/events
|
https://github.com/pandas-dev/pandas/pull/38940
| 777,891,463
|
MDExOlB1bGxSZXF1ZXN0NTQ4MDc3MjM2
| 38,940
|
⬆️ UPGRADE: Autoupdate pre-commit config
|
{
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/apps/github-actions",
"id": 41898282,
"login": "github-actions[bot]",
"node_id": "MDM6Qm90NDE4OTgyODI=",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"type": "Bot",
"url": "https://api.github.com/users/github-actions%5Bbot%5D"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 2
| 2021-01-04T07:40:09Z
| 2021-01-05T09:41:33Z
| 2021-01-05T09:41:28Z
|
CONTRIBUTOR
| null |
<!-- START pr-commits -->
<!-- END pr-commits -->
## Base PullRequest
default branch (https://github.com/pandas-dev/pandas/tree/master)
## Command results
<details>
<summary>Details: </summary>
<details>
<summary><em>add path</em></summary>
```Shell
/home/runner/work/_actions/technote-space/create-pr-action/v2/node_modules/npm-check-updates/bin
```
</details>
<details>
<summary><em>pip install pre-commit</em></summary>
```Shell
Collecting pre-commit
Downloading pre_commit-2.9.3-py2.py3-none-any.whl (184 kB)
Collecting cfgv>=2.0.0
Using cached cfgv-3.2.0-py2.py3-none-any.whl (7.3 kB)
Collecting identify>=1.0.0
Downloading identify-1.5.11-py2.py3-none-any.whl (97 kB)
Collecting nodeenv>=0.11.1
Using cached nodeenv-1.5.0-py2.py3-none-any.whl (21 kB)
Collecting pyyaml>=5.1
Using cached PyYAML-5.3.1-cp39-cp39-linux_x86_64.whl
Collecting toml
Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting virtualenv>=20.0.8
Downloading virtualenv-20.2.2-py2.py3-none-any.whl (5.7 MB)
Collecting appdirs<2,>=1.4.3
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting distlib<1,>=0.3.1
Using cached distlib-0.3.1-py2.py3-none-any.whl (335 kB)
Collecting filelock<4,>=3.0.0
Using cached filelock-3.0.12-py3-none-any.whl (7.6 kB)
Collecting six<2,>=1.9.0
Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Installing collected packages: six, filelock, distlib, appdirs, virtualenv, toml, pyyaml, nodeenv, identify, cfgv, pre-commit
Successfully installed appdirs-1.4.4 cfgv-3.2.0 distlib-0.3.1 filelock-3.0.12 identify-1.5.11 nodeenv-1.5.0 pre-commit-2.9.3 pyyaml-5.3.1 six-1.15.0 toml-0.10.2 virtualenv-20.2.2
```
### stderr:
```Shell
WARNING: You are using pip version 20.3.1; however, version 20.3.3 is available.
You should consider upgrading via the '/opt/hostedtoolcache/Python/3.9.1/x64/bin/python -m pip install --upgrade pip' command.
```
</details>
<details>
<summary><em>pre-commit autoupdate || (exit 0);</em></summary>
```Shell
Updating https://github.com/python/black ... already up to date.
Updating https://gitlab.com/pycqa/flake8 ... already up to date.
Updating https://github.com/PyCQA/isort ... [INFO] Initializing environment for https://github.com/PyCQA/isort.
updating 5.6.4 -> 5.7.0.
Updating https://github.com/asottile/pyupgrade ... [INFO] Initializing environment for https://github.com/asottile/pyupgrade.
already up to date.
Updating https://github.com/pre-commit/pygrep-hooks ... already up to date.
Updating https://github.com/asottile/yesqa ... already up to date.
Updating https://github.com/pre-commit/pre-commit-hooks ... [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
already up to date.
Updating https://github.com/codespell-project/codespell ... [INFO] Initializing environment for https://github.com/codespell-project/codespell.
already up to date.
```
</details>
<details>
<summary><em>pre-commit run -a || (exit 0);</em></summary>
```Shell
[INFO] Installing environment for https://github.com/python/black.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://gitlab.com/pycqa/flake8.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://gitlab.com/pycqa/flake8.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/PyCQA/isort.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/asottile/pyupgrade.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/asottile/yesqa.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/codespell-project/codespell.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
black..................................................................................................Passed
flake8.................................................................................................Passed
flake8 (cython)........................................................................................Passed
flake8 (cython template)...............................................................................Passed
isort..................................................................................................Passed
pyupgrade..............................................................................................Passed
rst ``code`` is two backticks..........................................................................Passed
rst directives end with two colons.....................................................................Passed
rst ``inline code`` next to normal text................................................................Passed
Generate pip dependency from conda.....................................................................Passed
flake8-rst.............................................................................................Passed
Check for non-standard imports.........................................................................Passed
Check for non-standard numpy.random-related imports excluding pandas/_testing.py.......................Passed
Check for non-standard imports in test suite...........................................................Passed
Check for incorrect code block or IPython directives...................................................Passed
Check for use of not concatenated strings..............................................................Passed
Check for strings with wrong placed spaces.............................................................Passed
Check for import of private attributes across modules..................................................Passed
Check for use of private functions across modules......................................................Passed
Check for use of bare pytest raises....................................................................Passed
Check for inconsistent use of pandas namespace in tests................................................Passed
Check for use of Union[Series, DataFrame] instead of FrameOrSeriesUnion alias..........................Passed
Check for use of foo.__class__ instead of type(foo)....................................................Passed
Check for use of comment-based annotation syntax and missing error codes...............................Passed
Check code for instances of os.remove..................................................................Passed
Strip unnecessary `# noqa`s............................................................................Passed
Fix End of Files.......................................................................................Passed
Trim Trailing Whitespace...............................................................................Passed
codespell..............................................................................................Passed
```
</details>
</details>
## Changed files
<details>
<summary>Changed file: </summary>
- .pre-commit-config.yaml
</details>
<hr>
[:octocat: Repo](https://github.com/technote-space/create-pr-action) | [:memo: Issues](https://github.com/technote-space/create-pr-action/issues) | [:department_store: Marketplace](https://github.com/marketplace/actions/create-pr-action)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38940/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38940/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38940.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38940",
"merged_at": "2021-01-05T09:41:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38940.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38940"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38941
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38941/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38941/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38941/events
|
https://github.com/pandas-dev/pandas/pull/38941
| 777,928,124
|
MDExOlB1bGxSZXF1ZXN0NTQ4MTA4NDY0
| 38,941
|
DOC: minor tweaks to formatting on SQL comparison page
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/86842?v=4",
"events_url": "https://api.github.com/users/afeld/events{/privacy}",
"followers_url": "https://api.github.com/users/afeld/followers",
"following_url": "https://api.github.com/users/afeld/following{/other_user}",
"gists_url": "https://api.github.com/users/afeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/afeld",
"id": 86842,
"login": "afeld",
"node_id": "MDQ6VXNlcjg2ODQy",
"organizations_url": "https://api.github.com/users/afeld/orgs",
"received_events_url": "https://api.github.com/users/afeld/received_events",
"repos_url": "https://api.github.com/users/afeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/afeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/afeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/afeld"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "5319e7",
"default": false,
"description": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-04T08:41:33Z
| 2021-01-04T13:33:16Z
| 2021-01-04T13:33:13Z
|
MEMBER
| null |
Adding code formatting, missing punctuation, etc. No changes of substance.
- [ ] ~~closes #xxxx~~
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] ~~whatsnew entry~~
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38941/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38941/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38941.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38941",
"merged_at": "2021-01-04T13:33:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38941.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38941"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38942
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38942/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38942/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38942/events
|
https://github.com/pandas-dev/pandas/pull/38942
| 778,038,878
|
MDExOlB1bGxSZXF1ZXN0NTQ4MjAwMDUz
| 38,942
|
Backport PR #38893: doc fix for testing.assert_series_equal check_freq arg
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-01-20T19:40:18Z",
"closed_issues": 138,
"created_at": "2020-12-13T17:06:11Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-01-18T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/81",
"id": 6207963,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81/labels",
"node_id": "MDk6TWlsZXN0b25lNjIwNzk2Mw==",
"number": 81,
"open_issues": 0,
"state": "closed",
"title": "1.2.1",
"updated_at": "2021-01-20T19:40:18Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81"
}
| 0
| 2021-01-04T11:47:48Z
| 2021-01-04T13:47:10Z
| 2021-01-04T13:19:25Z
|
MEMBER
| null |
Backport PR #38893
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38942/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38942/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38942.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38942",
"merged_at": "2021-01-04T13:19:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38942.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38942"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38943
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38943/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38943/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38943/events
|
https://github.com/pandas-dev/pandas/issues/38943
| 778,046,742
|
MDU6SXNzdWU3NzgwNDY3NDI=
| 38,943
|
CI: Travis not running (no credits)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 7
| 2021-01-04T12:02:24Z
| 2021-06-01T13:51:18Z
| 2021-06-01T13:51:18Z
|
MEMBER
| null |
https://travis-ci.com/github/pandas-dev/pandas/requests
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38943/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38943/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38944
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38944/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38944/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38944/events
|
https://github.com/pandas-dev/pandas/issues/38944
| 778,095,854
|
MDU6SXNzdWU3NzgwOTU4NTQ=
| 38,944
|
REGR: empty CatgoricalIndex constructor by passing no data (but passing categories) no longer working
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-04T13:29:38Z
| 2021-05-25T08:14:34Z
| 2021-05-25T08:14:34Z
|
MEMBER
| null |
See https://github.com/pandas-dev/pandas/pull/38614/files#r551313565
https://github.com/pandas-dev/pandas/pull/38614/ changed the CategoricalIndex constructor to disallow scalar values, but at the same time it also disallowed passing *no* values to create an empty index (which in practice means passing the default of `None`):
```
In [17]: pd.CategoricalIndex(categories=['a', 'b'])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-17-6f0ae73d9374> in <module>
----> 1 pd.CategoricalIndex(categories=['a', 'b'])
~/scipy/pandas/pandas/core/indexes/category.py in __new__(cls, data, categories, ordered, dtype, copy, name)
187 dtype: Optional[Dtype] = None,
188 copy=False,
--> 189 name=None,
190 ):
191
TypeError: CategoricalIndex(...) must be called with a collection of some kind, None was passed
```
If we make this change, this is at least something that should be deprecated IMO (eg it breaks dask parquet reading).
But I am not sure if we should change it, since other constructors like `Series()` allow similar creation of empty objects:
cc @jbrockmendel
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38944/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38944/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38945
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38945/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38945/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38945/events
|
https://github.com/pandas-dev/pandas/pull/38945
| 778,101,678
|
MDExOlB1bGxSZXF1ZXN0NTQ4MjUxMzg4
| 38,945
|
Backport PR #38909 on branch 1.2.x (BUG: Fixed regression in rolling.skew and rolling.kurt modifying object)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-01-20T19:40:18Z",
"closed_issues": 138,
"created_at": "2020-12-13T17:06:11Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-01-18T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/81",
"id": 6207963,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81/labels",
"node_id": "MDk6TWlsZXN0b25lNjIwNzk2Mw==",
"number": 81,
"open_issues": 0,
"state": "closed",
"title": "1.2.1",
"updated_at": "2021-01-20T19:40:18Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81"
}
| 0
| 2021-01-04T13:39:05Z
| 2021-01-04T15:23:01Z
| 2021-01-04T15:23:01Z
|
NONE
| null |
Backport PR #38909: BUG: Fixed regression in rolling.skew and rolling.kurt modifying object
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38945/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38945/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38945.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38945",
"merged_at": "2021-01-04T15:23:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38945.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38945"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38946
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38946/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38946/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38946/events
|
https://github.com/pandas-dev/pandas/issues/38946
| 778,134,212
|
MDU6SXNzdWU3NzgxMzQyMTI=
| 38,946
|
REGR: comparison op with dask data structure fails
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] |
open
| false
| null |
[] | null | 9
| 2021-01-04T14:29:39Z
| 2021-08-14T23:14:12Z
| null |
MEMBER
| null |
Using pandas 1.0.5 and latest dask 2020.12.0:
```
In [2]: import dask.dataframe as dd
In [3]: df = pd.DataFrame({"x": ["a", "b", "c"] * 100}, dtype="category")
...: ddf = dd.from_pandas(df, npartitions=3)
In [4]: df.x
Out[4]:
0 a
1 b
2 c
3 a
4 b
..
295 b
296 c
297 a
298 b
299 c
Name: x, Length: 300, dtype: category
Categories (3, object): [a, b, c]
In [5]: ddf.x
Out[5]:
Dask Series Structure:
npartitions=3
0 category[known]
100 ...
200 ...
299 ...
Name: x, dtype: category
Dask Name: getitem, 6 tasks
In [6]: df.x == ddf.x
Out[6]:
0 True
1 True
2 True
3 True
4 True
...
295 True
296 True
297 True
298 True
299 True
Name: x, Length: 300, dtype: bool
In [9]: (df.x == ddf.x).all()
Out[9]: True
```
But with master (using same dask version), this gives:
```
In [3]: df.x == ddf.x
Out[3]:
0 False
1 False
2 False
3 False
4 False
...
295 False
296 False
297 False
298 False
299 False
Name: x, Length: 300, dtype: bool
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38946/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38946/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38947
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38947/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38947/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38947/events
|
https://github.com/pandas-dev/pandas/issues/38947
| 778,203,349
|
MDU6SXNzdWU3NzgyMDMzNDk=
| 38,947
|
REGR: Barplot broken on Index(dtype='object')
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/23336875?v=4",
"events_url": "https://api.github.com/users/douglas-raillard-arm/events{/privacy}",
"followers_url": "https://api.github.com/users/douglas-raillard-arm/followers",
"following_url": "https://api.github.com/users/douglas-raillard-arm/following{/other_user}",
"gists_url": "https://api.github.com/users/douglas-raillard-arm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/douglas-raillard-arm",
"id": 23336875,
"login": "douglas-raillard-arm",
"node_id": "MDQ6VXNlcjIzMzM2ODc1",
"organizations_url": "https://api.github.com/users/douglas-raillard-arm/orgs",
"received_events_url": "https://api.github.com/users/douglas-raillard-arm/received_events",
"repos_url": "https://api.github.com/users/douglas-raillard-arm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/douglas-raillard-arm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/douglas-raillard-arm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/douglas-raillard-arm"
}
|
[
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
open
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 9
| 2021-01-04T16:15:25Z
| 2021-09-23T21:51:37Z
| null |
NONE
| null |
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
df = pd.DataFrame(
{
'a': [1, 2],
},
index=pd.Index([0, 'Total'])
)
df.plot.bar()
```
#### Problem description
On pandas 1.2.0, this raises:
```
Traceback (most recent call last):
File "/home/raillard/WFH/LISA/.lisa-venv-3.8/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 706, in astype
casted = self._values.astype(dtype, copy=copy)
ValueError: invalid literal for int() with base 10: 'Total'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "testplot.py", line 21, in <module>
df.plot.bar()
File "/home/raillard/WFH/LISA/.lisa-venv-3.8/lib/python3.8/site-packages/pandas/plotting/_core.py", line 1113, in bar
return self(kind="bar", x=x, y=y, **kwargs)
File "/home/raillard/WFH/LISA/.lisa-venv-3.8/lib/python3.8/site-packages/pandas/plotting/_core.py", line 955, in __call__
return plot_backend.plot(data, kind=kind, **kwargs)
File "/home/raillard/WFH/LISA/.lisa-venv-3.8/lib/python3.8/site-packages/pandas/plotting/_matplotlib/__init__.py", line 61, in plot
plot_obj.generate()
File "/home/raillard/WFH/LISA/.lisa-venv-3.8/lib/python3.8/site-packages/pandas/plotting/_matplotlib/core.py", line 280, in generate
self._make_plot()
File "/home/raillard/WFH/LISA/.lisa-venv-3.8/lib/python3.8/site-packages/pandas/plotting/_matplotlib/core.py", line 1434, in _make_plot
self.tick_pos = ax.convert_xunits(self.ax_index).astype(np.int)
File "/home/raillard/WFH/LISA/.lisa-venv-3.8/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 708, in astype
raise TypeError(
TypeError: Cannot cast Index to dtype int64
```
#### Expected Output
On pandas 1.1.5, it works without issues and produces a plot with 2 bars, one labeled "0" and the other one "Total" as expected.
#### Output of ``pd.show_versions()``
<details>
Python 3.8.7 (default, Dec 24 2020, 17:53:09)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas as pd
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit : 3e89b4c4b1580aa890023fc550774e63d499da25
python : 3.8.7.final.0
python-bits : 64
OS : Linux
OS-release : 5.10.3-arch1-1
Version : #1 SMP PREEMPT Sun, 27 Dec 2020 10:50:46 +0000
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : fr_FR.UTF-8
LOCALE : fr_FR.UTF-8
pandas : 1.2.0
numpy : 1.19.4
pytz : 2020.5
dateutil : 2.8.1
pip : 20.3.3
setuptools : 51.1.1
Cython : None
pytest : 6.2.1
hypothesis : None
sphinx : 3.4.2
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.3
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 2.0.0
pyxlsb : None
s3fs : None
scipy : 1.6.0
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38947/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38947/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38948
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38948/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38948/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38948/events
|
https://github.com/pandas-dev/pandas/issues/38948
| 778,251,146
|
MDU6SXNzdWU3NzgyNTExNDY=
| 38,948
|
ENH: Return type of pandas.DataFrame.dropna is incorrectly None
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/43184541?v=4",
"events_url": "https://api.github.com/users/rbpatt2019/events{/privacy}",
"followers_url": "https://api.github.com/users/rbpatt2019/followers",
"following_url": "https://api.github.com/users/rbpatt2019/following{/other_user}",
"gists_url": "https://api.github.com/users/rbpatt2019/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rbpatt2019",
"id": 43184541,
"login": "rbpatt2019",
"node_id": "MDQ6VXNlcjQzMTg0NTQx",
"organizations_url": "https://api.github.com/users/rbpatt2019/orgs",
"received_events_url": "https://api.github.com/users/rbpatt2019/received_events",
"repos_url": "https://api.github.com/users/rbpatt2019/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rbpatt2019/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rbpatt2019/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rbpatt2019"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] | null | 2
| 2021-01-04T17:39:10Z
| 2021-03-14T10:55:05Z
| 2021-03-14T10:55:05Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import pandas as pd
import numpy as np
example = pd.DataFrame({'a': [1, 2, 3], 'b': [4, np.nan, 6]})
example.dropna()
```
#### Problem description
Currently, the return type of `pandas.DataFrame.dropna` is missing. The documentation correctly states that the return type should be `Optional[DataFrame]`, but the function definition lacks a return type, so type checkers (in my case pyright) incorrectly throw the type as `None`.
The issue occurs in the source code here:
https://github.com/pandas-dev/pandas/blob/3e89b4c4b1580aa890023fc550774e63d499da25/pandas/core/frame.py#L5041
It should be typed as seen in `pandas.DataFrame.drop_duplicates`, seen below:
https://github.com/pandas-dev/pandas/blob/3e89b4c4b1580aa890023fc550774e63d499da25/pandas/core/frame.py#L5183-L5189
More broadly, it seems that the `dropna` function is missing typing for its arguments as well.
#### Expected Output
The return type of `pandas.DataFrame.dropna` should be `Optional[DataFrame]`
I don't think this should be too hard to fix. I'll work in it tonight and submit a PR in the next day or two.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 3e89b4c4b1580aa890023fc550774e63d499da25
python : 3.9.1.final.0
python-bits : 64
OS : Linux
OS-release : 5.8.0-33-generic
Version : #36-Ubuntu SMP Wed Dec 9 09:14:40 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_GB.UTF-8
LOCALE : en_GB.UTF-8
pandas : 1.2.0
numpy : 1.19.4
pytz : 2020.5
dateutil : 2.8.1
pip : 20.2.2
setuptools : 51.0.0
Cython : None
pytest : 6.2.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.19.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38948/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38948/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38949
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38949/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38949/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38949/events
|
https://github.com/pandas-dev/pandas/issues/38949
| 778,257,659
|
MDU6SXNzdWU3NzgyNTc2NTk=
| 38,949
|
ENH: Explode like feature for spliting column containing iterable values into multiple columns
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6646693?v=4",
"events_url": "https://api.github.com/users/minesh1291/events{/privacy}",
"followers_url": "https://api.github.com/users/minesh1291/followers",
"following_url": "https://api.github.com/users/minesh1291/following{/other_user}",
"gists_url": "https://api.github.com/users/minesh1291/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/minesh1291",
"id": 6646693,
"login": "minesh1291",
"node_id": "MDQ6VXNlcjY2NDY2OTM=",
"organizations_url": "https://api.github.com/users/minesh1291/orgs",
"received_events_url": "https://api.github.com/users/minesh1291/received_events",
"repos_url": "https://api.github.com/users/minesh1291/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/minesh1291/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/minesh1291/subscriptions",
"type": "User",
"url": "https://api.github.com/users/minesh1291"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] |
closed
| false
| null |
[] | null | 5
| 2021-01-04T17:51:59Z
| 2021-08-14T23:18:43Z
| 2021-08-14T23:18:43Z
|
NONE
| null |
#### Describe the solution you'd like
```py
from collections.abc import Iterable
import pandas as pd
def split_columns(df):
iterable_cols = [c for c in df.columns if isinstance(df[c].iloc[0], Iterable)]
for c in iterable_cols:
n = len(df[c].iloc[0])
if isinstance(df[c].iloc[0], dict):
tmp_df = pd.DataFrame(df[c].tolist(), index=df.index)
tmp_df.columns = c + "_" + tmp_df.columns
df = pd.concat([df, tmp_df], 1)
else:
df[[f"{c}_{i}" for i in range(n)]] = pd.DataFrame(
df[c].tolist(), index=df.index
)
return df.drop(iterable_cols, 1)
```
I think the code is not robust and optimized, but it will give an idea of the desired feature.
<table>
<tr>
<td>
Input:
<img src="https://user-images.githubusercontent.com/6646693/103563159-45780100-4ee2-11eb-976b-fbeea5a3922f.png" height="200">
<td>Output:
<img src="https://user-images.githubusercontent.com/6646693/103563202-5cb6ee80-4ee2-11eb-9df9-4c75b80eeb8a.png" height="200">
<tr>
<td>
<img src="https://user-images.githubusercontent.com/6646693/103565357-3bf09800-4ee6-11eb-9f6b-22d7f5bd3e89.png" width=150>
<td>
<img src="https://user-images.githubusercontent.com/6646693/103565412-50349500-4ee6-11eb-8c4b-ad53e3fe89df.png" width=200>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38949/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38949/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38950
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38950/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38950/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38950/events
|
https://github.com/pandas-dev/pandas/pull/38950
| 778,272,340
|
MDExOlB1bGxSZXF1ZXN0NTQ4Mzg4OTA1
| 38,950
|
REF: de-duplicate tslibs.fields
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 0
| 2021-01-04T18:19:52Z
| 2021-01-04T19:30:14Z
| 2021-01-04T19:20:16Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38950/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38950/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38950.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38950",
"merged_at": "2021-01-04T19:20:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38950.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38950"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38951
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38951/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38951/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38951/events
|
https://github.com/pandas-dev/pandas/pull/38951
| 778,284,927
|
MDExOlB1bGxSZXF1ZXN0NTQ4Mzk5MDYx
| 38,951
|
DOC: clarify and spellcheck indexing documentation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/55156127?v=4",
"events_url": "https://api.github.com/users/cjbraun/events{/privacy}",
"followers_url": "https://api.github.com/users/cjbraun/followers",
"following_url": "https://api.github.com/users/cjbraun/following{/other_user}",
"gists_url": "https://api.github.com/users/cjbraun/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cjbraun",
"id": 55156127,
"login": "cjbraun",
"node_id": "MDQ6VXNlcjU1MTU2MTI3",
"organizations_url": "https://api.github.com/users/cjbraun/orgs",
"received_events_url": "https://api.github.com/users/cjbraun/received_events",
"repos_url": "https://api.github.com/users/cjbraun/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cjbraun/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cjbraun/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cjbraun"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-04T18:42:54Z
| 2021-01-05T17:09:34Z
| 2021-01-04T22:34:53Z
|
CONTRIBUTOR
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38951/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38951/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38951.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38951",
"merged_at": "2021-01-04T22:34:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38951.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38951"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/38952
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38952/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38952/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38952/events
|
https://github.com/pandas-dev/pandas/issues/38952
| 778,286,338
|
MDU6SXNzdWU3NzgyODYzMzg=
| 38,952
|
BUG: DataFrame.iloc.setitem with IntegerArray values
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 0
| 2021-01-04T18:45:33Z
| 2021-01-09T22:26:22Z
| 2021-01-09T22:26:22Z
|
MEMBER
| null |
```
arr = pd.array([4, 5, 6])
df = pd.DataFrame(np.arange(3))
>>> df.iloc[:2] = arr[:2]
ValueError: could not broadcast input array from shape (2) into shape (2,1)
>>> df.iloc[:2] = arr[:2].to_numpy() # <-- works fine
```
This bug would not occur with 2D EAs.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38952/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38952/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38953
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38953/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38953/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38953/events
|
https://github.com/pandas-dev/pandas/issues/38953
| 778,289,152
|
MDU6SXNzdWU3NzgyODkxNTI=
| 38,953
|
DOC: MultiIndex.is_lexsorted not linked
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/14239619?v=4",
"events_url": "https://api.github.com/users/kylekeppler/events{/privacy}",
"followers_url": "https://api.github.com/users/kylekeppler/followers",
"following_url": "https://api.github.com/users/kylekeppler/following{/other_user}",
"gists_url": "https://api.github.com/users/kylekeppler/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kylekeppler",
"id": 14239619,
"login": "kylekeppler",
"node_id": "MDQ6VXNlcjE0MjM5NjE5",
"organizations_url": "https://api.github.com/users/kylekeppler/orgs",
"received_events_url": "https://api.github.com/users/kylekeppler/received_events",
"repos_url": "https://api.github.com/users/kylekeppler/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kylekeppler/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kylekeppler/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kylekeppler"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 6
| 2021-01-04T18:50:32Z
| 2021-01-06T04:27:04Z
| 2021-01-06T04:26:43Z
|
CONTRIBUTOR
| null |
#### Location of the documentation
https://pandas.pydata.org/docs/dev/reference/api/pandas.MultiIndex.html?highlight=is_lexsorted
#### Documentation problem
On the API page for `MultiIndex`, `is_lexsorted` does not link to an API page for that method. That method has been deprecated and does not contain a docstring, perhaps that is why there is no link?
#### Suggested fix for documentation
Since this method is deprecated, suggest removing `is_lexsorted` from the list of methods on the `MultiIndex` API page. Alternatively could add a docstring and API page.
What is preferred?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38953/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38953/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38954
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38954/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38954/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38954/events
|
https://github.com/pandas-dev/pandas/pull/38954
| 778,296,460
|
MDExOlB1bGxSZXF1ZXN0NTQ4NDA4MDIx
| 38,954
|
CLN: Unify number recognition tests for all parsers
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-04T19:03:38Z
| 2021-01-04T23:23:01Z
| 2021-01-04T23:15:17Z
|
MEMBER
| null |
- [x] closes #38926
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
Minor regex improvements.
Is a fixture the right thing to do here?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38954/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38954/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38954.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38954",
"merged_at": "2021-01-04T23:15:17Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38954.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38954"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38955
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38955/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38955/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38955/events
|
https://github.com/pandas-dev/pandas/issues/38955
| 778,327,498
|
MDU6SXNzdWU3NzgzMjc0OTg=
| 38,955
|
BUG: read_excel() fails when checking __version__ of older xlrd versions
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/76969886?v=4",
"events_url": "https://api.github.com/users/kcharlie2/events{/privacy}",
"followers_url": "https://api.github.com/users/kcharlie2/followers",
"following_url": "https://api.github.com/users/kcharlie2/following{/other_user}",
"gists_url": "https://api.github.com/users/kcharlie2/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kcharlie2",
"id": 76969886,
"login": "kcharlie2",
"node_id": "MDQ6VXNlcjc2OTY5ODg2",
"organizations_url": "https://api.github.com/users/kcharlie2/orgs",
"received_events_url": "https://api.github.com/users/kcharlie2/received_events",
"repos_url": "https://api.github.com/users/kcharlie2/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kcharlie2/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kcharlie2/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kcharlie2"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
}
] |
{
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
}
| 3
| 2021-01-04T20:00:06Z
| 2021-02-01T13:45:48Z
| 2021-02-01T13:45:48Z
|
NONE
| null |
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### When xlrd is installed but is an "older" version (e.g. 1.1.0):
```python
pandas.read_excel("file.xlsx", engine="openpyxl")
```
raises
```python
AttributeError: module 'xlrd' has no attribute '__version__'
```
This specifically occurs in ``pandas/io/excel/_base.py:336``
#### Problem description
This bug occurs regardless of the ``engine`` input because ``pandas.read_excel()`` _always_ checks ``xlrd.__version__`` if any version of xlrd is installed. Older versions of xlrd use ``__VERSION__`` instead of ``__version__`` instead, which results in the AttributeError.
This exception does not occur and everything behaves as expected if:
- xlrd is not installed
- A "newer" version of xlrd is installed (that has the ``__version__`` attribute)
#### Expected Output
According to the documentation,
```
Changed in version 1.2.0: When engine=None, the following logic will be used to determine the engine:
- If path_or_buffer is an OpenDocument format (.odf, .ods, .odt), then odf will be used.
- Otherwise if path_or_buffer is an xls format, xlrd will be used.
- Otherwise if openpyxl is installed, then openpyxl will be used.
- Otherwise if xlrd >= 2.0 is installed, a ValueError will be raised.
- Otherwise xlrd will be used and a FutureWarning will be raised. This case will raise a ValueError in a future version of pandas.
```
Based on this, I believe the intended behavior is:
- read_excel() should _not_ check the xlrd version if engine is ``"openpyxl"``
- If read_excel() does need to know the version of xlrd, it should try both ``__version__`` and ``__VERSION__``
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 3e89b4c4b1580aa890023fc550774e63d499da25
python : 3.7.4.final.0
python-bits : 64
OS : Linux
OS-release : 3.10.0-1062.4.1.el7.x86_64
Version : #1 SMP Wed Sep 25 09:42:57 EDT 2019
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US
LOCALE : en_US.ISO8859-1
pandas : 1.2.0
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.3.3
setuptools : 40.8.0
Cython : None
pytest : 6.0.1
hypothesis : None
sphinx : 3.2.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : None
tables : 3.6.1
tabulate : 0.8.7
xarray : None
xlrd : 1.1.0
xlwt : None
numba : None
</details>
|
{
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38955/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38955/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38956
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38956/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38956/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38956/events
|
https://github.com/pandas-dev/pandas/issues/38956
| 778,348,310
|
MDU6SXNzdWU3NzgzNDgzMTA=
| 38,956
|
BUG: read_excel() using openpyxl engine header argument not working as expected
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/42557206?v=4",
"events_url": "https://api.github.com/users/JuliaWilkinsSonos/events{/privacy}",
"followers_url": "https://api.github.com/users/JuliaWilkinsSonos/followers",
"following_url": "https://api.github.com/users/JuliaWilkinsSonos/following{/other_user}",
"gists_url": "https://api.github.com/users/JuliaWilkinsSonos/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JuliaWilkinsSonos",
"id": 42557206,
"login": "JuliaWilkinsSonos",
"node_id": "MDQ6VXNlcjQyNTU3MjA2",
"organizations_url": "https://api.github.com/users/JuliaWilkinsSonos/orgs",
"received_events_url": "https://api.github.com/users/JuliaWilkinsSonos/received_events",
"repos_url": "https://api.github.com/users/JuliaWilkinsSonos/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JuliaWilkinsSonos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JuliaWilkinsSonos/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JuliaWilkinsSonos"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
}
| 13
| 2021-01-04T20:35:24Z
| 2021-02-05T03:15:59Z
| 2021-02-05T03:15:59Z
|
NONE
| null |
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [X] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
I am happy to provide the file I am using privately, offline if necessary. This would be necessary to directly reproduce this error.
```
import pandas as pd
df = pd.read_excel(myfile.xlsx, engine='openpyxl', header=2)
```
Throws error:
```...ValueError: Passed header=2 but only 2 lines in file```
#### Problem description
I changed my `read_excel()` code to be now using `engine='openpyxl` with the 1.2 `read_excel()` changes, but the `header` argument is no longer working as it was before. I am trying to read in a .xlsx file that has 2 initial rows that should be skipped, and the 3rd row contains the headers. Thus, I am passing `header=2`, which should automatically skip the first two rows and use the 3rd (0-indexed) row as the headers. However, I am getting the following error: `ValueError: Passed header=2 but only 2 lines in file`. I have confirmed multiple times that this file contains more than 2 lines - it contains thousands (happy to provide this file offline if necessary). I was able to previously run this code with the same file (before the `xlrd` deprecation, using the same header specification. With the openpyxl changes in 1.2, should we be using the `header` argument any differently? Thank you.
This is related to changes in https://github.com/pandas-dev/pandas/pull/35029.
#### Expected Output
Intended behavior would be that the .xlsx file is successfully read in as a dataframe using headers in row 3 and does not throw the above error.
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.6.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.3
numpy : 1.19.4
pytz : 2020.5
dateutil : 2.8.1
pip : 20.3.3
setuptools : 50.3.2
Cython : None
pytest : 4.3.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 4.3.1
pyxlsb : None
s3fs : 0.4.2
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 2.0.1
xlwt : None
xlsxwriter : None
numba : None
```
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38956/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38956/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38957
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38957/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38957/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38957/events
|
https://github.com/pandas-dev/pandas/pull/38957
| 778,352,222
|
MDExOlB1bGxSZXF1ZXN0NTQ4NDU0MDcz
| 38,957
|
DOC: move API breaking "check_freq" section from v1.2.1rst to v1.1.0.rst
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/14239619?v=4",
"events_url": "https://api.github.com/users/kylekeppler/events{/privacy}",
"followers_url": "https://api.github.com/users/kylekeppler/followers",
"following_url": "https://api.github.com/users/kylekeppler/following{/other_user}",
"gists_url": "https://api.github.com/users/kylekeppler/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kylekeppler",
"id": 14239619,
"login": "kylekeppler",
"node_id": "MDQ6VXNlcjE0MjM5NjE5",
"organizations_url": "https://api.github.com/users/kylekeppler/orgs",
"received_events_url": "https://api.github.com/users/kylekeppler/received_events",
"repos_url": "https://api.github.com/users/kylekeppler/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kylekeppler/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kylekeppler/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kylekeppler"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-01-20T19:40:18Z",
"closed_issues": 138,
"created_at": "2020-12-13T17:06:11Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-01-18T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/81",
"id": 6207963,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81/labels",
"node_id": "MDk6TWlsZXN0b25lNjIwNzk2Mw==",
"number": 81,
"open_issues": 0,
"state": "closed",
"title": "1.2.1",
"updated_at": "2021-01-20T19:40:18Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81"
}
| 3
| 2021-01-04T20:42:11Z
| 2021-01-05T15:37:43Z
| 2021-01-04T22:45:12Z
|
CONTRIBUTOR
| null |
and add reference to 1.1.0 whats new update in v1.2.1.rst
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
This moves the doc notes for `assert_series_equal` and `assert_frame_equal` from the 1.2.1 whats new to the 1.1.0 whats new and adds a small reference to the section in the 1.1.0 page in the 1.2.1 page. This came up in #38471 and makes more sense to me than the current approach, but happy to close if current state is preferred.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38957/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38957/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38957.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38957",
"merged_at": "2021-01-04T22:45:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38957.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38957"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38958
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38958/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38958/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38958/events
|
https://github.com/pandas-dev/pandas/pull/38958
| 778,425,379
|
MDExOlB1bGxSZXF1ZXN0NTQ4NTE1MzIz
| 38,958
|
Backport PR #38957 on branch 1.2.x (DOC: move API breaking "check_freq" section from v1.2.1rst to v1.1.0.rst)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-01-20T19:40:18Z",
"closed_issues": 138,
"created_at": "2020-12-13T17:06:11Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-01-18T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/81",
"id": 6207963,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81/labels",
"node_id": "MDk6TWlsZXN0b25lNjIwNzk2Mw==",
"number": 81,
"open_issues": 0,
"state": "closed",
"title": "1.2.1",
"updated_at": "2021-01-20T19:40:18Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81"
}
| 0
| 2021-01-04T22:45:26Z
| 2021-01-05T00:11:03Z
| 2021-01-05T00:11:03Z
|
NONE
| null |
Backport PR #38957: DOC: move API breaking "check_freq" section from v1.2.1rst to v1.1.0.rst
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38958/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38958/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38958.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38958",
"merged_at": "2021-01-05T00:11:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38958.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38958"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38959
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38959/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38959/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38959/events
|
https://github.com/pandas-dev/pandas/pull/38959
| 778,425,594
|
MDExOlB1bGxSZXF1ZXN0NTQ4NTE1NTA3
| 38,959
|
TYP/CLN: assorted cleanups
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 0
| 2021-01-04T22:45:54Z
| 2021-01-05T01:18:03Z
| 2021-01-05T00:14:05Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38959/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38959/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38959.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38959",
"merged_at": "2021-01-05T00:14:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38959.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38959"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/38960
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38960/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38960/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38960/events
|
https://github.com/pandas-dev/pandas/pull/38960
| 778,450,840
|
MDExOlB1bGxSZXF1ZXN0NTQ4NTM2MzYy
| 38,960
|
TST: strict xfail
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4",
"events_url": "https://api.github.com/users/rhshadrach/events{/privacy}",
"followers_url": "https://api.github.com/users/rhshadrach/followers",
"following_url": "https://api.github.com/users/rhshadrach/following{/other_user}",
"gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rhshadrach",
"id": 45562402,
"login": "rhshadrach",
"node_id": "MDQ6VXNlcjQ1NTYyNDAy",
"organizations_url": "https://api.github.com/users/rhshadrach/orgs",
"received_events_url": "https://api.github.com/users/rhshadrach/received_events",
"repos_url": "https://api.github.com/users/rhshadrach/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rhshadrach"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 13
| 2021-01-04T23:37:53Z
| 2021-02-03T02:48:45Z
| 2021-01-09T21:46:29Z
|
MEMBER
| null |
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
Part of #38902.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38960/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38960/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38960.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38960",
"merged_at": "2021-01-09T21:46:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38960.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38960"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38961
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38961/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38961/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38961/events
|
https://github.com/pandas-dev/pandas/pull/38961
| 778,456,574
|
MDExOlB1bGxSZXF1ZXN0NTQ4NTQwOTAw
| 38,961
|
REF: move functions out of _testing/__init__
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 5
| 2021-01-04T23:52:11Z
| 2021-01-05T02:26:32Z
| 2021-01-05T02:18:14Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38961/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38961/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38961.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38961",
"merged_at": "2021-01-05T02:18:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38961.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38961"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/38962
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38962/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38962/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38962/events
|
https://github.com/pandas-dev/pandas/issues/38962
| 778,547,629
|
MDU6SXNzdWU3Nzg1NDc2Mjk=
| 38,962
|
BUG: DataFrame.any() with not returning Boolean series with skipna=False across columns with numeric and string types
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/32990698?v=4",
"events_url": "https://api.github.com/users/rmwenzel/events{/privacy}",
"followers_url": "https://api.github.com/users/rmwenzel/followers",
"following_url": "https://api.github.com/users/rmwenzel/following{/other_user}",
"gists_url": "https://api.github.com/users/rmwenzel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rmwenzel",
"id": 32990698,
"login": "rmwenzel",
"node_id": "MDQ6VXNlcjMyOTkwNjk4",
"organizations_url": "https://api.github.com/users/rmwenzel/orgs",
"received_events_url": "https://api.github.com/users/rmwenzel/received_events",
"repos_url": "https://api.github.com/users/rmwenzel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rmwenzel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rmwenzel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rmwenzel"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "d8439a",
"default": false,
"description": "Issue related to pandas dependency",
"id": 2533668378,
"name": "Upstream issue",
"node_id": "MDU6TGFiZWwyNTMzNjY4Mzc4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Upstream%20issue"
}
] |
closed
| false
| null |
[] | null | 11
| 2021-01-05T03:33:00Z
| 2021-01-10T04:42:03Z
| 2021-01-10T04:02:23Z
|
NONE
| null |
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
If the dataframe has columns have different numeric types
```python
import pandas as pd
import numpy as np
df = pd.DataFrame([[1, 0], [np.nan, 1]], columns=list('ab'))
df.any(axis=1, skipna=False)
```
the behavior is as expected
```python
0 True
1 True
dtype: bool
```
But if the columns have numeric and string types
```python
df = pd.DataFrame([[1, 's'], [np.nan, 't']], columns=list('ab'))
df.any(axis=1, skipna=False)
```
it looks like the first column is returned
```python
0 1
1 NaN
dtype: object
```
The mixed types across rows doesn't seem to be a problem, if I do
```python
df = pd.DataFrame([['s', 1], [np.nan, 't']], columns=list('ab'))
df.any(axis=0, skipna=False)
```
I get
```python
a True
b True
dtype: bool
```
Also don't have any issues if `skipna=True`.
Expected behavior is to get a series of booleans either way.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : b5958ee1999e9aead1938c0bba2b674378807b3d
python : 3.9.1.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.5
numpy : 1.19.2
pytz : 2020.5
dateutil : 2.8.1
pip : 20.3.3
setuptools : 51.0.0.post20201207
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.19.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38962/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38962/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38963
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38963/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38963/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38963/events
|
https://github.com/pandas-dev/pandas/pull/38963
| 778,592,650
|
MDExOlB1bGxSZXF1ZXN0NTQ4NjUxNzA4
| 38,963
|
DEPR: Rolling.win_type returning freq & is_datetimelike
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
},
{
"color": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 7
| 2021-01-05T05:17:07Z
| 2021-01-08T17:26:42Z
| 2021-01-06T14:27:58Z
|
MEMBER
| null |
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
xref: https://github.com/pandas-dev/pandas/pull/38641#issuecomment-754118989
xref: https://github.com/pandas-dev/pandas/pull/38664/files#r551419130
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38963/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38963/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38963.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38963",
"merged_at": "2021-01-06T14:27:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38963.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38963"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38964
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38964/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38964/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38964/events
|
https://github.com/pandas-dev/pandas/issues/38964
| 778,601,697
|
MDU6SXNzdWU3Nzg2MDE2OTc=
| 38,964
|
BUG: Timedelta.min.ceil("us") returns NaT
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 0
| 2021-01-05T05:38:31Z
| 2021-02-05T03:11:54Z
| 2021-02-05T03:11:54Z
|
MEMBER
| null |
```
>>> Timedelta.min.ceil("us")
NaT
>>> pd.Timedelta.max.floor("us")
OverflowError: Python int too large to convert to C long
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38964/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38964/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38965
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38965/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38965/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38965/events
|
https://github.com/pandas-dev/pandas/pull/38965
| 778,611,306
|
MDExOlB1bGxSZXF1ZXN0NTQ4NjY3NDMz
| 38,965
|
BUG: Timedelta(td64_out_of_bounds) silently overflowing
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 2
| 2021-01-05T05:58:46Z
| 2021-01-06T18:42:34Z
| 2021-01-06T18:35:30Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38965/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38965/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38965.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38965",
"merged_at": "2021-01-06T18:35:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38965.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38965"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38966
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38966/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38966/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38966/events
|
https://github.com/pandas-dev/pandas/issues/38966
| 778,632,678
|
MDU6SXNzdWU3Nzg2MzI2Nzg=
| 38,966
|
BUG: Fillna doesn't work on large dataframes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/38789227?v=4",
"events_url": "https://api.github.com/users/PranayAnchuri/events{/privacy}",
"followers_url": "https://api.github.com/users/PranayAnchuri/followers",
"following_url": "https://api.github.com/users/PranayAnchuri/following{/other_user}",
"gists_url": "https://api.github.com/users/PranayAnchuri/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/PranayAnchuri",
"id": 38789227,
"login": "PranayAnchuri",
"node_id": "MDQ6VXNlcjM4Nzg5MjI3",
"organizations_url": "https://api.github.com/users/PranayAnchuri/orgs",
"received_events_url": "https://api.github.com/users/PranayAnchuri/received_events",
"repos_url": "https://api.github.com/users/PranayAnchuri/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/PranayAnchuri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/PranayAnchuri/subscriptions",
"type": "User",
"url": "https://api.github.com/users/PranayAnchuri"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
}
] |
open
| false
| null |
[] | null | 2
| 2021-01-05T06:38:28Z
| 2021-08-14T23:19:26Z
| null |
NONE
| null |
- [X ] I have checked that this issue has not already been reported.
- [X ] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
I'm using the fillna function as follows
```
ax = data.xtrain.fillna({"A": 123}, inplace=False)
```
Here data.xtrain is pandas dataframe
```
ipdb> type(data.xtrain)
<class 'pandas.core.frame.DataFrame'>
ipdb> data.xtrain.shape
(1317, 2728)
```
I noticed that the fillna method doesn't on my dataframe. It works okay on the samples provided in documentation. By digging into the codebase, I was able to isolate the error to the following line https://github.com/pandas-dev/pandas/blob/bbffcb95cf8a9ecc190ed8f467c7e283bc7d50b8/pandas/core/generic.py#L6424
Here `result[k]` seems to return a new copy of the column `k`
```
ipdb> obj is result[k]
False
```
`fillna` wouldn't work if the above attribute access returns a copy of the column.
I don't see a similar effect when the dataframe is a small 4*5 matrix.
#### Code Sample, a copy-pastable example
Unfortunately, the dataframe contains sensitive information which I can't share.
#### Problem description
`fillna` method uses attribute access when passed a dict of na values. In some cases, attribute access returns a new copy of the column which leads to the method not working as expected.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.7.6.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-58-generic
Version : #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.0
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.1.0.post20200127
Cython : None
pytest : 5.4.3
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.16.1
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.7.4
fastparquet : None
gcsfs : None
matplotlib : 3.3.0
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 1.0.0
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
[paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag]
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38966/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38966/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38967
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38967/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38967/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38967/events
|
https://github.com/pandas-dev/pandas/pull/38967
| 778,769,340
|
MDExOlB1bGxSZXF1ZXN0NTQ4ODA5MTA4
| 38,967
|
TST: add missing iloc label indexing tests
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/71941335?v=4",
"events_url": "https://api.github.com/users/vangorade/events{/privacy}",
"followers_url": "https://api.github.com/users/vangorade/followers",
"following_url": "https://api.github.com/users/vangorade/following{/other_user}",
"gists_url": "https://api.github.com/users/vangorade/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vangorade",
"id": 71941335,
"login": "vangorade",
"node_id": "MDQ6VXNlcjcxOTQxMzM1",
"organizations_url": "https://api.github.com/users/vangorade/orgs",
"received_events_url": "https://api.github.com/users/vangorade/received_events",
"repos_url": "https://api.github.com/users/vangorade/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vangorade/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vangorade/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vangorade"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-05T09:00:38Z
| 2021-01-10T11:05:52Z
| 2021-01-05T14:12:11Z
|
CONTRIBUTOR
| null |
- [x] closes #38967
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38967/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38967/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38967.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38967",
"merged_at": "2021-01-05T14:12:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38967.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38967"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38968
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38968/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38968/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38968/events
|
https://github.com/pandas-dev/pandas/pull/38968
| 778,829,077
|
MDExOlB1bGxSZXF1ZXN0NTQ4ODYxNjY5
| 38,968
|
ENH: Add typing for pandas.core.frame.dropna
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/43184541?v=4",
"events_url": "https://api.github.com/users/rbpatt2019/events{/privacy}",
"followers_url": "https://api.github.com/users/rbpatt2019/followers",
"following_url": "https://api.github.com/users/rbpatt2019/following{/other_user}",
"gists_url": "https://api.github.com/users/rbpatt2019/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rbpatt2019",
"id": 43184541,
"login": "rbpatt2019",
"node_id": "MDQ6VXNlcjQzMTg0NTQx",
"organizations_url": "https://api.github.com/users/rbpatt2019/orgs",
"received_events_url": "https://api.github.com/users/rbpatt2019/received_events",
"repos_url": "https://api.github.com/users/rbpatt2019/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rbpatt2019/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rbpatt2019/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rbpatt2019"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
},
{
"color": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] |
closed
| false
| null |
[] | null | 13
| 2021-01-05T10:02:32Z
| 2021-04-24T13:31:51Z
| 2021-04-24T13:31:51Z
|
NONE
| null |
This PR adds type hinting for pandas.core.frame.dropna. Additionally, an explicit `return None` was added to the if/else block for in-place changes to meet mypy standards and make the types explicit.
I haven't yet run the tests, because I didn't modify any source code. Once/if the CI builds pass, I'll check it off the list.
- [x] closes #38948
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38968/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38968/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38968.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38968",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/38968.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38968"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38969
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38969/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38969/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38969/events
|
https://github.com/pandas-dev/pandas/issues/38969
| 778,908,714
|
MDU6SXNzdWU3Nzg5MDg3MTQ=
| 38,969
|
REGR: Bar plot from Series with IntervalIndex fails in pandas 1.2.0
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/51399800?v=4",
"events_url": "https://api.github.com/users/venaturum/events{/privacy}",
"followers_url": "https://api.github.com/users/venaturum/followers",
"following_url": "https://api.github.com/users/venaturum/following{/other_user}",
"gists_url": "https://api.github.com/users/venaturum/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/venaturum",
"id": 51399800,
"login": "venaturum",
"node_id": "MDQ6VXNlcjUxMzk5ODAw",
"organizations_url": "https://api.github.com/users/venaturum/orgs",
"received_events_url": "https://api.github.com/users/venaturum/received_events",
"repos_url": "https://api.github.com/users/venaturum/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/venaturum/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/venaturum/subscriptions",
"type": "User",
"url": "https://api.github.com/users/venaturum"
}
|
[
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
open
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 7
| 2021-01-05T11:41:55Z
| 2021-08-14T23:19:45Z
| null |
CONTRIBUTOR
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
pd.Series(
[1,2],
index=pd.interval_range(0,2)
).plot.bar()
```
#### Problem description
The following error is raised in pandas 1.2.0
TypeError: Cannot cast IntervalIndex to dtype int32
pandas 1.1.5 does not have the same issue
stack trace:
<details>
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
c:\users\rclement\documents\.venv\lib\site-packages\pandas\core\arrays\interval.py in astype(self, dtype, copy)
777 try:
--> 778 return np.asarray(self).astype(dtype, copy=copy)
779 except (TypeError, ValueError) as err:
TypeError: int() argument must be a string, a bytes-like object or a number, not 'pandas._libs.interval.Interval'
The above exception was the direct cause of the following exception:
TypeError Traceback (most recent call last)
<ipython-input-4-fc9e0f28d9be> in <module>
1 pd.Series(
2 [1,2],
----> 3 index=pd.interval_range(0,2)
4 ).plot.bar()
c:\users\rclement\documents\.venv\lib\site-packages\pandas\plotting\_core.py in bar(self, x, y, **kwargs)
1111 other axis represents a measured value.
1112 """
-> 1113 return self(kind="bar", x=x, y=y, **kwargs)
1114
1115 @Appender(
c:\users\rclement\documents\.venv\lib\site-packages\pandas\plotting\_core.py in __call__(self, *args, **kwargs)
953 data.columns = label_name
954
--> 955 return plot_backend.plot(data, kind=kind, **kwargs)
956
957 __call__.__doc__ = __doc__
c:\users\rclement\documents\.venv\lib\site-packages\pandas\plotting\_matplotlib\__init__.py in plot(data, kind, **kwargs)
59 kwargs["ax"] = getattr(ax, "left_ax", ax)
60 plot_obj = PLOT_CLASSES[kind](data, **kwargs)
---> 61 plot_obj.generate()
62 plot_obj.draw()
63 return plot_obj.result
c:\users\rclement\documents\.venv\lib\site-packages\pandas\plotting\_matplotlib\core.py in generate(self)
278 self._compute_plot_data()
279 self._setup_subplots()
--> 280 self._make_plot()
281 self._add_table()
282 self._make_legend()
c:\users\rclement\documents\.venv\lib\site-packages\pandas\plotting\_matplotlib\core.py in _make_plot(self)
1432 if self.orientation == "vertical":
1433 ax.xaxis.update_units(self.ax_index)
-> 1434 self.tick_pos = ax.convert_xunits(self.ax_index).astype(np.int)
1435 elif self.orientation == "horizontal":
1436 ax.yaxis.update_units(self.ax_index)
c:\users\rclement\documents\.venv\lib\site-packages\pandas\core\indexes\interval.py in astype(self, dtype, copy)
368 def astype(self, dtype, copy: bool = True):
369 with rewrite_exception("IntervalArray", type(self).__name__):
--> 370 new_values = self._values.astype(dtype, copy=copy)
371 return Index(new_values, dtype=new_values.dtype, name=self.name)
372
c:\users\rclement\documents\.venv\lib\site-packages\pandas\core\arrays\interval.py in astype(self, dtype, copy)
779 except (TypeError, ValueError) as err:
780 msg = f"Cannot cast {type(self).__name__} to dtype {dtype}"
--> 781 raise TypeError(msg) from err
782
783 def equals(self, other) -> bool:
TypeError: Cannot cast IntervalIndex to dtype int32
</details>
#### Expected Output
A bar plot (produced with pandas 1.1.5):

#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 3e89b4c4b1580aa890023fc550774e63d499da25
python : 3.7.5.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.18362
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.2.0
numpy : 1.19.4
pytz : 2020.5
dateutil : 2.8.1
pip : 19.2.3
setuptools : 41.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.3
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38969/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38969/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38970
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38970/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38970/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38970/events
|
https://github.com/pandas-dev/pandas/pull/38970
| 778,993,459
|
MDExOlB1bGxSZXF1ZXN0NTQ5MDA3MTY1
| 38,970
|
Backport PR #38841 on branch 1.2.x (Update conf.py to execute imports during pdf building)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-01-20T19:40:18Z",
"closed_issues": 138,
"created_at": "2020-12-13T17:06:11Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-01-18T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/81",
"id": 6207963,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81/labels",
"node_id": "MDk6TWlsZXN0b25lNjIwNzk2Mw==",
"number": 81,
"open_issues": 0,
"state": "closed",
"title": "1.2.1",
"updated_at": "2021-01-20T19:40:18Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81"
}
| 0
| 2021-01-05T12:58:45Z
| 2021-01-05T14:12:30Z
| 2021-01-05T14:12:29Z
|
NONE
| null |
Backport PR #38841: Update conf.py to execute imports during pdf building
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38970/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38970/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38970.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38970",
"merged_at": "2021-01-05T14:12:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38970.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38970"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38971
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38971/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38971/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38971/events
|
https://github.com/pandas-dev/pandas/pull/38971
| 779,001,502
|
MDExOlB1bGxSZXF1ZXN0NTQ5MDE0Mzcy
| 38,971
|
Backport PR #38803 on branch 1.2.x (BUG: avoid attribute error with pyarrow >=0.16.0 and <1.0.0)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-01-20T19:40:18Z",
"closed_issues": 138,
"created_at": "2020-12-13T17:06:11Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-01-18T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/81",
"id": 6207963,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81/labels",
"node_id": "MDk6TWlsZXN0b25lNjIwNzk2Mw==",
"number": 81,
"open_issues": 0,
"state": "closed",
"title": "1.2.1",
"updated_at": "2021-01-20T19:40:18Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81"
}
| 0
| 2021-01-05T13:05:41Z
| 2021-01-05T14:12:45Z
| 2021-01-05T14:12:45Z
|
NONE
| null |
Backport PR #38803: BUG: avoid attribute error with pyarrow >=0.16.0 and <1.0.0
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38971/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38971/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38971.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38971",
"merged_at": "2021-01-05T14:12:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38971.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38971"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38972
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38972/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38972/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38972/events
|
https://github.com/pandas-dev/pandas/issues/38972
| 779,067,621
|
MDU6SXNzdWU3NzkwNjc2MjE=
| 38,972
|
pandas.core.groupby.DataFrameGroupBy.rank() dense_rank does not work
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/14334826?v=4",
"events_url": "https://api.github.com/users/UlionTse/events{/privacy}",
"followers_url": "https://api.github.com/users/UlionTse/followers",
"following_url": "https://api.github.com/users/UlionTse/following{/other_user}",
"gists_url": "https://api.github.com/users/UlionTse/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/UlionTse",
"id": 14334826,
"login": "UlionTse",
"node_id": "MDQ6VXNlcjE0MzM0ODI2",
"organizations_url": "https://api.github.com/users/UlionTse/orgs",
"received_events_url": "https://api.github.com/users/UlionTse/received_events",
"repos_url": "https://api.github.com/users/UlionTse/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/UlionTse/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/UlionTse/subscriptions",
"type": "User",
"url": "https://api.github.com/users/UlionTse"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6472290?v=4",
"events_url": "https://api.github.com/users/debnathshoham/events{/privacy}",
"followers_url": "https://api.github.com/users/debnathshoham/followers",
"following_url": "https://api.github.com/users/debnathshoham/following{/other_user}",
"gists_url": "https://api.github.com/users/debnathshoham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/debnathshoham",
"id": 6472290,
"login": "debnathshoham",
"node_id": "MDQ6VXNlcjY0NzIyOTA=",
"organizations_url": "https://api.github.com/users/debnathshoham/orgs",
"received_events_url": "https://api.github.com/users/debnathshoham/received_events",
"repos_url": "https://api.github.com/users/debnathshoham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/debnathshoham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/debnathshoham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/debnathshoham"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/6472290?v=4",
"events_url": "https://api.github.com/users/debnathshoham/events{/privacy}",
"followers_url": "https://api.github.com/users/debnathshoham/followers",
"following_url": "https://api.github.com/users/debnathshoham/following{/other_user}",
"gists_url": "https://api.github.com/users/debnathshoham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/debnathshoham",
"id": 6472290,
"login": "debnathshoham",
"node_id": "MDQ6VXNlcjY0NzIyOTA=",
"organizations_url": "https://api.github.com/users/debnathshoham/orgs",
"received_events_url": "https://api.github.com/users/debnathshoham/received_events",
"repos_url": "https://api.github.com/users/debnathshoham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/debnathshoham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/debnathshoham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/debnathshoham"
}
] |
{
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
}
| 11
| 2021-01-05T14:00:59Z
| 2021-07-12T19:30:38Z
| 2021-07-12T19:30:38Z
|
NONE
| null |

|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38972/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38972/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38973
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38973/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38973/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38973/events
|
https://github.com/pandas-dev/pandas/pull/38973
| 779,289,204
|
MDExOlB1bGxSZXF1ZXN0NTQ5MjczMzAy
| 38,973
|
TST: update pre-commit config to only exclude extension from bare pytest.raises check
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1084147?v=4",
"events_url": "https://api.github.com/users/moink/events{/privacy}",
"followers_url": "https://api.github.com/users/moink/followers",
"following_url": "https://api.github.com/users/moink/following{/other_user}",
"gists_url": "https://api.github.com/users/moink/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/moink",
"id": 1084147,
"login": "moink",
"node_id": "MDQ6VXNlcjEwODQxNDc=",
"organizations_url": "https://api.github.com/users/moink/orgs",
"received_events_url": "https://api.github.com/users/moink/received_events",
"repos_url": "https://api.github.com/users/moink/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/moink/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/moink/subscriptions",
"type": "User",
"url": "https://api.github.com/users/moink"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-05T16:56:16Z
| 2021-01-05T19:10:57Z
| 2021-01-05T18:47:08Z
|
MEMBER
| null |
With #38920 I eliminated all instances of `pytest.raise` without `match=msg` in pandas/tests/computation and pandas/tests/io. #38799 was happening around the same time and missed that they were fixed. So this closes the loop and now only pandas/tests/extension needs to be excluded from the linting check.
I don't think the bare `pytest.raise`s in pandas/tests/extensions will be removed. They are in a pretty complex inheritance hierarchy and reused for many different types of errors and error messages. So I propose that this PR closes #30999.
- [x] closes #30999
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38973/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38973/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38973.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38973",
"merged_at": "2021-01-05T18:47:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38973.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38973"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38974
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38974/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38974/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38974/events
|
https://github.com/pandas-dev/pandas/issues/38974
| 779,312,013
|
MDU6SXNzdWU3NzkzMTIwMTM=
| 38,974
|
BUG: pd.to_numeric does not copy _mask for ExtensionArrays
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4",
"events_url": "https://api.github.com/users/arw2019/events{/privacy}",
"followers_url": "https://api.github.com/users/arw2019/followers",
"following_url": "https://api.github.com/users/arw2019/following{/other_user}",
"gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/arw2019",
"id": 48889395,
"login": "arw2019",
"node_id": "MDQ6VXNlcjQ4ODg5Mzk1",
"organizations_url": "https://api.github.com/users/arw2019/orgs",
"received_events_url": "https://api.github.com/users/arw2019/received_events",
"repos_url": "https://api.github.com/users/arw2019/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arw2019/subscriptions",
"type": "User",
"url": "https://api.github.com/users/arw2019"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 0
| 2021-01-05T17:15:32Z
| 2021-01-09T21:22:56Z
| 2021-01-09T21:22:56Z
|
MEMBER
| null |
In #38746 while implementing `to_numeric` for ExtensionArrays I do not copy the mask of the original input. This means that the (potentially) cast array shares a mask with the input. We should copy the mask.
```python
In [9]: import pandas as pd
...: import pandas._testing as tm
...:
...: arr = pd.array([1, 2, pd.NA], dtype="Int64")
...:
...: result = pd.to_numeric(arr, downcast="integer")
...: expected = pd.array([1, 2, pd.NA], dtype="Int8")
...: tm.assert_extension_array_equal(result, expected)
...:
...: arr[1] = pd.NA # should not modify result
...: tm.assert_extension_array_equal(result, expected)
...:
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-9-f72c43e18273> in <module>
9
10 arr[1] = pd.NA
---> 11 tm.assert_extension_array_equal(result, expected)
~/repos/pandas/pandas/_testing/asserters.py in assert_extension_array_equal(left, right, check_dtype, index_values, check_less_precise, check_exact, rtol, atol)
794 left_na = np.asarray(left.isna())
795 right_na = np.asarray(right.isna())
--> 796 assert_numpy_array_equal(
797 left_na, right_na, obj="ExtensionArray NA mask", index_values=index_values
798 )
[... skipping hidden 1 frame]
~/repos/pandas/pandas/_testing/asserters.py in _raise(left, right, err_msg)
699 diff = diff * 100.0 / left.size
700 msg = f"{obj} values are different ({np.round(diff, 5)} %)"
--> 701 raise_assert_detail(obj, msg, left, right, index_values=index_values)
702
703 raise AssertionError(err_msg)
~/repos/pandas/pandas/_testing/asserters.py in raise_assert_detail(obj, message, left, right, diff, index_values)
629 msg += f"\n[diff]: {diff}"
630
--> 631 raise AssertionError(msg)
632
633
AssertionError: ExtensionArray NA mask are different
ExtensionArray NA mask values are different (33.33333 %)
[left]: [False, True, True]
[right]: [False, False, True]
```
Thanks @jorisvandenbossche for pointing this out!
|
{
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38974/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38974/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38975
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38975/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38975/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38975/events
|
https://github.com/pandas-dev/pandas/pull/38975
| 779,330,745
|
MDExOlB1bGxSZXF1ZXN0NTQ5MzEwODU4
| 38,975
|
DOC: remove is_lexsorted from MultiIndex docstring
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/14239619?v=4",
"events_url": "https://api.github.com/users/kylekeppler/events{/privacy}",
"followers_url": "https://api.github.com/users/kylekeppler/followers",
"following_url": "https://api.github.com/users/kylekeppler/following{/other_user}",
"gists_url": "https://api.github.com/users/kylekeppler/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kylekeppler",
"id": 14239619,
"login": "kylekeppler",
"node_id": "MDQ6VXNlcjE0MjM5NjE5",
"organizations_url": "https://api.github.com/users/kylekeppler/orgs",
"received_events_url": "https://api.github.com/users/kylekeppler/received_events",
"repos_url": "https://api.github.com/users/kylekeppler/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kylekeppler/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kylekeppler/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kylekeppler"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-05T17:31:37Z
| 2021-01-06T00:15:31Z
| 2021-01-06T00:15:27Z
|
CONTRIBUTOR
| null |
`is_lexsorted` has been deprecated (https://github.com/pandas-dev/pandas/pull/38701)
- [x] closes https://github.com/pandas-dev/pandas/issues/38953
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38975/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38975/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38975.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38975",
"merged_at": "2021-01-06T00:15:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38975.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38975"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38976
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38976/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38976/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38976/events
|
https://github.com/pandas-dev/pandas/issues/38976
| 779,386,076
|
MDU6SXNzdWU3NzkzODYwNzY=
| 38,976
|
DOC: Scatter and Hexbin from Series plot documentation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/60410592?v=4",
"events_url": "https://api.github.com/users/lucas-hattori-costa/events{/privacy}",
"followers_url": "https://api.github.com/users/lucas-hattori-costa/followers",
"following_url": "https://api.github.com/users/lucas-hattori-costa/following{/other_user}",
"gists_url": "https://api.github.com/users/lucas-hattori-costa/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lucas-hattori-costa",
"id": 60410592,
"login": "lucas-hattori-costa",
"node_id": "MDQ6VXNlcjYwNDEwNTky",
"organizations_url": "https://api.github.com/users/lucas-hattori-costa/orgs",
"received_events_url": "https://api.github.com/users/lucas-hattori-costa/received_events",
"repos_url": "https://api.github.com/users/lucas-hattori-costa/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lucas-hattori-costa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lucas-hattori-costa/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lucas-hattori-costa"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/21278205?v=4",
"events_url": "https://api.github.com/users/1nF0rmed/events{/privacy}",
"followers_url": "https://api.github.com/users/1nF0rmed/followers",
"following_url": "https://api.github.com/users/1nF0rmed/following{/other_user}",
"gists_url": "https://api.github.com/users/1nF0rmed/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/1nF0rmed",
"id": 21278205,
"login": "1nF0rmed",
"node_id": "MDQ6VXNlcjIxMjc4MjA1",
"organizations_url": "https://api.github.com/users/1nF0rmed/orgs",
"received_events_url": "https://api.github.com/users/1nF0rmed/received_events",
"repos_url": "https://api.github.com/users/1nF0rmed/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/1nF0rmed/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/1nF0rmed/subscriptions",
"type": "User",
"url": "https://api.github.com/users/1nF0rmed"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/21278205?v=4",
"events_url": "https://api.github.com/users/1nF0rmed/events{/privacy}",
"followers_url": "https://api.github.com/users/1nF0rmed/followers",
"following_url": "https://api.github.com/users/1nF0rmed/following{/other_user}",
"gists_url": "https://api.github.com/users/1nF0rmed/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/1nF0rmed",
"id": 21278205,
"login": "1nF0rmed",
"node_id": "MDQ6VXNlcjIxMjc4MjA1",
"organizations_url": "https://api.github.com/users/1nF0rmed/orgs",
"received_events_url": "https://api.github.com/users/1nF0rmed/received_events",
"repos_url": "https://api.github.com/users/1nF0rmed/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/1nF0rmed/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/1nF0rmed/subscriptions",
"type": "User",
"url": "https://api.github.com/users/1nF0rmed"
}
] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 4
| 2021-01-05T18:18:35Z
| 2021-01-06T18:36:30Z
| 2021-01-06T18:36:16Z
|
NONE
| null |
#### Location of the documentation
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.plot.html
#### Documentation problem
As the scatter and hexbin kinds are not supported for Series, it shouldn't appear in the docs for Series, just for DataFrames.
#### Suggested fix for documentation
Simply removing them.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38976/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38976/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38977
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38977/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38977/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38977/events
|
https://github.com/pandas-dev/pandas/pull/38977
| 779,480,563
|
MDExOlB1bGxSZXF1ZXN0NTQ5NDQ2Njgw
| 38,977
|
BUG: MultiIndex.union dropping duplicates from result
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 13
| 2021-01-05T19:42:42Z
| 2021-05-27T10:26:30Z
| 2021-05-26T02:02:27Z
|
MEMBER
| null |
- [x] xref #38745
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
This more or less sits on top of #36299. The current base-_union implementation works only for sorted indexes correctly if indexes containing duplicates. Hence I've only added tests for sorted indexes,
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38977/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38977/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38977.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38977",
"merged_at": "2021-05-26T02:02:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38977.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38977"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38978
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38978/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38978/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38978/events
|
https://github.com/pandas-dev/pandas/pull/38978
| 779,499,422
|
MDExOlB1bGxSZXF1ZXN0NTQ5NDYzOTY1
| 38,978
|
CLN: Multiindex tests
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-05T19:59:44Z
| 2021-01-06T15:24:58Z
| 2021-01-06T14:43:23Z
|
MEMBER
| null |
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
Found a few wrong tests and parametrized the similar ones
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38978/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38978/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38978.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38978",
"merged_at": "2021-01-06T14:43:23Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38978.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38978"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38979
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38979/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38979/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38979/events
|
https://github.com/pandas-dev/pandas/issues/38979
| 779,544,403
|
MDU6SXNzdWU3Nzk1NDQ0MDM=
| 38,979
|
BUG: Different results from DataFrame.apply and str accessor
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/12817527?v=4",
"events_url": "https://api.github.com/users/pLeBlanc93/events{/privacy}",
"followers_url": "https://api.github.com/users/pLeBlanc93/followers",
"following_url": "https://api.github.com/users/pLeBlanc93/following{/other_user}",
"gists_url": "https://api.github.com/users/pLeBlanc93/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pLeBlanc93",
"id": 12817527,
"login": "pLeBlanc93",
"node_id": "MDQ6VXNlcjEyODE3NTI3",
"organizations_url": "https://api.github.com/users/pLeBlanc93/orgs",
"received_events_url": "https://api.github.com/users/pLeBlanc93/received_events",
"repos_url": "https://api.github.com/users/pLeBlanc93/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pLeBlanc93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pLeBlanc93/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pLeBlanc93"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-01-20T19:40:18Z",
"closed_issues": 138,
"created_at": "2020-12-13T17:06:11Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-01-18T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/81",
"id": 6207963,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81/labels",
"node_id": "MDk6TWlsZXN0b25lNjIwNzk2Mw==",
"number": 81,
"open_issues": 0,
"state": "closed",
"title": "1.2.1",
"updated_at": "2021-01-20T19:40:18Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81"
}
| 6
| 2021-01-05T20:40:23Z
| 2021-01-16T01:12:46Z
| 2021-01-16T01:12:46Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
# Your code here
import pandas as pd
print(pd.__version__)
df = pd.DataFrame(zip('abc', 'def'))
print(df.apply(lambda f: "/".join(f), axis=1))
print(df.apply(lambda f: "/".join(f.str.upper()), axis=1))
```
#### Problem description
Using the `str` accessor gives different results on 1.1.5 and 1.2.x:
```
1.1.5
0 a/d
1 b/e
2 c/f
dtype: object
0 A/D
1 B/E
2 C/F
dtype: object
1.2.0+22.g6cdb4e7fb
0 a/d
1 b/e
2 c/f
dtype: object
0 A/D
1 A/D
2 A/D
dtype: object
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 6cdb4e7fbf4ba9a8fc83af550d866765f64ecdd9
python : 3.7.9.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19041
machine : AMD64
processor : Intel64 Family 6 Model 63 Stepping 2, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.2.0+22.g6cdb4e7fb
numpy : 1.19.5
pytz : 2020.5
dateutil : 2.8.1
pip : 20.3.3
setuptools : 51.0.0.post20201207
Cython : 0.29.21
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38979/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38979/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38980
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38980/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38980/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38980/events
|
https://github.com/pandas-dev/pandas/issues/38980
| 779,687,296
|
MDU6SXNzdWU3Nzk2ODcyOTY=
| 38,980
|
REGR: ExtensionArray aggregation on non-numeric types fails
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4534389?v=4",
"events_url": "https://api.github.com/users/BryanCutler/events{/privacy}",
"followers_url": "https://api.github.com/users/BryanCutler/followers",
"following_url": "https://api.github.com/users/BryanCutler/following{/other_user}",
"gists_url": "https://api.github.com/users/BryanCutler/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/BryanCutler",
"id": 4534389,
"login": "BryanCutler",
"node_id": "MDQ6VXNlcjQ1MzQzODk=",
"organizations_url": "https://api.github.com/users/BryanCutler/orgs",
"received_events_url": "https://api.github.com/users/BryanCutler/received_events",
"repos_url": "https://api.github.com/users/BryanCutler/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/BryanCutler/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BryanCutler/subscriptions",
"type": "User",
"url": "https://api.github.com/users/BryanCutler"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-01-20T19:40:18Z",
"closed_issues": 138,
"created_at": "2020-12-13T17:06:11Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-01-18T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/81",
"id": 6207963,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81/labels",
"node_id": "MDk6TWlsZXN0b25lNjIwNzk2Mw==",
"number": 81,
"open_issues": 0,
"state": "closed",
"title": "1.2.1",
"updated_at": "2021-01-20T19:40:18Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81"
}
| 5
| 2021-01-05T22:51:01Z
| 2021-01-13T13:18:40Z
| 2021-01-13T13:18:40Z
|
CONTRIBUTOR
| null |
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [X] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
df = pd.DataFrame({'key': ['a', 'a', 'b', 'b'], 'val': ['a', 'b', 'c', 'd']}, dtype="string")
df.groupby("key").agg({'val': 'first'})
```
Expected:
```
val
key
a a
b c
```
Actual fails with error:
```
lib/python3.8/site-packages/pandas/core/groupby/ops.py in _ea_wrap_cython_operation(self, kind, values, how, axis, min_count, **kwargs)
538 return result
539
--> 540 raise NotImplementedError(values.dtype)
541
NotImplementedError: string
```
#### Problem description
Calling groupby on an ExtensionArray and aggregation on a string column fails with the error: `NotImplementedError: string`. This is because an optimized cython aggregation is attempted and when fails, the error string is improperly checked and does not fallback to a non-cython aggregation.
This was found with the extension arrays from https://github.com/CODAIT/text-extensions-for-pandas/blob/master/text_extensions_for_pandas/io/bert.py#L217 and full error log can be seen here https://github.com/CODAIT/text-extensions-for-pandas/pull/157/checks?check_run_id=1646927381#step:5:1438
#### Expected Output
Pandas should handle the NotImplementedError and fallback to a non-cython aggregation implementation.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 3e89b4c4b1580aa890023fc550774e63d499da25
python : 3.8.6.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-58-generic
Version : #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.0
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.4
setuptools : 49.6.0.post20201009
Cython : None
pytest : 6.1.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.18.1
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.2
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 2.0.0
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
|
{
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38980/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38980/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38981
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38981/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38981/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38981/events
|
https://github.com/pandas-dev/pandas/issues/38981
| 779,689,697
|
MDU6SXNzdWU3Nzk2ODk2OTc=
| 38,981
|
to_csv - parameter decimal
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13497458?v=4",
"events_url": "https://api.github.com/users/dornech/events{/privacy}",
"followers_url": "https://api.github.com/users/dornech/followers",
"following_url": "https://api.github.com/users/dornech/following{/other_user}",
"gists_url": "https://api.github.com/users/dornech/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dornech",
"id": 13497458,
"login": "dornech",
"node_id": "MDQ6VXNlcjEzNDk3NDU4",
"organizations_url": "https://api.github.com/users/dornech/orgs",
"received_events_url": "https://api.github.com/users/dornech/received_events",
"repos_url": "https://api.github.com/users/dornech/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dornech/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dornech/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dornech"
}
|
[
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] |
closed
| false
| null |
[] | null | 6
| 2021-01-05T22:53:23Z
| 2021-01-27T12:09:24Z
| 2021-01-27T12:09:24Z
|
NONE
| null |
I think that pandas.to_csv does not properly process the decimal parameter. It seems it is ignored whenever the dataframe to be exported contains a NaN value. This means it is not possible to export pandas in European CSV format.
I am aware that problems with to_csv have been discussed earlier and from these discussions I found the hint to check for NaN values. I am afraid I do not understand the final outcome of alle these previous discussions but I think the current behaviour is not quite correct.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38981/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38981/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38982
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38982/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38982/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38982/events
|
https://github.com/pandas-dev/pandas/pull/38982
| 779,698,674
|
MDExOlB1bGxSZXF1ZXN0NTQ5NjQ2ODk4
| 38,982
|
REGR: Bug fix for ExtensionArray groupby aggregation on non-numeric types
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4534389?v=4",
"events_url": "https://api.github.com/users/BryanCutler/events{/privacy}",
"followers_url": "https://api.github.com/users/BryanCutler/followers",
"following_url": "https://api.github.com/users/BryanCutler/following{/other_user}",
"gists_url": "https://api.github.com/users/BryanCutler/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/BryanCutler",
"id": 4534389,
"login": "BryanCutler",
"node_id": "MDQ6VXNlcjQ1MzQzODk=",
"organizations_url": "https://api.github.com/users/BryanCutler/orgs",
"received_events_url": "https://api.github.com/users/BryanCutler/received_events",
"repos_url": "https://api.github.com/users/BryanCutler/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/BryanCutler/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BryanCutler/subscriptions",
"type": "User",
"url": "https://api.github.com/users/BryanCutler"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-01-20T19:40:18Z",
"closed_issues": 138,
"created_at": "2020-12-13T17:06:11Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-01-18T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/81",
"id": 6207963,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81/labels",
"node_id": "MDk6TWlsZXN0b25lNjIwNzk2Mw==",
"number": 81,
"open_issues": 0,
"state": "closed",
"title": "1.2.1",
"updated_at": "2021-01-20T19:40:18Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81"
}
| 9
| 2021-01-05T23:02:23Z
| 2021-01-14T19:08:56Z
| 2021-01-13T13:18:40Z
|
CONTRIBUTOR
| null |
- [X] closes #38980
- [x] tests added / passed
- [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38982/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38982/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38982.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38982",
"merged_at": "2021-01-13T13:18:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38982.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38982"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38983
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38983/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38983/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38983/events
|
https://github.com/pandas-dev/pandas/issues/38983
| 779,755,094
|
MDU6SXNzdWU3Nzk3NTUwOTQ=
| 38,983
|
BUG: IntegerDtype.__eq__(np.dtype(object)) returns True
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[] |
closed
| false
| null |
[] | null | 3
| 2021-01-06T00:01:06Z
| 2021-01-06T16:31:16Z
| 2021-01-06T16:21:47Z
|
MEMBER
| null |
Also looks like `IntegerArray.astype(other_nullable_integer_dtype)` is returning an ndarray
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38983/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38983/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38984
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38984/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38984/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38984/events
|
https://github.com/pandas-dev/pandas/pull/38984
| 779,790,891
|
MDExOlB1bGxSZXF1ZXN0NTQ5NzMzMDAx
| 38,984
|
BUG: MultiIndex.intersection duplicating nans in result
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-06T00:34:12Z
| 2021-01-06T15:24:33Z
| 2021-01-06T14:44:46Z
|
MEMBER
| null |
- [x] xref #38623
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
This also aligns the multiindex implementation with the base implementation a bit more.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38984/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38984/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38984.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38984",
"merged_at": "2021-01-06T14:44:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38984.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38984"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38985
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38985/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38985/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38985/events
|
https://github.com/pandas-dev/pandas/pull/38985
| 779,817,082
|
MDExOlB1bGxSZXF1ZXN0NTQ5NzU3MzA3
| 38,985
|
REF: de-duplication in libperiod
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-06T01:01:31Z
| 2021-01-06T18:44:48Z
| 2021-01-06T18:34:47Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38985/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38985/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38985.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38985",
"merged_at": "2021-01-06T18:34:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38985.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38985"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/38986
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38986/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38986/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38986/events
|
https://github.com/pandas-dev/pandas/pull/38986
| 779,849,331
|
MDExOlB1bGxSZXF1ZXN0NTQ5Nzg3MTc0
| 38,986
|
BUG: Datetimelike equality comparisons with Categorical
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/24451137?v=4",
"events_url": "https://api.github.com/users/ftrihardjo/events{/privacy}",
"followers_url": "https://api.github.com/users/ftrihardjo/followers",
"following_url": "https://api.github.com/users/ftrihardjo/following{/other_user}",
"gists_url": "https://api.github.com/users/ftrihardjo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ftrihardjo",
"id": 24451137,
"login": "ftrihardjo",
"node_id": "MDQ6VXNlcjI0NDUxMTM3",
"organizations_url": "https://api.github.com/users/ftrihardjo/orgs",
"received_events_url": "https://api.github.com/users/ftrihardjo/received_events",
"repos_url": "https://api.github.com/users/ftrihardjo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ftrihardjo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ftrihardjo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ftrihardjo"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 2
| 2021-01-06T01:37:23Z
| 2021-01-08T14:10:07Z
| 2021-01-08T14:10:03Z
|
CONTRIBUTOR
| null |
- [ ] closes #30699
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38986/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38986/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38986.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38986",
"merged_at": "2021-01-08T14:10:02Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38986.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38986"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38987
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38987/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38987/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38987/events
|
https://github.com/pandas-dev/pandas/pull/38987
| 779,871,854
|
MDExOlB1bGxSZXF1ZXN0NTQ5ODA3OTM4
| 38,987
|
Fix bug on master
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "006b75",
"default": false,
"description": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-01-20T19:40:18Z",
"closed_issues": 138,
"created_at": "2020-12-13T17:06:11Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-01-18T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/81",
"id": 6207963,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81/labels",
"node_id": "MDk6TWlsZXN0b25lNjIwNzk2Mw==",
"number": 81,
"open_issues": 0,
"state": "closed",
"title": "1.2.1",
"updated_at": "2021-01-20T19:40:18Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81"
}
| 2
| 2021-01-06T02:02:54Z
| 2021-01-06T02:53:30Z
| 2021-01-06T02:52:33Z
|
MEMBER
| null |
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
The banklist file was removed and replaced with banklist.csv. This causes failures on master.
This is just a temporary fix for the user guide.
cc @jreback
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38987/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38987/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38987.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38987",
"merged_at": "2021-01-06T02:52:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38987.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38987"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38988
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38988/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38988/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38988/events
|
https://github.com/pandas-dev/pandas/issues/38988
| 779,878,874
|
MDU6SXNzdWU3Nzk4Nzg4NzQ=
| 38,988
|
BUG: Banklist.html was removed, failure on master
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "006b75",
"default": false,
"description": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
}
] |
closed
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
}
| 4
| 2021-01-06T02:10:49Z
| 2021-09-01T16:15:36Z
| 2021-09-01T16:15:36Z
|
MEMBER
| null |
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
The banklist.html file was removed from "https://www.fdic.gov/resources/resolutions/bank-failures/failed-bank-list/
#38987 marked the tests as xfail and removed the userguide entry.
#### Expected
Replace the xfail tests with a new html file url and adjust the userguide appropriately.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38988/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38988/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38989
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38989/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38989/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38989/events
|
https://github.com/pandas-dev/pandas/issues/38989
| 779,891,101
|
MDU6SXNzdWU3Nzk4OTExMDE=
| 38,989
|
BUG: read_csv raising when null bytes are in skipped rows
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-01-20T19:40:18Z",
"closed_issues": 138,
"created_at": "2020-12-13T17:06:11Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-01-18T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/81",
"id": 6207963,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81/labels",
"node_id": "MDk6TWlsZXN0b25lNjIwNzk2Mw==",
"number": 81,
"open_issues": 0,
"state": "closed",
"title": "1.2.1",
"updated_at": "2021-01-20T19:40:18Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81"
}
| 6
| 2021-01-06T02:24:24Z
| 2021-01-07T18:48:20Z
| 2021-01-07T18:48:20Z
|
MEMBER
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
I have a few weird csv files with null bytes in the first row. Since 1.2.0 they are raising even if I skip the first row,
```python
pd.read_csv("test.csv", engine="python", skiprows=[0])
pd.read_csv("test.csv", engine="c", skiprows=[0])
```
Could not get this to fail with an example created in code.
#### Problem description
Both engines raising
```
Traceback (most recent call last):
File "/home/developer/.config/JetBrains/PyCharm2020.3/scratches/scratch_4.py", line 377, in <module>
pd.read_csv("/media/sf_Austausch/test.csv", engine="c", skiprows=[0], nrows=2)
File "/home/developer/PycharmProjects/pandas/pandas/io/parsers.py", line 605, in read_csv
return _read(filepath_or_buffer, kwds)
File "/home/developer/PycharmProjects/pandas/pandas/io/parsers.py", line 457, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "/home/developer/PycharmProjects/pandas/pandas/io/parsers.py", line 814, in __init__
self._engine = self._make_engine(self.engine)
File "/home/developer/PycharmProjects/pandas/pandas/io/parsers.py", line 1045, in _make_engine
return mapping[engine](self.f, **self.options) # type: ignore[call-arg]
File "/home/developer/PycharmProjects/pandas/pandas/io/parsers.py", line 1894, in __init__
self._reader = parsers.TextReader(self.handles.handle, **kwds)
File "pandas/_libs/parsers.pyx", line 517, in pandas._libs.parsers.TextReader.__cinit__
File "pandas/_libs/parsers.pyx", line 619, in pandas._libs.parsers.TextReader._get_header
File "pandas/_libs/parsers.pyx", line 813, in pandas._libs.parsers.TextReader._tokenize_rows
File "pandas/_libs/parsers.pyx", line 1942, in pandas._libs.parsers.raise_parser_error
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 8: invalid continuation byte
Process finished with exit code 1
```
This worked on 1.1.5.
Relevant changes are:
https://github.com/pandas-dev/pandas/blob/9b16b1e1ee049b042a7d59cddd8fbd913137223f/pandas/io/common.py#L556:L557
infers encoding now, which leads to
https://github.com/pandas-dev/pandas/blob/9b16b1e1ee049b042a7d59cddd8fbd913137223f/pandas/io/common.py#L643:L651
where errors is always strict for read_csv. On 1.1.5 in case of no encoding given, ``errors`` was set to ``replace``, which caused this to work. Was this an intended change? Labeling as Regression for now.
#### Expected Output
```
! xyz 0 1
0 * 2000 1 2
1 * 2001 0 0
```
cc @gfyoung @twoertwein
This was caused by #36997
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : cd0224d26c6050f0e638861b9e557086673c14c1
python : 3.8.6.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-58-generic
Version : #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.3.0.dev0+356.ge0cb09e917
numpy : 1.19.2
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.3
setuptools : 49.6.0.post20201009
Cython : 0.29.21
pytest : 6.1.1
hypothesis : 5.37.1
sphinx : 3.2.1
blosc : None
feather : None
xlsxwriter : 1.3.7
lxml.etree : 4.5.2
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.18.1
pandas_datareader: None
bs4 : 4.9.3
bottleneck : 1.3.2
fsspec : 0.8.3
fastparquet : 0.4.1
gcsfs : 0.7.1
matplotlib : 3.3.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : 2.0.0
pyxlsb : None
s3fs : 0.4.2
scipy : 1.5.2
sqlalchemy : 1.3.20
tables : 3.6.1
tabulate : 0.8.7
xarray : 0.16.1
xlrd : 1.2.0
xlwt : 1.3.0
numba : 0.51.2
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38989/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38989/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38990
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38990/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38990/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38990/events
|
https://github.com/pandas-dev/pandas/issues/38990
| 779,913,428
|
MDU6SXNzdWU3Nzk5MTM0Mjg=
| 38,990
|
DOC: add comparison to spreadsheets
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/86842?v=4",
"events_url": "https://api.github.com/users/afeld/events{/privacy}",
"followers_url": "https://api.github.com/users/afeld/followers",
"following_url": "https://api.github.com/users/afeld/following{/other_user}",
"gists_url": "https://api.github.com/users/afeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/afeld",
"id": 86842,
"login": "afeld",
"node_id": "MDQ6VXNlcjg2ODQy",
"organizations_url": "https://api.github.com/users/afeld/orgs",
"received_events_url": "https://api.github.com/users/afeld/received_events",
"repos_url": "https://api.github.com/users/afeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/afeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/afeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/afeld"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] |
open
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/86842?v=4",
"events_url": "https://api.github.com/users/afeld/events{/privacy}",
"followers_url": "https://api.github.com/users/afeld/followers",
"following_url": "https://api.github.com/users/afeld/following{/other_user}",
"gists_url": "https://api.github.com/users/afeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/afeld",
"id": 86842,
"login": "afeld",
"node_id": "MDQ6VXNlcjg2ODQy",
"organizations_url": "https://api.github.com/users/afeld/orgs",
"received_events_url": "https://api.github.com/users/afeld/received_events",
"repos_url": "https://api.github.com/users/afeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/afeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/afeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/afeld"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/86842?v=4",
"events_url": "https://api.github.com/users/afeld/events{/privacy}",
"followers_url": "https://api.github.com/users/afeld/followers",
"following_url": "https://api.github.com/users/afeld/following{/other_user}",
"gists_url": "https://api.github.com/users/afeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/afeld",
"id": 86842,
"login": "afeld",
"node_id": "MDQ6VXNlcjg2ODQy",
"organizations_url": "https://api.github.com/users/afeld/orgs",
"received_events_url": "https://api.github.com/users/afeld/received_events",
"repos_url": "https://api.github.com/users/afeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/afeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/afeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/afeld"
},
{
"avatar_url": "https://avatars.githubusercontent.com/u/52805678?v=4",
"events_url": "https://api.github.com/users/bsun94/events{/privacy}",
"followers_url": "https://api.github.com/users/bsun94/followers",
"following_url": "https://api.github.com/users/bsun94/following{/other_user}",
"gists_url": "https://api.github.com/users/bsun94/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bsun94",
"id": 52805678,
"login": "bsun94",
"node_id": "MDQ6VXNlcjUyODA1Njc4",
"organizations_url": "https://api.github.com/users/bsun94/orgs",
"received_events_url": "https://api.github.com/users/bsun94/received_events",
"repos_url": "https://api.github.com/users/bsun94/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bsun94/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bsun94/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bsun94"
}
] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 9
| 2021-01-06T02:49:22Z
| 2021-10-05T16:30:58Z
| null |
MEMBER
| null |
#### Location of the documentation
https://pandas.pydata.org/docs/dev/getting_started/comparison/comparison_with_spreadsheets.html
#### Documentation problem
From https://github.com/pandas-dev/pandas/pull/38554:
> I teach [a class on pandas for public policy students](https://github.com/afeld/python-public-policy/blob/master/syllabus.md#readme), and for many of them, spreadsheets are the only point of reference they have for working with tabular data.
There are [a number of unofficial resources](https://www.google.com/search?q=excel+vs+pandas), but no official, living documentation to point them to.
#### Suggested fix for documentation
The idea is to add a "Comparison to spreadsheets" page alongside [the other comparison pages](https://pandas.pydata.org/pandas-docs/stable/getting_started/comparison/index.html). That new page already got merged in https://github.com/pandas-dev/pandas/pull/38554; creating this issue to keep a running checklist of the TODOs.
- [x] start with what @rotuna did in https://github.com/pandas-dev/pandas/pull/23042
- [x] link from Getting Started pages
- [ ] incorporate structure from [SAS](https://pandas.pydata.org/pandas-docs/stable/getting_started/comparison/comparison_with_sas.html)/[STATA](https://pandas.pydata.org/pandas-docs/stable/getting_started/comparison/comparison_with_stata.html) comparison pages
- [x] Data structures
- [x] Data input / output
- [x] Mention `read_excel()`
- [x] Data operations
- [x] String processing
- [x] Merging
- [ ] Missing data
- [ ] GroupBy
- [x] Other considerations
- [ ] standardize datasets used for examples, for greater consistency and reduced cognitive burden on the readers
- [`tips`](https://raw.github.com/pandas-dev/pandas/master/pandas/tests/io/data/csv/tips.csv) probably works for most
- [ ] add info about charting
- [x] [add example showing round trip to/from Excel](https://github.com/pandas-dev/pandas/pull/38554#discussion_r549409566)
- [ ] [have pivot table examples match](https://github.com/pandas-dev/pandas/pull/38554#issuecomment-752767183)
- [ ] add [quick reference](https://pandas.pydata.org/docs/getting_started/comparison/comparison_with_r.html#quick-reference)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38990/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38990/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38991
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38991/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38991/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38991/events
|
https://github.com/pandas-dev/pandas/pull/38991
| 779,917,011
|
MDExOlB1bGxSZXF1ZXN0NTQ5ODQ5NTcw
| 38,991
|
Backport PR #38987 on branch 1.2.x (Fix bug on master)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "006b75",
"default": false,
"description": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-01-20T19:40:18Z",
"closed_issues": 138,
"created_at": "2020-12-13T17:06:11Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-01-18T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/81",
"id": 6207963,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81/labels",
"node_id": "MDk6TWlsZXN0b25lNjIwNzk2Mw==",
"number": 81,
"open_issues": 0,
"state": "closed",
"title": "1.2.1",
"updated_at": "2021-01-20T19:40:18Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81"
}
| 0
| 2021-01-06T02:53:25Z
| 2021-01-06T12:53:03Z
| 2021-01-06T12:53:02Z
|
NONE
| null |
Backport PR #38987: Fix bug on master
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38991/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38991/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38991.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38991",
"merged_at": "2021-01-06T12:53:02Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38991.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38991"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38992
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38992/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38992/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38992/events
|
https://github.com/pandas-dev/pandas/pull/38992
| 779,919,141
|
MDExOlB1bGxSZXF1ZXN0NTQ5ODUxNTM5
| 38,992
|
ENH: 2D support for MaskedArray
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
}
| 22
| 2021-01-06T02:55:49Z
| 2021-10-19T11:58:27Z
| 2021-10-16T17:58:42Z
|
MEMBER
| null |
This doesn't in any way _use_ the 2D support, but opens up the option of incrementally fleshing out the tests.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38992/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38992/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38992.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38992",
"merged_at": "2021-10-16T17:58:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38992.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38992"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38993
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38993/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38993/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38993/events
|
https://github.com/pandas-dev/pandas/pull/38993
| 779,948,819
|
MDExOlB1bGxSZXF1ZXN0NTQ5ODc4OTM0
| 38,993
|
DOC: add more sections to spreadsheet comparison
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/86842?v=4",
"events_url": "https://api.github.com/users/afeld/events{/privacy}",
"followers_url": "https://api.github.com/users/afeld/followers",
"following_url": "https://api.github.com/users/afeld/following{/other_user}",
"gists_url": "https://api.github.com/users/afeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/afeld",
"id": 86842,
"login": "afeld",
"node_id": "MDQ6VXNlcjg2ODQy",
"organizations_url": "https://api.github.com/users/afeld/orgs",
"received_events_url": "https://api.github.com/users/afeld/received_events",
"repos_url": "https://api.github.com/users/afeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/afeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/afeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/afeld"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-06T03:27:45Z
| 2021-01-06T14:53:19Z
| 2021-01-06T14:53:11Z
|
MEMBER
| null |
[Preview (link to PDF on Google Drive)](https://drive.google.com/file/d/1uUyTQyEAX3F6h4EJqKz7Mz4KehGBnAig/view?usp=sharing)
This pull request gets closer to full parity with [SAS](https://pandas.pydata.org/pandas-docs/stable/getting_started/comparison/comparison_with_sas.html)/[STATA](https://pandas.pydata.org/pandas-docs/stable/getting_started/comparison/comparison_with_stata.html) comparison pages by adding the Data Input/Output through Merging sections. It still needs Missing Data and GroupBy, but wanted to get this in while I was at a good stopping place. Each section was done in its own commit, if it's easier to review that way.
---
- [x] ~~closes~~ part of https://github.com/pandas-dev/pandas/issues/38990
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] ~~whatsnew entry~~
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38993/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38993/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38993.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38993",
"merged_at": "2021-01-06T14:53:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38993.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38993"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38994
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38994/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38994/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38994/events
|
https://github.com/pandas-dev/pandas/pull/38994
| 780,048,512
|
MDExOlB1bGxSZXF1ZXN0NTQ5OTcxMzk2
| 38,994
|
DOC: elaborate on copies vs in place operations in comparison docs
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/86842?v=4",
"events_url": "https://api.github.com/users/afeld/events{/privacy}",
"followers_url": "https://api.github.com/users/afeld/followers",
"following_url": "https://api.github.com/users/afeld/following{/other_user}",
"gists_url": "https://api.github.com/users/afeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/afeld",
"id": 86842,
"login": "afeld",
"node_id": "MDQ6VXNlcjg2ODQy",
"organizations_url": "https://api.github.com/users/afeld/orgs",
"received_events_url": "https://api.github.com/users/afeld/received_events",
"repos_url": "https://api.github.com/users/afeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/afeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/afeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/afeld"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 2
| 2021-01-06T05:20:24Z
| 2021-01-10T01:13:26Z
| 2021-01-08T14:14:30Z
|
MEMBER
| null |
<img width="782" alt="Screen Shot 2021-01-06 at 12 15 05 AM" src="https://user-images.githubusercontent.com/86842/103731907-437e7280-4fb4-11eb-9e6d-e702f117656c.png">
- [ ] ~~closes #xxxx~~
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] ~~whatsnew entry~~
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38994/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38994/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38994.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38994",
"merged_at": "2021-01-08T14:14:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38994.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38994"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38995
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38995/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38995/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38995/events
|
https://github.com/pandas-dev/pandas/pull/38995
| 780,070,848
|
MDExOlB1bGxSZXF1ZXN0NTQ5OTkyMTQw
| 38,995
|
ENH: Add table-wise numba rolling to other agg funcions
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 4
| 2021-01-06T05:44:52Z
| 2021-05-26T15:54:22Z
| 2021-01-07T21:24:06Z
|
MEMBER
| null |
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Timings for a wide table
```
import pandas as pd
import numpy as np
df = pd.DataFrame(np.random.rand(10, 10**5))
roll_single = df.rolling(2, method="single")
roll_table = df.rolling(2, method="table")
%timeit roll_single.mean()
4.92 s ± 463 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
roll_single.mean(engine="numba", engine_kwargs={"nopython": True, "nogil": True, "parallel": True})
%timeit roll_single.mean(engine="numba", engine_kwargs={"nopython": True, "nogil": True, "parallel": True})
5.72 s ± 430 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
roll_table.mean(engine="numba", engine_kwargs={"nopython": True, "nogil": True, "parallel": True})
%timeit roll_table.mean(engine="numba", engine_kwargs={"nopython": True, "nogil": True, "parallel": True})
10.3 ms ± 1.23 ms per loop (mean ± std. dev. of 7 runs, 100 loops each)
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38995/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38995/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38995.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38995",
"merged_at": "2021-01-07T21:24:06Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38995.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38995"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38996
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38996/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38996/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38996/events
|
https://github.com/pandas-dev/pandas/issues/38996
| 780,073,600
|
MDU6SXNzdWU3ODAwNzM2MDA=
| 38,996
|
ENH: branch deployments of documentation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/86842?v=4",
"events_url": "https://api.github.com/users/afeld/events{/privacy}",
"followers_url": "https://api.github.com/users/afeld/followers",
"following_url": "https://api.github.com/users/afeld/following{/other_user}",
"gists_url": "https://api.github.com/users/afeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/afeld",
"id": 86842,
"login": "afeld",
"node_id": "MDQ6VXNlcjg2ODQy",
"organizations_url": "https://api.github.com/users/afeld/orgs",
"received_events_url": "https://api.github.com/users/afeld/received_events",
"repos_url": "https://api.github.com/users/afeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/afeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/afeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/afeld"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
open
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/86842?v=4",
"events_url": "https://api.github.com/users/afeld/events{/privacy}",
"followers_url": "https://api.github.com/users/afeld/followers",
"following_url": "https://api.github.com/users/afeld/following{/other_user}",
"gists_url": "https://api.github.com/users/afeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/afeld",
"id": 86842,
"login": "afeld",
"node_id": "MDQ6VXNlcjg2ODQy",
"organizations_url": "https://api.github.com/users/afeld/orgs",
"received_events_url": "https://api.github.com/users/afeld/received_events",
"repos_url": "https://api.github.com/users/afeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/afeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/afeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/afeld"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/86842?v=4",
"events_url": "https://api.github.com/users/afeld/events{/privacy}",
"followers_url": "https://api.github.com/users/afeld/followers",
"following_url": "https://api.github.com/users/afeld/following{/other_user}",
"gists_url": "https://api.github.com/users/afeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/afeld",
"id": 86842,
"login": "afeld",
"node_id": "MDQ6VXNlcjg2ODQy",
"organizations_url": "https://api.github.com/users/afeld/orgs",
"received_events_url": "https://api.github.com/users/afeld/received_events",
"repos_url": "https://api.github.com/users/afeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/afeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/afeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/afeld"
}
] | null | 7
| 2021-01-06T05:47:51Z
| 2021-09-17T14:06:18Z
| null |
MEMBER
| null |
#### Is your feature request related to a problem?
When submitting large/complex pull requests around documentation, I've been (reasonably) asked to submit a screenshot of the change. These are tedious to capture, the links in screenshots aren't clickable, the text isn't searchable, etc.
#### Describe the solution you'd like
When changes to a branch are pushed up, the documentation is built and available at a stable URL, a la ReadTheDocs. I believe the first part happens already via the `Web and docs` job in GitHub Actions, so I _think_ it would mostly be a matter of deploying (and later cleaning up?) the built docs. https://pandas.pydata.org/docs/dev/ shows the latest on `master`, so maybe the URL structure is something like:
```
https://pandas.pydata.org/docs/preview/<user>/<branch>/
```
Bonus: Adding a commit status that links to the generated docs for that branch, [as Netlify does](https://www.netlify.com/blog/2016/07/20/introducing-deploy-previews-in-netlify/).
#### API breaking implications
n/a
#### Describe alternatives you've considered
In one pull request, I:
1. Generated the page
2. Opened it in my browser
3. Exported it as a PDF
4. Uploaded it to Google Drive
5. Changed the sharing settings
6. Pasted the link in the comment
This solved the clickability/searchability problems, but is even more work than taking a screenshot.
#### Additional context
none
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38996/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38996/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/38997
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38997/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38997/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38997/events
|
https://github.com/pandas-dev/pandas/pull/38997
| 780,087,487
|
MDExOlB1bGxSZXF1ZXN0NTUwMDA3NTI1
| 38,997
|
REGR: errors='replace' when encoding/errors are not specified
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6618166?v=4",
"events_url": "https://api.github.com/users/twoertwein/events{/privacy}",
"followers_url": "https://api.github.com/users/twoertwein/followers",
"following_url": "https://api.github.com/users/twoertwein/following{/other_user}",
"gists_url": "https://api.github.com/users/twoertwein/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/twoertwein",
"id": 6618166,
"login": "twoertwein",
"node_id": "MDQ6VXNlcjY2MTgxNjY=",
"organizations_url": "https://api.github.com/users/twoertwein/orgs",
"received_events_url": "https://api.github.com/users/twoertwein/received_events",
"repos_url": "https://api.github.com/users/twoertwein/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/twoertwein/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/twoertwein/subscriptions",
"type": "User",
"url": "https://api.github.com/users/twoertwein"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-01-20T19:40:18Z",
"closed_issues": 138,
"created_at": "2020-12-13T17:06:11Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-01-18T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/81",
"id": 6207963,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81/labels",
"node_id": "MDk6TWlsZXN0b25lNjIwNzk2Mw==",
"number": 81,
"open_issues": 0,
"state": "closed",
"title": "1.2.1",
"updated_at": "2021-01-20T19:40:18Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81"
}
| 10
| 2021-01-06T06:02:23Z
| 2021-01-07T19:07:02Z
| 2021-01-07T18:48:20Z
|
CONTRIBUTOR
| null |
- [x] closes #38989
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Should 1.3 use `errors='replace'` when no `encoding/errors` are specified or use `errors=None` (strict)?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38997/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38997/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38997.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38997",
"merged_at": "2021-01-07T18:48:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38997.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38997"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38998
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38998/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38998/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38998/events
|
https://github.com/pandas-dev/pandas/pull/38998
| 780,463,061
|
MDExOlB1bGxSZXF1ZXN0NTUwMzU0ODQ5
| 38,998
|
DOC: Update contributing.rst
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/71941335?v=4",
"events_url": "https://api.github.com/users/vangorade/events{/privacy}",
"followers_url": "https://api.github.com/users/vangorade/followers",
"following_url": "https://api.github.com/users/vangorade/following{/other_user}",
"gists_url": "https://api.github.com/users/vangorade/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vangorade",
"id": 71941335,
"login": "vangorade",
"node_id": "MDQ6VXNlcjcxOTQxMzM1",
"organizations_url": "https://api.github.com/users/vangorade/orgs",
"received_events_url": "https://api.github.com/users/vangorade/received_events",
"repos_url": "https://api.github.com/users/vangorade/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vangorade/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vangorade/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vangorade"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-06T10:52:38Z
| 2021-01-10T11:03:10Z
| 2021-01-06T15:02:41Z
|
CONTRIBUTOR
| null |
- [x] closes #38938
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38998/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38998/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/38998.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/38998",
"merged_at": "2021-01-06T15:02:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/38998.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/38998"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38999
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/38999/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38999/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/38999/events
|
https://github.com/pandas-dev/pandas/issues/38999
| 780,466,642
|
MDU6SXNzdWU3ODA0NjY2NDI=
| 38,999
|
BUG:
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/55675227?v=4",
"events_url": "https://api.github.com/users/bharat-ics/events{/privacy}",
"followers_url": "https://api.github.com/users/bharat-ics/followers",
"following_url": "https://api.github.com/users/bharat-ics/following{/other_user}",
"gists_url": "https://api.github.com/users/bharat-ics/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bharat-ics",
"id": 55675227,
"login": "bharat-ics",
"node_id": "MDQ6VXNlcjU1Njc1MjI3",
"organizations_url": "https://api.github.com/users/bharat-ics/orgs",
"received_events_url": "https://api.github.com/users/bharat-ics/received_events",
"repos_url": "https://api.github.com/users/bharat-ics/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bharat-ics/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bharat-ics/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bharat-ics"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] |
closed
| false
| null |
[] | null | 3
| 2021-01-06T10:58:25Z
| 2021-01-26T17:38:09Z
| 2021-01-26T17:38:08Z
|
NONE
| null |
- [Checked ] I have checked that this issue has not already been reported.
- [ Checked] I have confirmed this bug exists on the latest version of pandas.
- [Not Checked ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
df.to_csv("test.csv")
ImportError: cannot import name 'CompressionOptions' from 'pandas._typing
```
#### Problem description
[this should explain **why** the current behaviour is a problem and why the expected output is a better solution]
Breaking error on printing csvs right after upgrading to 1.1.5
#### Expected Output
CSV output of dataframe
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/38999/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/38999/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39000
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39000/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39000/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39000/events
|
https://github.com/pandas-dev/pandas/pull/39000
| 780,500,336
|
MDExOlB1bGxSZXF1ZXN0NTUwMzg2MDIx
| 39,000
|
Remove Scatter and Hexbin from Series plot documentation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/21278205?v=4",
"events_url": "https://api.github.com/users/1nF0rmed/events{/privacy}",
"followers_url": "https://api.github.com/users/1nF0rmed/followers",
"following_url": "https://api.github.com/users/1nF0rmed/following{/other_user}",
"gists_url": "https://api.github.com/users/1nF0rmed/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/1nF0rmed",
"id": 21278205,
"login": "1nF0rmed",
"node_id": "MDQ6VXNlcjIxMjc4MjA1",
"organizations_url": "https://api.github.com/users/1nF0rmed/orgs",
"received_events_url": "https://api.github.com/users/1nF0rmed/received_events",
"repos_url": "https://api.github.com/users/1nF0rmed/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/1nF0rmed/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/1nF0rmed/subscriptions",
"type": "User",
"url": "https://api.github.com/users/1nF0rmed"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 4
| 2021-01-06T11:56:45Z
| 2021-01-06T18:36:21Z
| 2021-01-06T18:36:17Z
|
CONTRIBUTOR
| null |
- [x] closes #38976
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] Remove scatter and hexbin entry from https://github.com/pandas-dev/pandas/blob/v1.2.0/pandas/plotting/_core.py#L603-L1708
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39000/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39000/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/39000.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39000",
"merged_at": "2021-01-06T18:36:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39000.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39000"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39001
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39001/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39001/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39001/events
|
https://github.com/pandas-dev/pandas/issues/39001
| 780,567,809
|
MDU6SXNzdWU3ODA1Njc4MDk=
| 39,001
|
BUG: read_excel with openpyxl results in empty data frame
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/53634214?v=4",
"events_url": "https://api.github.com/users/luciodaou/events{/privacy}",
"followers_url": "https://api.github.com/users/luciodaou/followers",
"following_url": "https://api.github.com/users/luciodaou/following{/other_user}",
"gists_url": "https://api.github.com/users/luciodaou/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/luciodaou",
"id": 53634214,
"login": "luciodaou",
"node_id": "MDQ6VXNlcjUzNjM0MjE0",
"organizations_url": "https://api.github.com/users/luciodaou/orgs",
"received_events_url": "https://api.github.com/users/luciodaou/received_events",
"repos_url": "https://api.github.com/users/luciodaou/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/luciodaou/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/luciodaou/subscriptions",
"type": "User",
"url": "https://api.github.com/users/luciodaou"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
}
| 24
| 2021-01-06T13:52:26Z
| 2021-02-05T03:15:59Z
| 2021-02-05T03:15:59Z
|
NONE
| null |
- [ X ] I have checked that this issue has not already been reported.
- [ X ] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
-----
#### Old behavior with xlrd 1.2.0 (last version with XLSX support)
```
>>> import pandas as pd
>>> df=pd.read_excel('infile.xlsx', engine='xlrd')
<stdin>:1: FutureWarning: Your version of xlrd is 1.2.0. In xlrd >= 2.0, only the xls format is supported. As a result, the openpyxl engine will be used if it is installed and the engine argument is not specified. Install openpyxl instead.
>>> df.shape
(843, 11)
```
File is read perfectly and dataframe is ok, with all 11 columns.
#### Problem description
When using openpyxl as engine for read_excel:
```
>>> import pandas as pd
>>> df=pd.read_excel('infile.xlsx', engine='openpyxl')
>>> print(df)
Empty DataFrame
Columns: [Column1, Column2, Column3]
Index: []
>>> df.shape
(0, 3)
```
Only the 3 first headers are read, and it stops.
However, if the file is opened directly with openpyxl, it works fine, I'm using it to open and save the file with a temporary name to make openpyxl work as engine on Pandas:
```
>>> wb = load_workbook('infile.xlsx')
>>> wb.save(filename = 'temp.xlsx')
>>> pd.read_excel('temp.xlsx', engine='openpyxl')
>>> df.shape
(843, 11)
```
<details>
INSTALLED VERSIONS
------------------
commit : 3e89b4c4b1580aa890023fc550774e63d499da25
python : 3.8.6.final.0
python-bits : 64
OS : Linux
OS-release : 4.19.128-microsoft-standard
Version : #1 SMP Tue Jun 23 12:58:10 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.0
numpy : 1.19.5
pytz : 2020.5
dateutil : 2.8.1
pip : 20.1.1
setuptools : 49.3.1
Cython : 0.29.21
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.3.7
lxml.etree : 4.6.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.8.5
fastparquet : None
gcsfs : None
matplotlib : 3.3.3
numexpr : None
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.0
sqlalchemy : None
tables : None
tabulate : 0.8.7
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
numba : None
</details>
|
{
"+1": 6,
"-1": 0,
"confused": 0,
"eyes": 2,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 8,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39001/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39001/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39002
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39002/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39002/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39002/events
|
https://github.com/pandas-dev/pandas/issues/39002
| 780,635,263
|
MDU6SXNzdWU3ODA2MzUyNjM=
| 39,002
|
BUG:to_pickle() raises TypeError when compressing large dataframe
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/639099?v=4",
"events_url": "https://api.github.com/users/zhuoqiang/events{/privacy}",
"followers_url": "https://api.github.com/users/zhuoqiang/followers",
"following_url": "https://api.github.com/users/zhuoqiang/following{/other_user}",
"gists_url": "https://api.github.com/users/zhuoqiang/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zhuoqiang",
"id": 639099,
"login": "zhuoqiang",
"node_id": "MDQ6VXNlcjYzOTA5OQ==",
"organizations_url": "https://api.github.com/users/zhuoqiang/orgs",
"received_events_url": "https://api.github.com/users/zhuoqiang/received_events",
"repos_url": "https://api.github.com/users/zhuoqiang/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zhuoqiang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zhuoqiang/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zhuoqiang"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "6c1cdb",
"default": false,
"description": "read_pickle, to_pickle",
"id": 1625435109,
"name": "IO Pickle",
"node_id": "MDU6TGFiZWwxNjI1NDM1MTA5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Pickle"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
}
| 15
| 2021-01-06T15:27:36Z
| 2021-07-22T03:38:16Z
| 2021-01-26T23:31:50Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample
```python
import pandas as pd
df = pd.DataFrame(range(100000))
df.to_pickle("df.pkl.xz", protocol=5)
```
#### Problem description
the above code raises `TypeError`
```
TypeError Traceback (most recent call last)
<ipython-input-220-8c4b6e9cecfc> in <module>
2
3 df = pd.DataFrame(range(100000))
----> 4 df.to_pickle("df.pkl.xz", protocol=5)
/python3.9/site-packages/pandas/core/generic.py in to_pickle(self, path, compression, protocol, storage_options)
2859 from pandas.io.pickle import to_pickle
2860
-> 2861 to_pickle(
2862 self,
2863 path,
/python3.9/site-packages/pandas/io/pickle.py in to_pickle(obj, filepath_or_buffer, compression, protocol, storage_options)
95 storage_options=storage_options,
96 ) as handles:
---> 97 pickle.dump(obj, handles.handle, protocol=protocol) # type: ignore[arg-type]
98
99
/python3.9/lzma.py in write(self, data)
232 compressed = self._compressor.compress(data)
233 self._fp.write(compressed)
--> 234 self._pos += len(data)
235 return len(data)
236
TypeError: object of type 'pickle.PickleBuffer' has no len()
```
Note that in order to reproduce the bug, it have to:
* the data frame is large enough
* it is using compressing ("*.xz" or "*.zip")
* it is using latest pickle protocol (default). set protocol to 4 explicity will workaround this bug
#### Expected Output
the pickle should save ok
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 3e89b4c4b1580aa890023fc550774e63d499da25
python : 3.9.0.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : zh_CN.UTF-8
LOCALE : zh_CN.UTF-8
pandas : 1.2.0
numpy : 1.19.4
pytz : 2020.5
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.2.0
Cython : 0.29.21
pytest : 6.2.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: 0.9.0
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.3
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.5.4
sqlalchemy : None
tables : None
tabulate : 0.8.7
xarray : None
xlrd : 2.0.1
xlwt : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39002/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39002/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39003
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39003/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39003/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39003/events
|
https://github.com/pandas-dev/pandas/pull/39003
| 780,649,767
|
MDExOlB1bGxSZXF1ZXN0NTUwNTEwMDI1
| 39,003
|
TST: add note about scope of base extension tests to all files
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 3
| 2021-01-06T15:47:35Z
| 2021-01-12T08:05:04Z
| 2021-01-06T18:34:18Z
|
MEMBER
| null |
We already had this note in about half of the files in this directory, copied it to include in the other files as well.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39003/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39003/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/39003.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39003",
"merged_at": "2021-01-06T18:34:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39003.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39003"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39004
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39004/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39004/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39004/events
|
https://github.com/pandas-dev/pandas/issues/39004
| 780,651,313
|
MDU6SXNzdWU3ODA2NTEzMTM=
| 39,004
|
BUG: IndexError: positional indexers are out-of-bounds iloc boolean indexing
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5839268?v=4",
"events_url": "https://api.github.com/users/gooney47/events{/privacy}",
"followers_url": "https://api.github.com/users/gooney47/followers",
"following_url": "https://api.github.com/users/gooney47/following{/other_user}",
"gists_url": "https://api.github.com/users/gooney47/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gooney47",
"id": 5839268,
"login": "gooney47",
"node_id": "MDQ6VXNlcjU4MzkyNjg=",
"organizations_url": "https://api.github.com/users/gooney47/orgs",
"received_events_url": "https://api.github.com/users/gooney47/received_events",
"repos_url": "https://api.github.com/users/gooney47/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gooney47/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gooney47/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gooney47"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 35
| 2021-01-06T15:49:44Z
| 2021-03-02T23:22:00Z
| 2021-03-02T23:21:59Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import pandas as pd
df = pd.DataFrame([[0, 1, 2]], columns=['a', 'b', 'c'])
mask = pd.DataFrame([[False, True, False]], columns=['a', 'b', 'c'])
df.iloc[mask] = 3 # Works fine with assignment
print(df.iloc[mask]) # Throws IndexError, but should give similar result as df.values[mask]
```
#### Problem description
Documentation of Pandas says I can use boolean array with iloc. The iloc call with the assignment works fine, but without assignment fails. Just as a note here: In pandas 1.0.1 not even the assignment works (it starts working again if there are more than 1 rows of data).
#### Expected Output
3 (similar as df.values[mask])
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 3e89b4c4b1580aa890023fc550774e63d499da25
python : 3.8.5.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-58-generic
Version : #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.0
numpy : 1.18.4
pytz : 2019.3
dateutil : 2.7.3
pip : 20.2
setuptools : 46.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.0
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.8.5 (dt dec pq3 ext lo64)
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : None
fsspec : 0.7.3
fastparquet : None
gcsfs : None
matplotlib : 3.2.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
numba : 0.49.1
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39004/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39004/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39005
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39005/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39005/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39005/events
|
https://github.com/pandas-dev/pandas/issues/39005
| 780,725,912
|
MDU6SXNzdWU3ODA3MjU5MTI=
| 39,005
|
BUG: thousands separator in read_html alters data even though converter is set for a specific column
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16528957?v=4",
"events_url": "https://api.github.com/users/GGegenhuber/events{/privacy}",
"followers_url": "https://api.github.com/users/GGegenhuber/followers",
"following_url": "https://api.github.com/users/GGegenhuber/following{/other_user}",
"gists_url": "https://api.github.com/users/GGegenhuber/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/GGegenhuber",
"id": 16528957,
"login": "GGegenhuber",
"node_id": "MDQ6VXNlcjE2NTI4OTU3",
"organizations_url": "https://api.github.com/users/GGegenhuber/orgs",
"received_events_url": "https://api.github.com/users/GGegenhuber/received_events",
"repos_url": "https://api.github.com/users/GGegenhuber/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/GGegenhuber/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GGegenhuber/subscriptions",
"type": "User",
"url": "https://api.github.com/users/GGegenhuber"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "006b75",
"default": false,
"description": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
}
] |
open
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 0
| 2021-01-06T17:33:11Z
| 2021-01-26T16:49:08Z
| null |
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import pandas as pd
def convert_date_fix(date_str):
return pd.to_datetime(date_str, format='%d0%m%Y')
html_table = """
<table class="gridview" style="width:600px;border-collapse:collapse;" cellspacing="0" cellpadding="4" border="0">
<tbody>
<tr>
<th scope="col" align="left">Portfolio</th>
<th scope="col" align="right">Waehrung</th>
<th scope="col" align="right">Volumen</th>
<th scope="col" align="right">Datum</th>
</tr>
<tr>
<td align="left">Aktie A</td>
<td align="right">EUR</td>
<td align="right">20.320.945,77</td>
<td align="right">05.01.2021</td>
</tr>
<tr>
<td align="left">Aktie B</td>
<td align="right">EUR</td>
<td align="right">4.133.996,41</td>
<td align="right">05.01.2021</td>
</tr>
<tr>
<td align="left">Aktie C</td>
<td align="right">EUR</td>
<td align="right">3.855.218,70</td>
<td align="right">05.01.2021</td>
</tr>
</tbody>
</table>"""
#ex1: date-string is converted to int64 with . separator (05.01.2021 becomes 5012021)
data_frame = pd.read_html(html_table, thousands='.', decimal=',')[0]
print(data_frame)
print(data_frame.dtypes)
#ex2: date-string is converted to object but string is altered same as above (05.01.2021 becomes 5012021)
data_frame = pd.read_html(html_table, thousands='.', decimal=',', converters={'Datum' : str})[0]
print(data_frame)
print(data_frame.dtypes)
#ex3: ugly fix that reverts conversion and acutally turns the column into a date
data_frame = pd.read_html(html_table, thousands='.', decimal=',', converters={'Datum' : convert_date_fix})[0]
print(data_frame)
print(data_frame.dtypes)
```
#### Problem description
I've set `thousands` and `decimal` separator parameters to fit the general number format that is used in Germany and also in my html-table example.
ex1: although the date column gets wrongfully interpreted as integer value, the behaviour is reasonable since no specific `converters` were defined for that column.
ex2 (the actual problem/bug): when setting a specific `converter` for the date column and thereby define it as string I'd expect the parser to keep the value untouched and return '05.01.2021', however it also interprets the string as integer and applies the corresponding conversion as above.
ex3: even when setting an own function as `converter` the original value is still altered and the integer conversion needs to be reverted in my helper function.
#### Expected Output
When a `converter` is defined for a specific column, the original value should be passed to the conversion function and conversions that come from thousands-separator for numeric values should not be applied.
#### Additional improvement/feature request
Adapt [`read_html`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_html.html) to accept a `date_parser` as in [`read_csv`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html) which would make it easier to automatically parse dates in various formats. The `read_html` function currently has a boolean `parse_dates` param (same as `read_csv`) but in contrast does not support conversion of unconventional date formats.
see also #10684 or [this](https://stackoverflow.com/questions/33111299/pandas-read-html-can-i-specify-format-for-parse-dates) stackoverflow post.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 3e89b4c4b1580aa890023fc550774e63d499da25
python : 3.8.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19041
machine : AMD64
processor : AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD
byteorder : little
LC_ALL : None
LANG : None
LOCALE : German_Austria.1252
pandas : 1.2.0
numpy : 1.20.0rc2
pytz : 2020.5
dateutil : 2.8.1
pip : 20.2.1
setuptools : 49.2.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39005/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39005/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39006
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39006/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39006/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39006/events
|
https://github.com/pandas-dev/pandas/pull/39006
| 780,807,763
|
MDExOlB1bGxSZXF1ZXN0NTUwNjQwNDE5
| 39,006
|
DOC: Clarify index_col behavior for read_csv
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-06T19:53:22Z
| 2021-01-06T23:01:11Z
| 2021-01-06T22:56:26Z
|
MEMBER
| null |
- [x] closes #38830
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39006/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39006/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/39006.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39006",
"merged_at": "2021-01-06T22:56:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39006.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39006"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39007
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39007/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39007/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39007/events
|
https://github.com/pandas-dev/pandas/issues/39007
| 780,840,365
|
MDU6SXNzdWU3ODA4NDAzNjU=
| 39,007
|
BUG: Inconsistent results of value_counts and mode for different nan-values
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/17513912?v=4",
"events_url": "https://api.github.com/users/realead/events{/privacy}",
"followers_url": "https://api.github.com/users/realead/followers",
"following_url": "https://api.github.com/users/realead/following{/other_user}",
"gists_url": "https://api.github.com/users/realead/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/realead",
"id": 17513912,
"login": "realead",
"node_id": "MDQ6VXNlcjE3NTEzOTEy",
"organizations_url": "https://api.github.com/users/realead/orgs",
"received_events_url": "https://api.github.com/users/realead/received_events",
"repos_url": "https://api.github.com/users/realead/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/realead/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/realead/subscriptions",
"type": "User",
"url": "https://api.github.com/users/realead"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-06T20:54:29Z
| 2021-01-27T14:03:52Z
| 2021-01-27T14:03:52Z
|
CONTRIBUTOR
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
```python
import pandas as pd
import numpy as np
s=pd.Series([True, pd.NA, np.nan])
s.value_counts(dropna=False)
print(s.value_counts(dropna=False))
print(s.mode(dropna=False))
```
#### Problem description
For `s.value_counts(...)` the result is
```
NaN 2
True 1
dtype: int64
```
but for `s.mode(...)` the output is:
```
0 NaN
1 True
2 <NA>
dtype: object
```
#### Expected Output
for the sake of consistancy one would expect `mode` to be only `NaN`, as it was counted twice with `value_counts`, i.e.
```
0 NaN
dtype: object
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : b5958ee1999e9aead1938c0bba2b674378807b3d
python : 3.7.3.final.0
python-bits : 64
OS : Linux
OS-release : 4.4.0-53-generic
Version : #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC 2016
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.5
numpy : 1.19.2
pytz : 2020.5
dateutil : 2.8.1
pip : 20.3.3
setuptools : 51.0.0.post20201207
Cython : 0.29.21
pytest : 5.4.3
hypothesis : 5.36.0
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.2.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.50.1
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39007/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39007/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39008
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39008/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39008/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39008/events
|
https://github.com/pandas-dev/pandas/pull/39008
| 780,846,072
|
MDExOlB1bGxSZXF1ZXN0NTUwNjcyMDkz
| 39,008
|
CLN: inspect_excel_format
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
}
|
[
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-06T21:05:55Z
| 2021-01-08T22:11:48Z
| 2021-01-08T21:39:23Z
|
MEMBER
| null |
- [x] closes #38823
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
cc @rhshadrach
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39008/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39008/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/39008.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39008",
"merged_at": "2021-01-08T21:39:23Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39008.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39008"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39009
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39009/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39009/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39009/events
|
https://github.com/pandas-dev/pandas/pull/39009
| 780,846,647
|
MDExOlB1bGxSZXF1ZXN0NTUwNjcyNTM4
| 39,009
|
ENH: making value_counts stable/keeping original ordering
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/17513912?v=4",
"events_url": "https://api.github.com/users/realead/events{/privacy}",
"followers_url": "https://api.github.com/users/realead/followers",
"following_url": "https://api.github.com/users/realead/following{/other_user}",
"gists_url": "https://api.github.com/users/realead/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/realead",
"id": 17513912,
"login": "realead",
"node_id": "MDQ6VXNlcjE3NTEzOTEy",
"organizations_url": "https://api.github.com/users/realead/orgs",
"received_events_url": "https://api.github.com/users/realead/received_events",
"repos_url": "https://api.github.com/users/realead/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/realead/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/realead/subscriptions",
"type": "User",
"url": "https://api.github.com/users/realead"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 8
| 2021-01-06T21:07:00Z
| 2021-01-27T19:05:04Z
| 2021-01-22T21:42:34Z
|
CONTRIBUTOR
| null |
closes #12679
closes #11227
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
The order of the returned keys for `value_counts` aren't arbitrary (i.e. depending on the used hash function) but are original ordering (when sorted this applies for the keys with the same number of values).
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39009/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39009/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/39009.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39009",
"merged_at": "2021-01-22T21:42:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39009.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39009"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39010
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39010/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39010/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39010/events
|
https://github.com/pandas-dev/pandas/issues/39010
| 780,868,204
|
MDU6SXNzdWU3ODA4NjgyMDQ=
| 39,010
|
BUG: 1.2. version fails in adding column if number on column name beginning.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39381691?v=4",
"events_url": "https://api.github.com/users/Malachov/events{/privacy}",
"followers_url": "https://api.github.com/users/Malachov/followers",
"following_url": "https://api.github.com/users/Malachov/following{/other_user}",
"gists_url": "https://api.github.com/users/Malachov/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Malachov",
"id": 39381691,
"login": "Malachov",
"node_id": "MDQ6VXNlcjM5MzgxNjkx",
"organizations_url": "https://api.github.com/users/Malachov/orgs",
"received_events_url": "https://api.github.com/users/Malachov/received_events",
"repos_url": "https://api.github.com/users/Malachov/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Malachov/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Malachov/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Malachov"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-01-20T19:40:18Z",
"closed_issues": 138,
"created_at": "2020-12-13T17:06:11Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-01-18T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/81",
"id": 6207963,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81/labels",
"node_id": "MDk6TWlsZXN0b25lNjIwNzk2Mw==",
"number": 81,
"open_issues": 0,
"state": "closed",
"title": "1.2.1",
"updated_at": "2021-01-20T19:40:18Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/81"
}
| 3
| 2021-01-06T21:51:33Z
| 2021-01-08T00:19:44Z
| 2021-01-08T00:19:44Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
Code that raise traceback
```python
import pandas as pd
df = pd.DataFrame([[1, 2], [3, 4]])
df['0 - Name'] = [1, 2]
```
Result:
ValueError: format number 1 of "0 - Name" is not recognized
If other name witho no mumber on column name, it will pass.
In older version, worked correctly
Tested on new virtualenv - just `pip install pandas`
Failed also on Travis (Python 3.6 passed, 3.7 and 3.8 failed), so probably not my IDE setup or something similar
Full traceback here...
```python-traceback
Traceback (most recent call last):
File "c:\Users\truton\ownCloud\Github\test\del\lib\site-packages\pandas\core\generic.py", line 3823, in _set_item
loc = self._info_axis.get_loc(key)
File "c:\Users\truton\ownCloud\Github\test\del\lib\site-packages\pandas\core\indexes\range.py", line 354, in get_loc
raise KeyError(key)
KeyError: '0 - Name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\truton\ownCloud\Github\test\del.py", line 4, in <module>
df['0 - Name'] = [1, 2]
File "c:\Users\truton\ownCloud\Github\test\del\lib\site-packages\pandas\core\frame.py", line 3163, in __setitem__
self._set_item(key, value)
File "c:\Users\truton\ownCloud\Github\test\del\lib\site-packages\pandas\core\frame.py", line 3240, in _set_item
NDFrame._set_item(self, key, value)
File "c:\Users\truton\ownCloud\Github\test\del\lib\site-packages\pandas\core\generic.py", line 3826, in _set_item
self._mgr.insert(len(self._info_axis), key, value)
File "c:\Users\truton\ownCloud\Github\test\del\lib\site-packages\pandas\core\internals\managers.py", line 1197,
in insert
new_axis = self.items.insert(loc, item)
File "c:\Users\truton\ownCloud\Github\test\del\lib\site-packages\pandas\core\indexes\numeric.py", line 174, in insert
item = self._validate_fill_value(item)
File "c:\Users\truton\ownCloud\Github\test\del\lib\site-packages\pandas\core\indexes\numeric.py", line 119, in _validate_fill_value
if is_bool(value) or is_bool_dtype(value):
File "c:\Users\truton\ownCloud\Github\test\del\lib\site-packages\pandas\core\dtypes\common.py", line 1384, in is_bool_dtype
dtype = get_dtype(arr_or_dtype)
File "c:\Users\truton\ownCloud\Github\test\del\lib\site-packages\pandas\core\dtypes\common.py", line 1607, in get_dtype
return pandas_dtype(arr_or_dtype)
File "c:\Users\truton\ownCloud\Github\test\del\lib\site-packages\pandas\core\dtypes\common.py", line 1799, in pandas_dtype
npdtype = np.dtype(dtype)
File "c:\Users\truton\ownCloud\Github\test\del\lib\site-packages\numpy\core\_internal.py", line 177, in _commastring
(len(result)+1, astr))
ValueError: format number 1 of "0 - Name" is not recognized
```
#### Problem description
Very strange is than it happens only if it's first assignment, so this will work correctly with no error
```python
import pandas as pd
df = pd.DataFrame([[1, 2], [3, 4]])
df['a - Name'] = [1, 2]
df['0 - Name'] = [1, 2]
```
#### Expected Output
I do not create dataframe with numeric names, but thing is, that if source data are numpy, than created dataframe has numeric range index. If user in my library insert data - i create some derivations - want to keep names + name of derivation - thus if somebody insert numpy, it will fail.
Expected output is creating new column with number in column name start - or generating columns like ['1', '2', '3'] from arrays which works...
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 3e89b4c4b1580aa890023fc550774e63d499da25
python : 3.7.7.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.17763
machine : AMD64
processor : Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : cs_CZ.UTF-8
LOCALE : None.None
pandas : 1.2.0
numpy : 1.19.5
pytz : 2020.5
dateutil : 2.8.1
pip : 20.1
setuptools : 46.1.3
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39010/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39010/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39011
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39011/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39011/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39011/events
|
https://github.com/pandas-dev/pandas/issues/39011
| 780,906,387
|
MDU6SXNzdWU3ODA5MDYzODc=
| 39,011
|
ENH: enhance query syntax
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13950346?v=4",
"events_url": "https://api.github.com/users/DylanDmitri/events{/privacy}",
"followers_url": "https://api.github.com/users/DylanDmitri/followers",
"following_url": "https://api.github.com/users/DylanDmitri/following{/other_user}",
"gists_url": "https://api.github.com/users/DylanDmitri/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DylanDmitri",
"id": 13950346,
"login": "DylanDmitri",
"node_id": "MDQ6VXNlcjEzOTUwMzQ2",
"organizations_url": "https://api.github.com/users/DylanDmitri/orgs",
"received_events_url": "https://api.github.com/users/DylanDmitri/received_events",
"repos_url": "https://api.github.com/users/DylanDmitri/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DylanDmitri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DylanDmitri/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DylanDmitri"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
},
{
"color": "f3afff",
"default": false,
"description": "pd.eval, query",
"id": 1631985267,
"name": "expressions",
"node_id": "MDU6TGFiZWwxNjMxOTg1MjY3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/expressions"
}
] |
closed
| false
| null |
[] | null | 2
| 2021-01-06T23:15:54Z
| 2021-08-14T23:24:44Z
| 2021-08-14T23:24:44Z
|
CONTRIBUTOR
| null |
#### Is your feature request related to a problem?
No, it's additional behavior.
#### Describe the solution you'd like
```df.query(key=value)```
Add new query behavior for simple key lookup. Helps improve readability.
#### API breaking implications
Will not break API. Make the query expression optional, new calls hit this feature if and only if the query expression is not provided.
#### Describe alternatives you've considered
Just not adding this. It's sugar and adds some complexity.
#### Additional context
Single value lookups can be:
```
info = df[df['zipcode'] == adress.zip]
```
Or if you want to use the query API:
```
info = df.query(f'zipcode == {address.zip}')
```
I've found myself writing (on accident)
```
info = df.query(zipcode=adress.zip)
```
The third approach is cleanest and easiest to read. The first approach (via bitmask) is fastest. We can just short-circuit the new special case to use a bitmask, rather than going through the "query" machinery each time.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39011/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39011/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39012
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39012/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39012/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39012/events
|
https://github.com/pandas-dev/pandas/pull/39012
| 780,923,971
|
MDExOlB1bGxSZXF1ZXN0NTUwNzM1Nzk5
| 39,012
|
BUG: read_csv raising ValueError for tru_values/false_values and boolean dtype
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 8
| 2021-01-07T00:06:13Z
| 2021-01-09T22:22:25Z
| 2021-01-09T22:18:23Z
|
MEMBER
| null |
- [x] closes #34655
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
I am not really experienced with cython, so I would appreciate feedback on the switiching function. This was not done previously in case of ea boolean dtype, hence why this was failing before.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39012/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39012/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/39012.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39012",
"merged_at": "2021-01-09T22:18:22Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39012.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39012"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39013
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39013/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39013/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39013/events
|
https://github.com/pandas-dev/pandas/issues/39013
| 781,047,118
|
MDU6SXNzdWU3ODEwNDcxMTg=
| 39,013
|
ENH/SQL: Allow 'dtype' argument in to_sql() to take dictionary including a default datatype
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7028403?v=4",
"events_url": "https://api.github.com/users/nabelekt/events{/privacy}",
"followers_url": "https://api.github.com/users/nabelekt/followers",
"following_url": "https://api.github.com/users/nabelekt/following{/other_user}",
"gists_url": "https://api.github.com/users/nabelekt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nabelekt",
"id": 7028403,
"login": "nabelekt",
"node_id": "MDQ6VXNlcjcwMjg0MDM=",
"organizations_url": "https://api.github.com/users/nabelekt/orgs",
"received_events_url": "https://api.github.com/users/nabelekt/received_events",
"repos_url": "https://api.github.com/users/nabelekt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nabelekt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nabelekt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nabelekt"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] |
closed
| false
| null |
[] | null | 2
| 2021-01-07T05:45:15Z
| 2021-08-14T23:28:18Z
| 2021-08-14T23:28:18Z
|
NONE
| null |
Related to #11886
Could we modify the dictionary interpretation in `to_sql()` so that the datatype specified by a key like `'default'` would apply to all other columns not already specified in the dictionary? Or, alternatively, we could break this out to two different arguments: a dictionary for specific columns and a datatype for all the rest?
Instead of choosing between specifying every column having a specific type and using one datatype for all columns, I need a hybrid of the two.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39013/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39013/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39014
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39014/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39014/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39014/events
|
https://github.com/pandas-dev/pandas/pull/39014
| 781,147,185
|
MDExOlB1bGxSZXF1ZXN0NTUwOTIwMzg4
| 39,014
|
DOC: Add whatsnew
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/71941335?v=4",
"events_url": "https://api.github.com/users/vangorade/events{/privacy}",
"followers_url": "https://api.github.com/users/vangorade/followers",
"following_url": "https://api.github.com/users/vangorade/following{/other_user}",
"gists_url": "https://api.github.com/users/vangorade/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vangorade",
"id": 71941335,
"login": "vangorade",
"node_id": "MDQ6VXNlcjcxOTQxMzM1",
"organizations_url": "https://api.github.com/users/vangorade/orgs",
"received_events_url": "https://api.github.com/users/vangorade/received_events",
"repos_url": "https://api.github.com/users/vangorade/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vangorade/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vangorade/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vangorade"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 5
| 2021-01-07T08:58:40Z
| 2021-01-10T11:00:28Z
| 2021-01-08T14:17:28Z
|
CONTRIBUTOR
| null |
- [x] closes #38878
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39014/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39014/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/39014.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39014",
"merged_at": "2021-01-08T14:17:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39014.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39014"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39015
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39015/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39015/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39015/events
|
https://github.com/pandas-dev/pandas/issues/39015
| 781,148,156
|
MDU6SXNzdWU3ODExNDgxNTY=
| 39,015
|
BUG: DataFrame.rank() wrong result for inf
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/48577571?v=4",
"events_url": "https://api.github.com/users/auderson/events{/privacy}",
"followers_url": "https://api.github.com/users/auderson/followers",
"following_url": "https://api.github.com/users/auderson/following{/other_user}",
"gists_url": "https://api.github.com/users/auderson/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/auderson",
"id": 48577571,
"login": "auderson",
"node_id": "MDQ6VXNlcjQ4NTc3NTcx",
"organizations_url": "https://api.github.com/users/auderson/orgs",
"received_events_url": "https://api.github.com/users/auderson/received_events",
"repos_url": "https://api.github.com/users/auderson/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/auderson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/auderson/subscriptions",
"type": "User",
"url": "https://api.github.com/users/auderson"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] |
closed
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 2
| 2021-01-07T09:00:15Z
| 2021-01-07T10:32:39Z
| 2021-01-07T10:32:19Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
import numpy as np
df = pd.DataFrame(np.random.randn(3, 4))
df.iloc[0, 0] = np.inf
df
0 1 2 3
0 inf -0.614812 -0.316211 -0.049311
1 1.254238 -0.082490 -0.199442 -0.373851
2 -1.440219 0.723572 0.028726 -0.904849
df.rank()
0 1 2 3
0 NaN 1.0 1.0 3.0
1 2.0 2.0 2.0 2.0
2 1.0 3.0 3.0 1.0
df.iloc[0, 0] = -np.inf
df.rank()
0 1 2 3
0 1.0 1.0 1.0 3.0
1 3.0 2.0 2.0 2.0
2 2.0 3.0 3.0 1.0
```
#### Problem description
as you can see, -inf and inf get different results.
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 3e89b4c4b1580aa890023fc550774e63d499da25
python : 3.8.5.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-118-generic
Version : #119-Ubuntu SMP Tue Sep 8 12:30:01 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.0
numpy : 1.18.5
pytz : 2020.5
dateutil : 2.8.1
pip : 20.3.3
setuptools : 51.0.0.post20201207
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.2
html5lib : None
pymysql : 0.10.1
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: 0.9.0
bs4 : None
bottleneck : None
fsspec : 0.8.4
fastparquet : None
gcsfs : None
matplotlib : 3.3.3
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.52.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39015/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39015/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39016
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39016/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39016/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39016/events
|
https://github.com/pandas-dev/pandas/issues/39016
| 781,179,739
|
MDU6SXNzdWU3ODExNzk3Mzk=
| 39,016
|
BUG: pd.DataFrame.pivot() alters external list (v 1.1.5)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2592140?v=4",
"events_url": "https://api.github.com/users/mattiasthalen/events{/privacy}",
"followers_url": "https://api.github.com/users/mattiasthalen/followers",
"following_url": "https://api.github.com/users/mattiasthalen/following{/other_user}",
"gists_url": "https://api.github.com/users/mattiasthalen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mattiasthalen",
"id": 2592140,
"login": "mattiasthalen",
"node_id": "MDQ6VXNlcjI1OTIxNDA=",
"organizations_url": "https://api.github.com/users/mattiasthalen/orgs",
"received_events_url": "https://api.github.com/users/mattiasthalen/received_events",
"repos_url": "https://api.github.com/users/mattiasthalen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mattiasthalen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mattiasthalen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mattiasthalen"
}
|
[
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 3
| 2021-01-07T09:48:12Z
| 2021-01-07T11:15:58Z
| 2021-01-07T11:15:37Z
|
NONE
| null |
I just discovered a strange behavior, pd.DataFrame.pivot() changes an external list by adding an element:
```
import numpy as np
import pandas as pd
size = 10
a = np.random.randint(0, 100, size = size)
b = np.random.randint(0, 100, size = size)
c = np.random.randint(0, 100, size = size)
x = np.random.randint(0, 3, size = size)
y = np.random.randint(0, 100, size = size)
data = {'a': a, 'b': b, 'c': c, 'x': x, 'y': y}
group_fields = ['a', 'b', 'c']
group_fields_copy = group_fields.copy()
df = pd.DataFrame.from_dict(data)
df_pivot = df.pivot(index = group_fields, columns = 'x').reset_index()
print(group_fields)
print(group_fields_copy)
```
```
['a', 'b', 'c', 'x']
['a', 'b', 'c']
```
However, this doesn't happen if I change `group_fields = ['a', 'b', 'c']` to a set `group_fields = ('a', 'b', 'c')`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39016/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39016/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39017
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39017/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39017/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39017/events
|
https://github.com/pandas-dev/pandas/issues/39017
| 781,262,536
|
MDU6SXNzdWU3ODEyNjI1MzY=
| 39,017
|
ENH: Add encoding errors option in pandas.read_csv
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1690072?v=4",
"events_url": "https://api.github.com/users/davidleejy/events{/privacy}",
"followers_url": "https://api.github.com/users/davidleejy/followers",
"following_url": "https://api.github.com/users/davidleejy/following{/other_user}",
"gists_url": "https://api.github.com/users/davidleejy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/davidleejy",
"id": 1690072,
"login": "davidleejy",
"node_id": "MDQ6VXNlcjE2OTAwNzI=",
"organizations_url": "https://api.github.com/users/davidleejy/orgs",
"received_events_url": "https://api.github.com/users/davidleejy/received_events",
"repos_url": "https://api.github.com/users/davidleejy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/davidleejy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/davidleejy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/davidleejy"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 3
| 2021-01-07T12:01:20Z
| 2021-03-09T22:03:54Z
| 2021-03-09T22:03:54Z
|
NONE
| null |
#### Related to problem:
```python
df.to_csv('abc.csv', errors='surrogatepass') # saving works fine.
# Try to load:
# Attempt 1:
pd.read_csv('abc.csv')
# Fails. UnicodeEncodeError: 'utf-8' codec can't encode characters in position 30682-30685: surrogates not allowed
# Attempt 2:
pd.read_csv('abc.csv', errors='surrogatepass')
# Fails. No `errors` parameter.
# Attempt 3:
with open('abc.csv', errors='surrogatepass') as _file:
df = pd.read_csv(_file)
# Fails. UnicodeEncodeError: 'utf-8' codec can't encode characters in position 30682-30685: surrogates not allowed
```
#### Describe the solution you'd like
Recently, we added `errors` as a function parameter to `to_csv` in this [merged PR](https://github.com/pandas-dev/pandas/pull/27899). Can we do the same for `read_csv`? This solution would make Attempt 2 work.
(Not sure why Attempt 3 doesn't work since `read_csv` accepts a file handler object.)
#### API breaking implications
Should not break.
#### Describe alternatives you've considered
see (futile) Attempt 3 above.
#### Additional context
Section "Error handlers" in https://docs.python.org/3/library/codecs.html says:
<img width="681" alt="Screenshot 2021-01-07 at 7 57 20 PM" src="https://user-images.githubusercontent.com/1690072/103890172-91b18400-5122-11eb-8475-dbaa6738bdff.png">
Example of encoding & decoding:
```python
x="\ud83d\ude4f".encode('utf-16', 'surrogatepass').decode('utf-16')
print(x)
# prints 🙏
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39017/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39017/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39018
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/39018/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39018/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/39018/events
|
https://github.com/pandas-dev/pandas/pull/39018
| 781,281,220
|
MDExOlB1bGxSZXF1ZXN0NTUxMDMxOTY4
| 39,018
|
CLN: add typing to dtype arg in core/common.py (GH38808)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33303747?v=4",
"events_url": "https://api.github.com/users/tushushu/events{/privacy}",
"followers_url": "https://api.github.com/users/tushushu/followers",
"following_url": "https://api.github.com/users/tushushu/following{/other_user}",
"gists_url": "https://api.github.com/users/tushushu/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tushushu",
"id": 33303747,
"login": "tushushu",
"node_id": "MDQ6VXNlcjMzMzAzNzQ3",
"organizations_url": "https://api.github.com/users/tushushu/orgs",
"received_events_url": "https://api.github.com/users/tushushu/received_events",
"repos_url": "https://api.github.com/users/tushushu/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tushushu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tushushu/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tushushu"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 1
| 2021-01-07T12:33:52Z
| 2021-01-07T14:07:44Z
| 2021-01-07T14:07:40Z
|
CONTRIBUTOR
| null |
Follow the issue - https://github.com/pandas-dev/pandas/issues/38808
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39018/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/39018/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/39018.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39018",
"merged_at": "2021-01-07T14:07:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39018.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39018"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.