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/26713 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26713/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26713/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26713/events | https://github.com/pandas-dev/pandas/issues/26713 | 453,663,317 | MDU6SXNzdWU0NTM2NjMzMTc= | 26,713 | Performance for TimedeltaArray.__iter__ and PeriodArray.__iter__ | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or... | closed | false | null | [] | {
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
} | 1 | 2019-06-07T19:34:28Z | 2020-10-14T18:19:25Z | 2020-10-14T18:19:25Z | CONTRIBUTOR | null | Right now `DatetimeArray.__iter__` does it's boxing in chunks. We could do something similar for TimedeltaArray and possibly PeriodArray. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26713/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26713/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26714 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26714/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26714/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26714/events | https://github.com/pandas-dev/pandas/issues/26714 | 453,680,207 | MDU6SXNzdWU0NTM2ODAyMDc= | 26,714 | CI: matplotlib failures | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [] | closed | false | null | [] | null | 4 | 2019-06-07T20:25:02Z | 2019-06-08T04:22:44Z | 2019-06-08T04:22:44Z | CONTRIBUTOR | null | https://travis-ci.org/pandas-dev/pandas/jobs/542921706#L2423
```
=================================== FAILURES ===================================
_______________________ TestDataFramePlots.test_subplots _______________________
[gw1] linux -- Python 3.6.8 /home/travis/miniconda3/envs/pandas-dev/bin/python
self = <pandas.tests.plotting.test_frame.TestDataFramePlots object at 0x7f507ed05128>
@pytest.mark.slow
def test_subplots(self):
df = DataFrame(np.random.rand(10, 3),
index=list(string.ascii_letters[:10]))
for kind in ['bar', 'barh', 'line', 'area']:
axes = df.plot(kind=kind, subplots=True, sharex=True, legend=True)
self._check_axes_shape(axes, axes_num=3, layout=(3, 1))
assert axes.shape == (3, )
for ax, column in zip(axes, df.columns):
self._check_legend_labels(ax,
labels=[pprint_thing(column)])
for ax in axes[:-2]:
self._check_visible(ax.xaxis) # xaxis must be visible for grid
self._check_visible(ax.get_xticklabels(), visible=False)
self._check_visible(
> ax.get_xticklabels(minor=True), visible=False)
pandas/tests/plotting/test_frame.py:387:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pandas.tests.plotting.test_frame.TestDataFramePlots object at 0x7f507ed05128>
collections = <a list of 2 Text xticklabel objects>, visible = False
def _check_visible(self, collections, visible=True):
"""
Check each artist is visible or not
Parameters
----------
collections : matplotlib Artist or its list-like
target Artist or its list or collection
visible : bool
expected visibility
"""
from matplotlib.collections import Collection
if not isinstance(collections,
Collection) and not is_list_like(collections):
collections = [collections]
for patch in collections:
> assert patch.get_visible() == visible
E AssertionError
pandas/tests/plotting/common.py:137: AssertionError
```
I'm looking into it now, but will have to go in 30 minutes. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26714/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26714/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26715 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26715/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26715/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26715/events | https://github.com/pandas-dev/pandas/pull/26715 | 453,684,153 | MDExOlB1bGxSZXF1ZXN0Mjg2MzI1NjQx | 26,715 | TST: skip assert for mpl 3.1+ | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "8AE234",
"d... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 6 | 2019-06-07T20:36:34Z | 2019-06-08T04:22:48Z | 2019-06-08T04:22:44Z | CONTRIBUTOR | null | Closes #26714
xref https://github.com/pandas-dev/pandas/issues/26716 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26715/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26715/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26715.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26715",
"merged_at": "2019-06-08T04:22:44Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26715.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26715"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26716 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26716/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26716/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26716/events | https://github.com/pandas-dev/pandas/issues/26716 | 453,685,367 | MDU6SXNzdWU0NTM2ODUzNjc= | 26,716 | CI: Restore pyarrow for travis-3.6 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "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": "d93f0b",
"default": false,
"description": ... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 3 | 2019-06-07T20:40:10Z | 2019-12-04T13:10:24Z | 2019-12-04T13:10:24Z | CONTRIBUTOR | null | Present in the last two builds on master
- https://travis-ci.org/pandas-dev/pandas/jobs/542915088
- https://travis-ci.org/pandas-dev/pandas/jobs/542931830
```
gw0 I
/home/travis/miniconda3/envs/pandas-dev/lib/python3.6/site-packages/hypothesis/_settings.py:193: HypothesisDeprecationWarning: The timeout setting can safely be removed with no effect.
verbosity=self.verbosity,
[gw0] node down: Not properly terminated
Replacing crashed worker gw0
```
Something is crashing our pytest-xdist worker. We used pytest-xdist 1.28.0 in the last green build https://travis-ci.org/pandas-dev/pandas/jobs/542868383, so it's likely not pytest-xdist itself.
Edit: Seems to be an issue with feather / pyarrow. We segfault when collecting tests: https://travis-ci.org/pandas-dev/pandas/jobs/542977519#L3052. https://github.com/pandas-dev/pandas/pull/26715 is skipping, use this issue to restore.
```
collecting 34877 items / 1 skipped / 34876 selected Fatal Python error: Segmentation fault
Current thread 0x00007fb9015dd740 (most recent call first):
File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 922 in create_module
File "<frozen importlib._bootstrap>", line 571 in module_from_spec
File "<frozen importlib._bootstrap>", line 658 in _load_unlocked
File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 971 in _find_and_load
File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.6/site-packages/pyarrow/__init__.py", line 47 in <module>
File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 678 in exec_module
File "<frozen importlib._bootstrap>", line 665 in _load_unlocked
File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 971 in _find_and_load
File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.6/site-packages/_pytest/outcomes.py", line 168 in importorskip
File "/home/travis/build/pandas-dev/pandas/pandas/tests/io/test_feather.py", line 13 in <module>
File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.6/site-packages/_pytest/assertion/rewrite.py", line 304 in load_module
File "<frozen importlib._bootstrap>", line 626 in _load_backward_compatible
File "<frozen importlib._bootstrap>", line 656 in _load_unlocked
File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 971 in _find_and_load
File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.6/site-packages/py/_path/local.py", line 701 in pyimport
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26716/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26716/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26717 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26717/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26717/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26717/events | https://github.com/pandas-dev/pandas/pull/26717 | 453,687,028 | MDExOlB1bGxSZXF1ZXN0Mjg2MzI3OTA2 | 26,717 | BUG: Check for duplicate names columns and index in crosstab | {
"avatar_url": "https://avatars.githubusercontent.com/u/1595942?v=4",
"events_url": "https://api.github.com/users/cuchoi/events{/privacy}",
"followers_url": "https://api.github.com/users/cuchoi/followers",
"following_url": "https://api.github.com/users/cuchoi/following{/other_user}",
"gists_url": "https://api.github.com/users/cuchoi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cuchoi",
"id": 1595942,
"login": "cuchoi",
"node_id": "MDQ6VXNlcjE1OTU5NDI=",
"organizations_url": "https://api.github.com/users/cuchoi/orgs",
"received_events_url": "https://api.github.com/users/cuchoi/received_events",
"repos_url": "https://api.github.com/users/cuchoi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cuchoi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cuchoi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cuchoi"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] | closed | false | null | [] | null | 11 | 2019-06-07T20:45:19Z | 2019-09-17T02:11:42Z | 2019-08-28T16:14:39Z | NONE | null | - [ ] closes #22529
- [x] tests added / passed
- [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/26717/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26717/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26717.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26717",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/26717.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26717"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26718 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26718/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26718/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26718/events | https://github.com/pandas-dev/pandas/pull/26718 | 453,698,489 | MDExOlB1bGxSZXF1ZXN0Mjg2MzM3MDEw | 26,718 | WIP: debug CI | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "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 | [] | null | 1 | 2019-06-07T21:21:50Z | 2019-06-07T21:33:39Z | 2019-06-07T21:33:35Z | CONTRIBUTOR | null | closes #26716 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26718/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26718/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26718.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26718",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/26718.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26718"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26719 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26719/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26719/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26719/events | https://github.com/pandas-dev/pandas/issues/26719 | 453,705,438 | MDU6SXNzdWU0NTM3MDU0Mzg= | 26,719 | Pandas Bar Plot xlim failure | {
"avatar_url": "https://avatars.githubusercontent.com/u/24770461?v=4",
"events_url": "https://api.github.com/users/renjiege/events{/privacy}",
"followers_url": "https://api.github.com/users/renjiege/followers",
"following_url": "https://api.github.com/users/renjiege/following{/other_user}",
"gists_url": "https://api.github.com/users/renjiege/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/renjiege",
"id": 24770461,
"login": "renjiege",
"node_id": "MDQ6VXNlcjI0NzcwNDYx",
"organizations_url": "https://api.github.com/users/renjiege/orgs",
"received_events_url": "https://api.github.com/users/renjiege/received_events",
"repos_url": "https://api.github.com/users/renjiege/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/renjiege/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/renjiege/subscriptions",
"type": "User",
"url": "https://api.github.com/users/renjiege"
} | [
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] | closed | false | null | [] | null | 2 | 2019-06-07T21:44:50Z | 2019-08-21T16:32:26Z | 2019-08-21T16:32:25Z | NONE | null | #### Code Sample
```python
df['Quarter'] = pd.PeriodIndex(df['date'], freq='Q')
fig, ax = plt.subplots(figsize=(10,5))
df.plot.bar(x='Quarter', y ='ape', ax=ax, xlim=('2015Q1', '2019Q1'), color="tab:green").grid(alpha=.4)
```
#### Problem description
for bar plot, xlim option fails and always gives the same range; line plot works though.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26719/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26719/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26720 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26720/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26720/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26720/events | https://github.com/pandas-dev/pandas/issues/26720 | 453,709,908 | MDU6SXNzdWU0NTM3MDk5MDg= | 26,720 | SettingWithCopyWarning Triggers Inconsistently Based On Number of Columns | {
"avatar_url": "https://avatars.githubusercontent.com/u/403865?v=4",
"events_url": "https://api.github.com/users/muraii/events{/privacy}",
"followers_url": "https://api.github.com/users/muraii/followers",
"following_url": "https://api.github.com/users/muraii/following{/other_user}",
"gists_url": "https://api.github.com/users/muraii/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/muraii",
"id": 403865,
"login": "muraii",
"node_id": "MDQ6VXNlcjQwMzg2NQ==",
"organizations_url": "https://api.github.com/users/muraii/orgs",
"received_events_url": "https://api.github.com/users/muraii/received_events",
"repos_url": "https://api.github.com/users/muraii/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/muraii/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/muraii/subscriptions",
"type": "User",
"url": "https://api.github.com/users/muraii"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] | 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"
} | 5 | 2019-06-07T22:02:23Z | 2019-06-10T00:07:01Z | 2019-06-09T23:55:25Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
divider_one = '=' * 75
divider_two = '+' * 75
divider_three = '#' * 75
####################################################################################################
# There are three declarations for the `base_df_*` DataFrame:
# one initializes it with two elements then adds one, two, and three more columns; and
# one initializes it with three elements then adds one, two, and three more columns; and
# one initializes it with four elements then adds one, two, and three more columns.
#
# It appears that the `SettingWithcopyWarning` is triggered when a DataFrame with four or more columns is
# used to derive another DataFrame by slicing and then an attempt is made to add a new column to
# the derived DataFrame. There is no such warning when the original DataFrame has fewer
# columns.
#
# To test this, uncomment the appropriate function to test.
#
####################################################################################################
def test_base_df_with_two_initial_elements():
base_df_one = pd.DataFrame({
'col1': ['col1 value one', 'col1 value two', 'col1 value three'],
'col2': ['col2 value one', 'col2 value two', 'col2 value three'],
})
print(divider_one)# This is with a base df w/ 2
print('Setting the df sub from slice.')
base_df_one_sub = base_df_one[['col1', 'col2']]
print('Adding newcol to sub.')
print('Should be no error.')
base_df_one_sub['newcol'] = 'values'
print(divider_one)
print(divider_two)# This is with a base df w/ 3
print('Adding col3 to base.')
base_df_one['col3'] = 'col3 values'
print('Resetting the df sub from slice.')
base_df_one_sub = base_df_one[['col1', 'col2']]
print('Adding newcol to sub.')
print('Should be no error.')
base_df_one_sub['newcol'] = 'values'
print(divider_two)
print(divider_three)# This is with a base df w/ 4
print('Adding col4 to base.')
base_df_one['col4'] = 'col4 values'
print('Resetting the df sub from slice.')
base_df_one_sub = base_df_one[['col1', 'col2']]
print('Adding newcol to sub.')
print('Should be an error.')
base_df_one_sub['newcol'] = 'values'
print(divider_three)
def test_base_df_with_three_initial_elements():
base_df_one = pd.DataFrame({
'col1': ['col1 value one', 'col1 value two', 'col1 value three'],
'col2': ['col2 value one', 'col2 value two', 'col2 value three'],
'col3': ['col3 value one', 'col3 value two', 'col3 value three'],
})
print(divider_one)# This is with a base df w/ 3
print('Setting the df sub from slice.')
base_df_one_sub = base_df_one[['col1', 'col2']]
print('Adding newcol to sub.')
print('Should be no error.')
base_df_one_sub['newcol'] = 'values'
print(divider_one)
print(divider_two)# This is with a base df w/ 4
print('Adding col4 to base.')
base_df_one['col4'] = 'col3 values'
print('Resetting the df sub from slice.')
base_df_one_sub = base_df_one[['col1', 'col2']]
print('Adding newcol to sub.')
print('Should be an error.')
base_df_one_sub['newcol'] = 'values'
print(divider_two)
print(divider_three)# This is with a base df w/ 5
print('Adding col5 to base.')
base_df_one['col5'] = 'col4 values'
print('Resetting the df sub from slice.')
base_df_one_sub = base_df_one[['col1', 'col2']]
print('Adding newcol to sub.')
print('Should be an error.')
base_df_one_sub['newcol'] = 'values'
print(divider_three)
def test_base_df_with_four_initial_elements():
base_df_one = pd.DataFrame({
'col1': ['col1 value one', 'col1 value two', 'col1 value three'],
'col2': ['col2 value one', 'col2 value two', 'col2 value three'],
'col3': ['col3 value one', 'col3 value two', 'col3 value three'],
'col4': ['col4 value one', 'col4 value two', 'col4 value three'],
})
print(divider_one)# This is with a base df w/ 4
print('Setting the df sub from slice.')
base_df_one_sub = base_df_one[['col1', 'col2']]
print('Adding newcol to sub.')
print('Should be an error.')
base_df_one_sub['newcol'] = 'values'
print(divider_one)
print(divider_two)# This is with a base df w/ 5
print('Adding col5 to base.')
base_df_one['col5'] = 'col3 values'
print('Resetting the df sub from slice.')
base_df_one_sub = base_df_one[['col1', 'col2']]
print('Adding newcol to sub.')
print('Should be an error.')
base_df_one_sub['newcol'] = 'values'
print(divider_two)
print(divider_three)# This is with a base df w/ 6
print('Adding col6 to base.')
base_df_one['col6'] = 'col4 values'
print('Resetting the df sub from slice.')
base_df_one_sub = base_df_one[['col1', 'col2']]
print('Adding newcol to sub.')
print('Should be an error.')
base_df_one_sub['newcol'] = 'values'
print(divider_three)
# Choose which function to test to confirm and uncomment.
# test_base_df_with_two_initial_elements()
# test_base_df_with_three_initial_elements()
# test_base_df_with_four_initial_elements()
```
#### Problem description
It appears that the `SettingWithcopyWarning` is triggered when a DataFrame with four or more columns is used to derive another DataFrame by slicing and then an attempt is made to add a new column to the derived DataFrame. There is no such warning when the original DataFrame has fewer columns.
#### Expected Output
I'm not precisely sure what to expect, but I would imagine that the number of columns in a source DataFrame shouldn't drive a warning against misuse of views of DataFrames. The documentation directs users to use `.loc[]` but only when the warning is issued. If there is potential wonkiness due to setting values from views or copies generally, I'd expect it'd be more helpful when the warning is triggered consistently.
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.24.2
pytest: None
pip: 19.1.1
setuptools: 41.0.1
Cython: None
numpy: 1.16.4
scipy: None
pyarrow: None
xarray: None
IPython: 7.5.0
sphinx: 2.1.0
patsy: None
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10.1
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/26720/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26720/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26721 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26721/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26721/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26721/events | https://github.com/pandas-dev/pandas/pull/26721 | 453,712,872 | MDExOlB1bGxSZXF1ZXN0Mjg2MzQ4NDkw | 26,721 | PERF: building MultiIndex with categorical levels | {
"avatar_url": "https://avatars.githubusercontent.com/u/3621629?v=4",
"events_url": "https://api.github.com/users/0x0L/events{/privacy}",
"followers_url": "https://api.github.com/users/0x0L/followers",
"following_url": "https://api.github.com/users/0x0L/following{/other_user}",
"gists_url": "https://api.github.com/users/0x0L/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/0x0L",
"id": 3621629,
"login": "0x0L",
"node_id": "MDQ6VXNlcjM2MjE2Mjk=",
"organizations_url": "https://api.github.com/users/0x0L/orgs",
"received_events_url": "https://api.github.com/users/0x0L/received_events",
"repos_url": "https://api.github.com/users/0x0L/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/0x0L/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0x0L/subscriptions",
"type": "User",
"url": "https://api.github.com/users/0x0L"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "207de5",
"default"... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 6 | 2019-06-07T22:15:10Z | 2019-06-08T21:22:31Z | 2019-06-08T21:04:28Z | CONTRIBUTOR | null | - [x] closes #22044
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
```python
df = pd.DataFrame({
'a': np.arange(1_000_000, dtype=np.int32),
'b': np.arange(1_000_000, dtype=np.int64),
'c': np.arange(1_000_000, dtype=float),
}).astype({'a': 'category', 'b': 'category'})
%timeit df.set_index(['a', 'b'])
```
On my machine, this takes ~20ms. The current implem takes 140ms.
Any suggestion for 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/26721/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26721/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26721.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26721",
"merged_at": "2019-06-08T21:04:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26721.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26721"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26722 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26722/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26722/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26722/events | https://github.com/pandas-dev/pandas/pull/26722 | 453,715,337 | MDExOlB1bGxSZXF1ZXN0Mjg2MzUwMzg2 | 26,722 | REF: Refactor signature of RangeIndex._simple_new | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "a10c02",
"default": false,
"de... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 11 | 2019-06-07T22:25:36Z | 2019-06-14T15:54:47Z | 2019-06-14T12:42:00Z | CONTRIBUTOR | null | This PR refactors ``RangeIndex._simple_new``, so its signature is the same as ``Index._simple_new``. This will help typing later on, as currently mypy complains about the different signatures. In short a ``_simple_new`` now expects a ``range`` as its input. As a ``range`` is immutable, the code is easy to reason about.
Additionally, the signature of ``RangeIndex.from_range`` has dropped the ``**kwargs`` part of its signature. This makes the class method a bit easier to reason about. Other classes with a ``from_*`` class method don't have a ``**kwargs`` part.
After this PR, ``RangeIndex`` will be ready for adding type hints.
EDIT; Performance improvements:
```python
>>> rng = pd.RangeIndex(1_000_000)
>>> sl = slice(0, 900_000)
>>> %timeit rng[sl] # slicing
7.65 µs ± 8.11 ns per loop # master
1.85 µs ± 8.11 ns per loop # this PR
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26722/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26722/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26722.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26722",
"merged_at": "2019-06-14T12:42:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26722.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26722"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26723 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26723/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26723/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26723/events | https://github.com/pandas-dev/pandas/issues/26723 | 453,725,033 | MDU6SXNzdWU0NTM3MjUwMzM= | 26,723 | DOC/CI: Doc build is failing with sphinx 2.1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4",
"events_url": "https://api.github.com/users/datapythonista/events{/privacy}",
"followers_url": "https://api.github.com/users/datapythonista/followers",
"following_url": "https://api.github.com/users/datapythonista/following{/other_user}",
"gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/datapythonista",
"id": 10058240,
"login": "datapythonista",
"node_id": "MDQ6VXNlcjEwMDU4MjQw",
"organizations_url": "https://api.github.com/users/datapythonista/orgs",
"received_events_url": "https://api.github.com/users/datapythonista/received_events",
"repos_url": "https://api.github.com/users/datapythonista/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions",
"type": "User",
"url": "https://api.github.com/users/datapythonista"
} | [
{
"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 Integratio... | closed | false | null | [] | null | 4 | 2019-06-07T23:15:03Z | 2020-05-08T03:19:05Z | 2020-05-08T03:19:05Z | MEMBER | null | The doc build is failing with:
```
Recursion error:
maximum recursion depth exceeded while calling a Python object
This can happen with very large or deeply nested source files. You can carefully increase the default Python recursion limit of 1000 in conf.py with e.g.:
import sys; sys.setrecursionlimit(1500)
```
I tried increasing the limit from 1,000 to 20,000 but still the same error, so I guess the problem is something else.
I think this is the first job that failed: https://travis-ci.org/pandas-dev/pandas/jobs/542714631 (PR #26697) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26723/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26723/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26724 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26724/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26724/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26724/events | https://github.com/pandas-dev/pandas/pull/26724 | 453,731,500 | MDExOlB1bGxSZXF1ZXN0Mjg2MzYzMTM1 | 26,724 | Set index with prepend | {
"avatar_url": "https://avatars.githubusercontent.com/u/3716227?v=4",
"events_url": "https://api.github.com/users/nicodv/events{/privacy}",
"followers_url": "https://api.github.com/users/nicodv/followers",
"following_url": "https://api.github.com/users/nicodv/following{/other_user}",
"gists_url": "https://api.github.com/users/nicodv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nicodv",
"id": 3716227,
"login": "nicodv",
"node_id": "MDQ6VXNlcjM3MTYyMjc=",
"organizations_url": "https://api.github.com/users/nicodv/orgs",
"received_events_url": "https://api.github.com/users/nicodv/received_events",
"repos_url": "https://api.github.com/users/nicodv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nicodv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nicodv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nicodv"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "e99695",
"default": false,
"description": "R... | closed | false | null | [] | null | 8 | 2019-06-07T23:55:57Z | 2019-06-10T12:57:08Z | 2019-06-10T12:57:08Z | NONE | null | Associated issue: https://github.com/pandas-dev/pandas/issues/26742
This PR adds the ability to _prepend_ indices to existing ones using `.set_index()`, in the same vein as the `append` argument.
This avoid having to do the awkward alternatives:
- `.reset_index().set_index(...)`
- `.set_index(append=True).swaplevel(...)` or `.set_index(append=True).reorder_levels(...)`
`prepend` is mutually exclusive with `append`. The code will test for this and raise ValueError if not.
- [x] tests added / passed
- [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/26724/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26724/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26724.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26724",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/26724.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26724"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26725 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26725/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26725/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26725/events | https://github.com/pandas-dev/pandas/issues/26725 | 453,737,503 | MDU6SXNzdWU0NTM3Mzc1MDM= | 26,725 | CI 3.7 NumPy Dev Failures | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"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": "d93f0b",
"default": false,
"description": ... | closed | false | null | [] | null | 0 | 2019-06-08T00:41:16Z | 2019-06-08T02:05:35Z | 2019-06-08T02:05:35Z | MEMBER | null | Quite a few CI failures lately so apologies if this was missed but I don't think we have an issue for this one. It looks like we are getting some failures with error message checking on NumPy dev. I think this is a result of this change upstream:
https://github.com/numpy/numpy/pull/13721/files
Here's a sample build failure:
https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=12453&view=logs&jobId=3a03f79d-0b41-5610-1aa4-b4a014d0bc70&taskId=264dbb61-dd41-5ada-cfaa-25751f4c2dca&lineStart=70&lineEnd=71&colStart=1&colEnd=1
Need to update and maybe simplify the error message checking on our end.
cc @simonjayhawkins if you have thoughts | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26725/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26725/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26726 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26726/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26726/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26726/events | https://github.com/pandas-dev/pandas/pull/26726 | 453,738,026 | MDExOlB1bGxSZXF1ZXN0Mjg2MzY4MDE5 | 26,726 | Fix broken np_dev CI | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 5 | 2019-06-08T00:46:21Z | 2019-06-08T02:13:13Z | 2019-06-08T02:05:35Z | MEMBER | null | - [X] closes #26725
- [ ] tests added / passed
- [ ] 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/26726/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26726/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26726.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26726",
"merged_at": "2019-06-08T02:05:35Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26726.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26726"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26727 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26727/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26727/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26727/events | https://github.com/pandas-dev/pandas/pull/26727 | 453,751,121 | MDExOlB1bGxSZXF1ZXN0Mjg2Mzc2NTM5 | 26,727 | CI: pin to sphinx 2.0.1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [] | closed | false | null | [] | null | 1 | 2019-06-08T03:33:45Z | 2019-06-08T04:24:56Z | 2019-06-08T04:24:53Z | CONTRIBUTOR | null | xref https://github.com/pandas-dev/pandas/issues/26723 (leaving open, to unpin). | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26727/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26727/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26727.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26727",
"merged_at": "2019-06-08T04:24:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26727.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26727"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26728 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26728/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26728/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26728/events | https://github.com/pandas-dev/pandas/issues/26728 | 453,760,630 | MDU6SXNzdWU0NTM3NjA2MzA= | 26,728 | Import pandas is stopping python service | {
"avatar_url": "https://avatars.githubusercontent.com/u/28296747?v=4",
"events_url": "https://api.github.com/users/RamrajSekar/events{/privacy}",
"followers_url": "https://api.github.com/users/RamrajSekar/followers",
"following_url": "https://api.github.com/users/RamrajSekar/following{/other_user}",
"gists_url": "https://api.github.com/users/RamrajSekar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/RamrajSekar",
"id": 28296747,
"login": "RamrajSekar",
"node_id": "MDQ6VXNlcjI4Mjk2NzQ3",
"organizations_url": "https://api.github.com/users/RamrajSekar/orgs",
"received_events_url": "https://api.github.com/users/RamrajSekar/received_events",
"repos_url": "https://api.github.com/users/RamrajSekar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/RamrajSekar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RamrajSekar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/RamrajSekar"
} | [] | closed | false | null | [] | null | 2 | 2019-06-08T06:00:46Z | 2019-06-08T11:32:38Z | 2019-06-08T11:32:38Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
```
#### Problem description
I just imported the pandas library which is restarting the shell and throwing an alert pop up stating PYTHON HAS STOPPED WORKING and this is in win 10[64bit]
Version:
C:\>python --version
Python 3.7.0a2
NOTE: I tried with IDLE,IDE and Command prompt all is resulting the same, So kindly help me on this.
Kindly refer the snapshot below,

| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26728/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26728/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26729 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26729/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26729/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26729/events | https://github.com/pandas-dev/pandas/pull/26729 | 453,764,367 | MDExOlB1bGxSZXF1ZXN0Mjg2Mzg1MDA3 | 26,729 | TST: troubleshot numexpr test | {
"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"
} | [] | closed | false | null | [] | null | 2 | 2019-06-08T06:56:51Z | 2019-08-24T12:01:35Z | 2019-06-08T08:35:22Z | MEMBER | null | seemingly unrelated test failure to changes in PR #26662
https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=12414
```
_______ TestAlignment.test_basic_series_frame_alignment[numexpr-python] ________
[gw0] linux -- Python 3.6.8 /home/vsts/miniconda3/envs/pandas-dev/bin/python
self = <pandas.tests.computation.test_eval.TestAlignment object at 0x7f5f831aa5c0>
engine = 'numexpr', parser = 'python'
def test_basic_series_frame_alignment(self, engine, parser):
def testit(r_idx_type, c_idx_type, index_name):
df = mkdf(10, 7, data_gen_f=f, r_idx_type=r_idx_type,
c_idx_type=c_idx_type)
index = getattr(df, index_name)
s = Series(np.random.randn(5), index[:5])
if should_warn(s.index, df.index):
with tm.assert_produces_warning(RuntimeWarning):
res = pd.eval('s + df', engine=engine, parser=parser)
else:
res = pd.eval('s + df', engine=engine, parser=parser)
if r_idx_type == 'dt' or c_idx_type == 'dt':
expected = df.add(s) if engine == 'numexpr' else s + df
else:
expected = s + df
assert_frame_equal(res, expected)
# only test dt with dt, otherwise weird joins result
args = product(['i', 'u', 's'], ['i', 'u', 's'], ('index', 'columns'))
with warnings.catch_warnings(record=True):
# avoid warning about comparing strings and ints
warnings.simplefilter("ignore", RuntimeWarning)
for r_idx_type, c_idx_type, index_name in args:
> testit(r_idx_type, c_idx_type, index_name)
pandas/tests/computation/test_eval.py:934:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pandas/tests/computation/test_eval.py:925: in testit
assert_frame_equal(res, expected)
pandas/_libs/testing.pyx:65: in pandas._libs.testing.assert_almost_equal
cpdef assert_almost_equal(a, b,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise_assert_detail(obj, msg, lobj, robj)
E AssertionError: DataFrame.columns are different
E
E DataFrame.columns values are different (100.0 %)
E [left]: Index([ 0, 1, 2, 3, 4,
E '0בקבנ899זק', '28ףן4כנךטש', '63צגהק5שץן', '7סף4נלדקסב', 'אגןנםצככד0',
E 'וכ2ףזאמאןא', 'ל8לצאןחצךר'],
E dtype='object')
E [right]: Index(['0בקבנ899זק', '28ףן4כנךטש', '63צגהק5שץן', '7סף4נלדקסב', 'אגןנםצככד0',
E 'וכ2ףזאמאןא', 'ל8לצאןחצךר', 0, 1, 2,
E 3, 4],
E dtype='object')
pandas/_libs/testing.pyx:178: 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/26729/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26729/timeline | null | 1 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26729.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26729",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/26729.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26729"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26730 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26730/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26730/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26730/events | https://github.com/pandas-dev/pandas/issues/26730 | 453,768,545 | MDU6SXNzdWU0NTM3Njg1NDU= | 26,730 | Series.round behavior with ExtensionArrays | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"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 | [] | null | 16 | 2019-06-08T07:55:45Z | 2019-08-02T14:58:51Z | 2019-07-08T01:52:50Z | NONE | null | @TomAugspurger, in your blog post [Moral Philosophy for pandas or: What is .values?](https://tomaugspurger.github.io/pandas-moral-philosophy.html) you wrote
> In pandas 0.24, we'll (hopefully) have a good answer for what series.values is: a NumPy array or an ExtensionArray. For regular data types represented by NumPy, you'll get an ndarray. For extension types (implemented in pandas or elsewhere) you'll get an ExtensionArray. If you're using Series.values, you can rely on the set of methods common to each.
I just ran into an issue because this doesn't happen in some places.
[pint](https://github.com/hgrecco/pint) is a popular package for working with units, useful for engineering/sci calculations. Recently they introduced an EA called [pint-pandas](https://github.com/hgrecco/pint-pandas) for better interaction with pandas,
it's still a little rough, but very promising.
Here's an failure example:
```
In [2]: from pandas import Series
...: import pint
...: from chemtools import Ch, UREG as ureg
...: from pint import UnitRegistry
...:
...: ureg=UnitRegistry()
...: grams=ureg.g
...:
...: s=Series((1.5*grams,2.5*grams),dtype='pint[g]')
...: s.round()
<...>
AttributeError: 'numpy.ndarray' object has no attribute 'rint'
```
The problem is that `Series.round()` calls `com.values_from_object(self)` instead of the EA-aware `self.values`.
https://github.com/pandas-dev/pandas/blob/cf25c5cd3ab1f647f780167df622c74b737fa8f5/pandas/core/series.py#L2054-L2085
`com.values_from_object(self)` percolates down to ExtensionBlock.to_dense():
https://github.com/pandas-dev/pandas/blob/cf25c5cd3ab1f647f780167df622c74b737fa8f5/pandas/core/internals/blocks.py#L1729-L1730
Which calls `np.asarray(self.values)`, this convert the underlying `PintArray` in to a numpy array with object dtype, which is not numeric, and so numpy complains that `rint` isn't implemented. If `Series.round()` would invoked `round()` on `self.values` directly, the underlying EA implementation would get a chance to implement a suitable method, or delegate to numpy in an appropriate way.
You may want to make life easier for EA developers, by providing a default implementation for things like round(), I suppose it may work in some cases, but then there still needs to be a way for an EA to provide its own implementation of functions like `round`. Many `Series` methods use `com.values_from_object(self)`, and its the the same problem everywhere.
cc @hgrecco (pint developer) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26730/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26730/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26731 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26731/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26731/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26731/events | https://github.com/pandas-dev/pandas/issues/26731 | 453,781,100 | MDU6SXNzdWU0NTM3ODExMDA= | 26,731 | .astype() and Decimal | {
"avatar_url": "https://avatars.githubusercontent.com/u/61256?v=4",
"events_url": "https://api.github.com/users/shadchin/events{/privacy}",
"followers_url": "https://api.github.com/users/shadchin/followers",
"following_url": "https://api.github.com/users/shadchin/following{/other_user}",
"gists_url": "https://api.github.com/users/shadchin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shadchin",
"id": 61256,
"login": "shadchin",
"node_id": "MDQ6VXNlcjYxMjU2",
"organizations_url": "https://api.github.com/users/shadchin/orgs",
"received_events_url": "https://api.github.com/users/shadchin/received_events",
"repos_url": "https://api.github.com/users/shadchin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shadchin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shadchin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shadchin"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "6138b5",
"default": false,
"descript... | closed | false | null | [] | null | 8 | 2019-06-08T10:46:31Z | 2021-11-08T20:13:44Z | 2019-07-18T20:02:30Z | NONE | null | Begin from 0.24.0 next code raise exception
```python
import decimal
import pandas as pd
ser = pd.Series([1, 2])
ser.astype(decimal.Decimal)
```
Traceback
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/shadchin/t_d/venv/local/lib/python2.7/site-packages/pandas/core/generic.py", line 5691, in astype
**kwargs)
File "/home/shadchin/t_d/venv/local/lib/python2.7/site-packages/pandas/core/internals/managers.py", line 531, in astype
return self.apply('astype', dtype=dtype, **kwargs)
File "/home/shadchin/t_d/venv/local/lib/python2.7/site-packages/pandas/core/internals/managers.py", line 395, in apply
applied = getattr(b, f)(**kwargs)
File "/home/shadchin/t_d/venv/local/lib/python2.7/site-packages/pandas/core/internals/blocks.py", line 534, in astype
**kwargs)
File "/home/shadchin/t_d/venv/local/lib/python2.7/site-packages/pandas/core/internals/blocks.py", line 595, in _astype
dtype = pandas_dtype(dtype)
File "/home/shadchin/t_d/venv/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2029, in pandas_dtype
raise TypeError("dtype '{}' not understood".format(dtype))
TypeError: dtype '<class 'decimal.Decimal'>' not understood
```
#### Problem description
This begin from #21160
After was https://github.com/pandas-dev/pandas/blob/0409521665bd436a10aea7e06336066bf07ff057/pandas/core/dtypes/common.py#L2013
Now https://github.com/pandas-dev/pandas/blob/cb00deb94500205fcb27a33cc1d0df79a9727f8b/pandas/core/internals/blocks.py#L595
`pandas_dtype()` does not understand `decimal.Decimal`
Is it expected behavior or regress?
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Linux
OS-release: 4.9.101-26
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.24.2
pytest: None
pip: 19.1.1
setuptools: 41.0.1
Cython: None
numpy: 1.16.4
scipy: None
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/26731/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26731/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26732 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26732/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26732/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26732/events | https://github.com/pandas-dev/pandas/pull/26732 | 453,783,799 | MDExOlB1bGxSZXF1ZXN0Mjg2Mzk3NTA5 | 26,732 | Remove isort dep | {
"avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4",
"events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}",
"followers_url": "https://api.github.com/users/alimcmaster1/followers",
"following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}",
"gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alimcmaster1",
"id": 16733618,
"login": "alimcmaster1",
"node_id": "MDQ6VXNlcjE2NzMzNjE4",
"organizations_url": "https://api.github.com/users/alimcmaster1/orgs",
"received_events_url": "https://api.github.com/users/alimcmaster1/received_events",
"repos_url": "https://api.github.com/users/alimcmaster1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alimcmaster1"
} | [
{
"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": "d93f0b",
"default": false,
"description": ... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 8 | 2019-06-08T11:21:01Z | 2019-12-25T20:36:04Z | 2019-06-08T19:52:20Z | CONTRIBUTOR | null | #LondonPythonSprints
- [x] closes #26661
- [x] tests added / passed
- [x] passes git diff upstream/master -u -- "*.py" | flake8 --diff
cc @datapythonista | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26732/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26732/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26732.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26732",
"merged_at": "2019-06-08T19:52:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26732.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26732"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26733 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26733/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26733/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26733/events | https://github.com/pandas-dev/pandas/pull/26733 | 453,796,045 | MDExOlB1bGxSZXF1ZXN0Mjg2NDA1NTA5 | 26,733 | [TST] Fixturize frame/test_rank.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/14367887?v=4",
"events_url": "https://api.github.com/users/makbigc/events{/privacy}",
"followers_url": "https://api.github.com/users/makbigc/followers",
"following_url": "https://api.github.com/users/makbigc/following{/other_user}",
"gists_url": "https://api.github.com/users/makbigc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/makbigc",
"id": 14367887,
"login": "makbigc",
"node_id": "MDQ6VXNlcjE0MzY3ODg3",
"organizations_url": "https://api.github.com/users/makbigc/orgs",
"received_events_url": "https://api.github.com/users/makbigc/received_events",
"repos_url": "https://api.github.com/users/makbigc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/makbigc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/makbigc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/makbigc"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-06-08T13:49:08Z | 2019-06-08T14:36:08Z | 2019-06-08T14:31:50Z | CONTRIBUTOR | null | xref #22471
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26733/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26733/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26733.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26733",
"merged_at": "2019-06-08T14:31:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26733.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26733"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26734 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26734/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26734/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26734/events | https://github.com/pandas-dev/pandas/issues/26734 | 453,796,191 | MDU6SXNzdWU0NTM3OTYxOTE= | 26,734 | test failures locally with matplotlib: 3.0.3 | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "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": ... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 0 | 2019-06-08T13:50:43Z | 2019-06-08T15:06:47Z | 2019-06-08T15:06:47Z | MEMBER | null | since #26715
```
__________________ TestDataFramePlots.test_df_grid_settings ___________________
[gw1] win32 -- Python 3.7.3 C:\Users\simon\Anaconda3\envs\pandas-dev\python.exe
self = <pandas.tests.plotting.test_frame.TestDataFramePlots object at 0x0000016EE807BD30>
@pytest.mark.slow
def test_df_grid_settings(self):
# Make sure plot defaults to rcParams['axes.grid'] setting, GH 9792
self._check_grid_settings(
DataFrame({'a': [1, 2, 3], 'b': [2, 3, 4]}),
> plotting._core._dataframe_kinds, kws={'x': 'a', 'y': 'b'})
pandas\tests\plotting\test_frame.py:2938:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pandas.tests.plotting.test_frame.TestDataFramePlots object at 0x0000016EE807BD30>
obj = a b
0 1 2
1 2 3
2 3 4, kinds = ['scatter', 'hexbin']
kws = {'x': 'a', 'y': 'b'}
def _check_grid_settings(self, obj, kinds, kws={}):
# Make sure plot defaults to rcParams['axes.grid'] setting, GH 9792
import matplotlib as mpl
def is_grid_on():
xticks = self.plt.gca().xaxis.get_major_ticks()
yticks = self.plt.gca().yaxis.get_major_ticks()
# for mpl 2.2.2, gridOn and gridline.get_visible disagree.
# for new MPL, they are the same.
if self.mpl_ge_3_0_0:
xoff = all(not g.gridline.get_visible() for g in xticks)
yoff = all(not g.gridline.get_visible() for g in yticks)
else:
xoff = all(not g.gridOn for g in xticks)
yoff = all(not g.gridOn for g in yticks)
return not (xoff and yoff)
spndx = 1
for kind in kinds:
self.plt.subplot(1, 4 * len(kinds), spndx)
spndx += 1
mpl.rc('axes', grid=False)
obj.plot(kind=kind, **kws)
> assert not is_grid_on()
E AssertionError
```
cc @TomAugspurger
<details>
INSTALLED VERSIONS
------------------
commit: 8fe9f69d213a58daa45fbaef2d248a546ef2b2b1
python: 3.7.3.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8
LOCALE: None.None
pandas: 0.25.0.dev0+686.g8fe9f69d2
pytest: 4.5.0
pip: 19.1.1
setuptools: 40.6.3
Cython: 0.29.7
numpy: 1.16.3
scipy: 1.2.1
pyarrow: 0.11.1
xarray: 0.12.1
IPython: 7.5.0
sphinx: 2.0.1
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: 1.2.1
tables: 3.5.1
numexpr: 2.6.9
feather: None
matplotlib: 3.0.3
openpyxl: 2.6.2
xlrd: 1.2.0
xlwt: 1.3.0
xlsxwriter: 1.1.8
lxml.etree: 4.3.3
bs4: 4.7.1
html5lib: 1.0.1
sqlalchemy: 1.3.3
pymysql: None
psycopg2: None
jinja2: 2.10.1
s3fs: 0.2.1
fastparquet: 0.3.0
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/26734/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26734/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26735 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26735/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26735/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26735/events | https://github.com/pandas-dev/pandas/pull/26735 | 453,797,256 | MDExOlB1bGxSZXF1ZXN0Mjg2NDA2MzY5 | 26,735 | TST: return pytest MarkDecorator from td.skip_if_no | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-06-08T14:01:56Z | 2019-06-09T17:48:35Z | 2019-06-08T19:51:09Z | MEMBER | null | `skip_if_no` returns a decorator that applies a pytest mark.
pytest marks are decorators and can be applied directly to test functions.
This PR changes `skip_if_no` to return just the pytest mark.
`skip_if_no` can then be used in (pytest.param(... , marks=) situations. eg. pandas/tests/io/test_html.py
could also be used in pandas/tests/io/test_excel.py but not done here to avoid overlapping PRs.
`safe_import` could potentially be renamed `_safe_import` since would not be needed directly in tests.
cc @WillAyd | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26735/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26735/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26735.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26735",
"merged_at": "2019-06-08T19:51:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26735.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26735"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26736 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26736/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26736/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26736/events | https://github.com/pandas-dev/pandas/pull/26736 | 453,797,335 | MDExOlB1bGxSZXF1ZXN0Mjg2NDA2NDIx | 26,736 | read_excel and Excel File Engine conflict | {
"avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4",
"events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}",
"followers_url": "https://api.github.com/users/alimcmaster1/followers",
"following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}",
"gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alimcmaster1",
"id": 16733618,
"login": "alimcmaster1",
"node_id": "MDQ6VXNlcjE2NzMzNjE4",
"organizations_url": "https://api.github.com/users/alimcmaster1/orgs",
"received_events_url": "https://api.github.com/users/alimcmaster1/received_events",
"repos_url": "https://api.github.com/users/alimcmaster1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alimcmaster1"
} | [
{
"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": "bfe5... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 6 | 2019-06-08T14:02:54Z | 2019-12-25T20:35:17Z | 2019-06-10T21:55:10Z | CONTRIBUTOR | null | - [x] closes #26566
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
cc. @WillAyd
Note I only decided to raise an error when the engine specified to `read_excel` was different to that of the ExcelFile - otherwise around 15 test cases would need to be changed - let me know what you think
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26736/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26736/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26736.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26736",
"merged_at": "2019-06-10T21:55:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26736.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26736"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26737 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26737/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26737/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26737/events | https://github.com/pandas-dev/pandas/pull/26737 | 453,799,546 | MDExOlB1bGxSZXF1ZXN0Mjg2NDA3OTI1 | 26,737 | TST: Fix mpl 3.0.3 grid settings test failure | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-06-08T14:27:11Z | 2019-06-08T15:08:04Z | 2019-06-08T15:06:47Z | MEMBER | null | - [ ] closes #26734
- [ ] tests added / passed
- [ ] 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/26737/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26737/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26737.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26737",
"merged_at": "2019-06-08T15:06:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26737.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26737"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26738 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26738/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26738/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26738/events | https://github.com/pandas-dev/pandas/pull/26738 | 453,802,595 | MDExOlB1bGxSZXF1ZXN0Mjg2NDA5OTc0 | 26,738 | CLN: remove Panel-specific parts of core.generic | {
"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"
} | [] | closed | false | null | [] | null | 3 | 2019-06-08T14:58:14Z | 2019-06-10T08:00:40Z | 2019-06-09T18:42:52Z | MEMBER | null | xref #25632
removed small amount of code related to self.ndim > 2
also a few changes to make the NotImplemented errors for self.ndim>2 more consistent and added test for these. (might be worth having a decorator for these) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26738/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26738/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26738.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26738",
"merged_at": "2019-06-09T18:42:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26738.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26738"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26739 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26739/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26739/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26739/events | https://github.com/pandas-dev/pandas/pull/26739 | 453,804,196 | MDExOlB1bGxSZXF1ZXN0Mjg2NDExMDE5 | 26,739 | TST/CLN: remove TestData from tests\frame\test_rank.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "207de5",
"d... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-06-08T15:15:58Z | 2019-06-08T17:04:06Z | 2019-06-08T17:03:15Z | MEMBER | null | follow-on from #26733
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26739/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26739/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26739.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26739",
"merged_at": "2019-06-08T17:03:15Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26739.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26739"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26740 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26740/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26740/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26740/events | https://github.com/pandas-dev/pandas/pull/26740 | 453,829,536 | MDExOlB1bGxSZXF1ZXN0Mjg2NDI3Mjkx | 26,740 | Move ExcelWriter Tests | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"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": "bfe5bf",
"d... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 6 | 2019-06-08T19:56:05Z | 2019-06-09T01:06:17Z | 2019-06-08T21:25:20Z | MEMBER | null | Because read_excel and ExcelWriter have different parametrization requirements it makes things clearer for now to separate these out.
Maybe longer term they can be more intelligently combined but for now I think this still helps clean up requirements for adding new engines
@simonjayhawkins | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26740/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26740/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26740.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26740",
"merged_at": "2019-06-08T21:25:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26740.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26740"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26741 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26741/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26741/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26741/events | https://github.com/pandas-dev/pandas/pull/26741 | 453,833,997 | MDExOlB1bGxSZXF1ZXN0Mjg2NDI5OTEw | 26,741 | Remove isort dep | {
"avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4",
"events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}",
"followers_url": "https://api.github.com/users/alimcmaster1/followers",
"following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}",
"gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alimcmaster1",
"id": 16733618,
"login": "alimcmaster1",
"node_id": "MDQ6VXNlcjE2NzMzNjE4",
"organizations_url": "https://api.github.com/users/alimcmaster1/orgs",
"received_events_url": "https://api.github.com/users/alimcmaster1/received_events",
"repos_url": "https://api.github.com/users/alimcmaster1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alimcmaster1"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 4 | 2019-06-08T20:43:36Z | 2019-12-25T20:32:50Z | 2019-06-08T21:44:11Z | CONTRIBUTOR | null | - Follow up from #26732 ( i missed a file )
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26741/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26741/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26741.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26741",
"merged_at": "2019-06-08T21:44:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26741.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26741"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26742 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26742/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26742/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26742/events | https://github.com/pandas-dev/pandas/issues/26742 | 453,837,015 | MDU6SXNzdWU0NTM4MzcwMTU= | 26,742 | ENH: allow prepending indices using set_index | {
"avatar_url": "https://avatars.githubusercontent.com/u/3716227?v=4",
"events_url": "https://api.github.com/users/nicodv/events{/privacy}",
"followers_url": "https://api.github.com/users/nicodv/followers",
"following_url": "https://api.github.com/users/nicodv/following{/other_user}",
"gists_url": "https://api.github.com/users/nicodv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nicodv",
"id": 3716227,
"login": "nicodv",
"node_id": "MDQ6VXNlcjM3MTYyMjc=",
"organizations_url": "https://api.github.com/users/nicodv/orgs",
"received_events_url": "https://api.github.com/users/nicodv/received_events",
"repos_url": "https://api.github.com/users/nicodv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nicodv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nicodv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nicodv"
} | [
{
"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... | open | false | null | [] | null | 13 | 2019-06-08T21:21:48Z | 2021-07-10T02:33:59Z | null | NONE | null | I'd like to be able to _prepend_ indices to existing ones using `.set_index()`, in the same vein as the `append` argument.
This avoid having to do the awkward alternatives:
- `.reset_index().set_index(...)`
- `.set_index(append=True).swaplevel(...)` or `.set_index(append=True).reorder_levels(...)`
My first suggestion is to add a `prepend` keyword, mutually exclusive with `append`, but discussion is welcomed.
Associated PR: https://github.com/pandas-dev/pandas/pull/26724 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26742/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26742/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26743 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26743/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26743/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26743/events | https://github.com/pandas-dev/pandas/issues/26743 | 453,838,143 | MDU6SXNzdWU0NTM4MzgxNDM= | 26,743 | groupby.agg should refuse non-aggregation operations | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [] | closed | false | null | [] | null | 1 | 2019-06-08T21:36:15Z | 2019-07-14T22:37:40Z | 2019-07-14T22:37:33Z | NONE | null | Since `groupby.agg()` is, ["by definition a reducer."](https://github.com/pandas-dev/pandas/issues/14741#issuecomment-262953242) (in other words, produces one value per series in a group), it seems odd that it accepts non-aggregating operations such as 'rank':
Related to https://github.com/pandas-dev/pandas/issues/22509#issuecomment-500103115 where `groupby.transform('rank')` applies the wrong code path to 'rank'
because it is treated as an aggregator (array->scalar) instead of a shape-preserving operation.
```python
In [82]: df=pd.DataFrame(dict(price=[1,2,2,3,3,3],cost=(1,2,1,3,2,1)))
...: df
Out[82]:
price cost
0 1 1
1 2 2
2 2 1
3 3 3
4 3 2
5 3 1
In [83]: g=df.groupby('price')
...: g.agg('rank').astype(int)
Out[83]:
cost
0 1
1 2
2 1
3 3
4 2
5 1```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26743/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26743/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26744 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26744/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26744/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26744/events | https://github.com/pandas-dev/pandas/pull/26744 | 453,841,470 | MDExOlB1bGxSZXF1ZXN0Mjg2NDM0NTA1 | 26,744 | Deprecated Series.ftype, Series.ftypes and DataFrame.ftypes features | {
"avatar_url": "https://avatars.githubusercontent.com/u/20305526?v=4",
"events_url": "https://api.github.com/users/thiviyanT/events{/privacy}",
"followers_url": "https://api.github.com/users/thiviyanT/followers",
"following_url": "https://api.github.com/users/thiviyanT/following{/other_user}",
"gists_url": "https://api.github.com/users/thiviyanT/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/thiviyanT",
"id": 20305526,
"login": "thiviyanT",
"node_id": "MDQ6VXNlcjIwMzA1NTI2",
"organizations_url": "https://api.github.com/users/thiviyanT/orgs",
"received_events_url": "https://api.github.com/users/thiviyanT/received_events",
"repos_url": "https://api.github.com/users/thiviyanT/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/thiviyanT/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thiviyanT/subscriptions",
"type": "User",
"url": "https://api.github.com/users/thiviyanT"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 5 | 2019-06-08T22:21:44Z | 2019-06-11T00:19:03Z | 2019-06-11T00:18:58Z | CONTRIBUTOR | null | Deprecation of `Series.ftype`, `Series.ftypes` and `DataFrame.ftypes`
closes #26705
- [x] Updated the docstrings for the sphinx documentation
- [x] Updated the unit tests for testing deprecation warnings | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26744/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26744/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26744.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26744",
"merged_at": "2019-06-11T00:18:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26744.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26744"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26745 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26745/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26745/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26745/events | https://github.com/pandas-dev/pandas/issues/26745 | 453,845,993 | MDU6SXNzdWU0NTM4NDU5OTM= | 26,745 | PLOT: Split plotting tests | {
"avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4",
"events_url": "https://api.github.com/users/datapythonista/events{/privacy}",
"followers_url": "https://api.github.com/users/datapythonista/followers",
"following_url": "https://api.github.com/users/datapythonista/following{/other_user}",
"gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/datapythonista",
"id": 10058240,
"login": "datapythonista",
"node_id": "MDQ6VXNlcjEwMDU4MjQw",
"organizations_url": "https://api.github.com/users/datapythonista/orgs",
"received_events_url": "https://api.github.com/users/datapythonista/received_events",
"repos_url": "https://api.github.com/users/datapythonista/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions",
"type": "User",
"url": "https://api.github.com/users/datapythonista"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "8AE234",
"d... | closed | false | null | [] | null | 3 | 2019-06-08T23:39:44Z | 2020-09-23T18:04:06Z | 2020-09-23T18:04:06Z | MEMBER | null | #26414 splitted the pandas plotting code into two different modules:
- `pandas.plotting`: Generic plotting framework that defined an API (with docs) and is able to plot with a selectable backend (will be selectable with a pandas option)
- `pandas.plotting._matplotlib`: Matplotlib backend
Our tests in `pandas/tests/plotting` are currently testing both together (calling the pandas plotting framework, which will call the matplotlib backend). But ideally we'd like to have two different groups of tests:
- One with the current code but calling the matplotlib backend directly
- A test set of the generic pandas plotting framework, using a mock backend (needs to be implemented)
@jreback let me know if this makes sense to you | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26745/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26745/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26746 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26746/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26746/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26746/events | https://github.com/pandas-dev/pandas/pull/26746 | 453,847,316 | MDExOlB1bGxSZXF1ZXN0Mjg2NDM4NDQ4 | 26,746 | Read from HDF with empty `where` throws an error | {
"avatar_url": "https://avatars.githubusercontent.com/u/19474336?v=4",
"events_url": "https://api.github.com/users/BeforeFlight/events{/privacy}",
"followers_url": "https://api.github.com/users/BeforeFlight/followers",
"following_url": "https://api.github.com/users/BeforeFlight/following{/other_user}",
"gists_url": "https://api.github.com/users/BeforeFlight/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/BeforeFlight",
"id": 19474336,
"login": "BeforeFlight",
"node_id": "MDQ6VXNlcjE5NDc0MzM2",
"organizations_url": "https://api.github.com/users/BeforeFlight/orgs",
"received_events_url": "https://api.github.com/users/BeforeFlight/received_events",
"repos_url": "https://api.github.com/users/BeforeFlight/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/BeforeFlight/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BeforeFlight/subscriptions",
"type": "User",
"url": "https://api.github.com/users/BeforeFlight"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "5319e7",
"default": false,
"description": "r... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 9 | 2019-06-09T00:05:52Z | 2019-06-11T12:20:37Z | 2019-06-11T00:14:59Z | CONTRIBUTOR | null | - [x] closes #26610
- [x] tests added / passed
- [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/26746/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26746/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26746.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26746",
"merged_at": "2019-06-11T00:14:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26746.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26746"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26747 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26747/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26747/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26747/events | https://github.com/pandas-dev/pandas/issues/26747 | 453,848,317 | MDU6SXNzdWU0NTM4NDgzMTc= | 26,747 | API: Define API for pandas plotting backends | {
"avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4",
"events_url": "https://api.github.com/users/datapythonista/events{/privacy}",
"followers_url": "https://api.github.com/users/datapythonista/followers",
"following_url": "https://api.github.com/users/datapythonista/following{/other_user}",
"gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/datapythonista",
"id": 10058240,
"login": "datapythonista",
"node_id": "MDQ6VXNlcjEwMDU4MjQw",
"organizations_url": "https://api.github.com/users/datapythonista/orgs",
"received_events_url": "https://api.github.com/users/datapythonista/received_events",
"repos_url": "https://api.github.com/users/datapythonista/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions",
"type": "User",
"url": "https://api.github.com/users/datapythonista"
} | [
{
"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": "AD7FA8",
"default": false,
"description": nul... | open | false | null | [] | null | 44 | 2019-06-09T00:23:15Z | 2021-07-10T02:35:53Z | null | MEMBER | null | In #26414 we splitted the pandas plotting module into a general plotting framework able to call different backends and the current matplotlib backends. The idea is that other backends can be implemented in a simpler way, and be used with a common API by pandas users.
The API defined by the current matplotlib backend includes the objects listed next, but this API can probably be simplified. Here is the list with questions/proposals:
Non-controversial methods to keep in the API (They provide the `Series.plot(kind='line')`... functionality):
- LinePlot
- BarPlot
- BarhPlot
- HistPlot
- BoxPlot
- KdePlot
- AreaPlot
- PiePlot
- ScatterPlot
- HexBinPlot
Plotting functions provided in pandas (e.g. `pandas.plotting.andrews_curves(df)`)
- andrews_curves
- autocorrelation_plot
- bootstrap_plot
- lag_plot
- parallel_coordinates
- radviz
- scatter_matrix
- table
Should those be part of the API and other backends should also implement them? Would it make sense to convert to the format `.plot` (e.g. `DataFrame.plot(kind='autocorrelation')`...)? Does it make sense to keep out of the API, or move to a third-party module?
Redundant methods that can possibly be removed:
- hist_series
- hist_frame
- boxplot
- boxplot_frame
- boxplot_frame_groupby
In the case of `boxplot`, we currently have several ways of generating a plot (calling mainly the same code):
1. `DataFrame.plot.boxplot()`
2. `DataFrame.plot(kind='box')`
3. `DataFrame.boxplot()`
4. `pandas.plotting.boxplot(df)`
Personally, I'd deprecate number 4, and for number 3, deprecate or at least not require a separate `boxplot_frame` method in the backend, but try to reuse `BoxPlot` (for number 3 comments, same applies to `hist`).
For `boxplot_frame_groupby`, didn't check in detail, but not sure if `BoxPlot` could be reused for this?
Functions to register converters:
- register
- deregister
Do those make sense for other backends?
Deprecated in pandas 0.23, to be removed:
- tsplot
To see what each of these functions do in practise, it may be useful this notebook by @liirusuk: https://github.com/python-sprints/pandas_plotting_library/blob/master/AllPlottingExamples.ipynb
CC: @pandas-dev/pandas-core @tacaswell, @jakevdp, @philippjfr, @PatrikHlobil | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26747/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26747/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26748 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26748/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26748/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26748/events | https://github.com/pandas-dev/pandas/issues/26748 | 453,848,868 | MDU6SXNzdWU0NTM4NDg4Njg= | 26,748 | PLOT: Fix imports of plotting | {
"avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4",
"events_url": "https://api.github.com/users/datapythonista/events{/privacy}",
"followers_url": "https://api.github.com/users/datapythonista/followers",
"following_url": "https://api.github.com/users/datapythonista/following{/other_user}",
"gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/datapythonista",
"id": 10058240,
"login": "datapythonista",
"node_id": "MDQ6VXNlcjEwMDU4MjQw",
"organizations_url": "https://api.github.com/users/datapythonista/orgs",
"received_events_url": "https://api.github.com/users/datapythonista/received_events",
"repos_url": "https://api.github.com/users/datapythonista/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions",
"type": "User",
"url": "https://api.github.com/users/datapythonista"
} | [
{
"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": "207de5",
"default": false,
"description": nul... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 0 | 2019-06-09T00:32:44Z | 2019-06-11T18:46:38Z | 2019-06-11T18:46:38Z | MEMBER | null | After #26745 we should be able to move imports in `pandas/plotting/_matplotlib/*` to the top of the file, as they shouldn't create cycles.
See https://github.com/pandas-dev/pandas/pull/26414#discussion_r291821639 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26748/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26748/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26749 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26749/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26749/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26749/events | https://github.com/pandas-dev/pandas/pull/26749 | 453,848,899 | MDExOlB1bGxSZXF1ZXN0Mjg2NDM5NDk4 | 26,749 | STYLE: Isort __init__ files | {
"avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4",
"events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}",
"followers_url": "https://api.github.com/users/alimcmaster1/followers",
"following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}",
"gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alimcmaster1",
"id": 16733618,
"login": "alimcmaster1",
"node_id": "MDQ6VXNlcjE2NzMzNjE4",
"organizations_url": "https://api.github.com/users/alimcmaster1/orgs",
"received_events_url": "https://api.github.com/users/alimcmaster1/received_events",
"repos_url": "https://api.github.com/users/alimcmaster1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alimcmaster1"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 5 | 2019-06-09T00:33:27Z | 2019-12-25T20:35:28Z | 2019-06-28T15:37:40Z | CONTRIBUTOR | null | - [x] related to #23334
- [x] passes git diff upstream/master -u -- "*.py" | flake8 --diff | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26749/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26749/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26749.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26749",
"merged_at": "2019-06-28T15:37:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26749.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26749"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26750 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26750/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26750/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26750/events | https://github.com/pandas-dev/pandas/pull/26750 | 453,850,734 | MDExOlB1bGxSZXF1ZXN0Mjg2NDQwNjM3 | 26,750 | move late imports to top | {
"avatar_url": "https://avatars.githubusercontent.com/u/11509423?v=4",
"events_url": "https://api.github.com/users/xcz011/events{/privacy}",
"followers_url": "https://api.github.com/users/xcz011/followers",
"following_url": "https://api.github.com/users/xcz011/following{/other_user}",
"gists_url": "https://api.github.com/users/xcz011/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/xcz011",
"id": 11509423,
"login": "xcz011",
"node_id": "MDQ6VXNlcjExNTA5NDIz",
"organizations_url": "https://api.github.com/users/xcz011/orgs",
"received_events_url": "https://api.github.com/users/xcz011/received_events",
"repos_url": "https://api.github.com/users/xcz011/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/xcz011/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xcz011/subscriptions",
"type": "User",
"url": "https://api.github.com/users/xcz011"
} | [
{
"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": "207de5",
"default": false,
"description": nul... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 9 | 2019-06-09T01:09:33Z | 2019-06-11T18:46:45Z | 2019-06-11T18:46:38Z | CONTRIBUTOR | null | - [x] closes #26748
- [ ] tests added / passed
- [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/26750/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26750/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26750.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26750",
"merged_at": "2019-06-11T18:46:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26750.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26750"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26751 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26751/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26751/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26751/events | https://github.com/pandas-dev/pandas/pull/26751 | 453,877,606 | MDExOlB1bGxSZXF1ZXN0Mjg2NDU3NzIy | 26,751 | Deprecated Series.ftype, Series.ftypes and DataFrame.ftypes features | {
"avatar_url": "https://avatars.githubusercontent.com/u/20305526?v=4",
"events_url": "https://api.github.com/users/thiviyanT/events{/privacy}",
"followers_url": "https://api.github.com/users/thiviyanT/followers",
"following_url": "https://api.github.com/users/thiviyanT/following{/other_user}",
"gists_url": "https://api.github.com/users/thiviyanT/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/thiviyanT",
"id": 20305526,
"login": "thiviyanT",
"node_id": "MDQ6VXNlcjIwMzA1NTI2",
"organizations_url": "https://api.github.com/users/thiviyanT/orgs",
"received_events_url": "https://api.github.com/users/thiviyanT/received_events",
"repos_url": "https://api.github.com/users/thiviyanT/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/thiviyanT/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thiviyanT/subscriptions",
"type": "User",
"url": "https://api.github.com/users/thiviyanT"
} | [] | closed | false | null | [] | null | 3 | 2019-06-09T08:54:22Z | 2019-06-09T11:39:24Z | 2019-06-09T11:39:24Z | CONTRIBUTOR | null | Deprecation of `Series.ftype`, `Series.ftypes` and `DataFrame.ftypes`
closes #26705
- [x] Updated the docstrings for the sphinx documentation
- [x] Updated the unit tests for testing deprecation warnings
- [x] Added Git Issue Number to unit 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/26751/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26751/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26751.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26751",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/26751.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26751"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26752 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26752/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26752/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26752/events | https://github.com/pandas-dev/pandas/pull/26752 | 453,882,291 | MDExOlB1bGxSZXF1ZXN0Mjg2NDYwNjcy | 26,752 | DOC: Skip creating redirects if docs build fails | {
"avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4",
"events_url": "https://api.github.com/users/datapythonista/events{/privacy}",
"followers_url": "https://api.github.com/users/datapythonista/followers",
"following_url": "https://api.github.com/users/datapythonista/following{/other_user}",
"gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/datapythonista",
"id": 10058240,
"login": "datapythonista",
"node_id": "MDQ6VXNlcjEwMDU4MjQw",
"organizations_url": "https://api.github.com/users/datapythonista/orgs",
"received_events_url": "https://api.github.com/users/datapythonista/received_events",
"repos_url": "https://api.github.com/users/datapythonista/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions",
"type": "User",
"url": "https://api.github.com/users/datapythonista"
} | [
{
"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 Integratio... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 5 | 2019-06-09T10:00:01Z | 2019-06-09T21:51:58Z | 2019-06-09T21:51:39Z | MEMBER | null | When the doc build fails, we still try to create the redirected pages, which fails, and adds to the log a misleading error (it looks in the logs like the problem is not the original error but that something is failing in the redirects).
See for example https://travis-ci.org/pandas-dev/pandas/jobs/542714631:
```
Recursion error:
maximum recursion depth exceeded while calling a Python object
This can happen with very large or deeply nested source files. You can carefully increase the default Python recursion limit of 1000 in conf.py with e.g.:
import sys; sys.setrecursionlimit(1500)
Traceback (most recent call last):
File "./make.py", line 341, in <module>
sys.exit(main())
File "./make.py", line 337, in main
return getattr(builder, args.command)()
File "./make.py", line 226, in html
self._add_redirects()
File "./make.py", line 209, in _add_redirects
with open(path, 'w') as moved_page_fd:
FileNotFoundError: [Errno 2] No such file or directory: '/home/travis/build/pandas-dev/pandas/doc/build/html/generated/pandas.api.extensions.ExtensionArray.argsort.html'
```
Here I make the redirects be created only if the doc build succeeded. Also opening the browser if we're building a single page. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26752/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26752/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26752.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26752",
"merged_at": "2019-06-09T21:51:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26752.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26752"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26753 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26753/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26753/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26753/events | https://github.com/pandas-dev/pandas/pull/26753 | 453,888,974 | MDExOlB1bGxSZXF1ZXN0Mjg2NDY1MDQ0 | 26,753 | PLOT: Add option to specify the plotting backend | {
"avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4",
"events_url": "https://api.github.com/users/datapythonista/events{/privacy}",
"followers_url": "https://api.github.com/users/datapythonista/followers",
"following_url": "https://api.github.com/users/datapythonista/following{/other_user}",
"gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/datapythonista",
"id": 10058240,
"login": "datapythonista",
"node_id": "MDQ6VXNlcjEwMDU4MjQw",
"organizations_url": "https://api.github.com/users/datapythonista/orgs",
"received_events_url": "https://api.github.com/users/datapythonista/received_events",
"repos_url": "https://api.github.com/users/datapythonista/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions",
"type": "User",
"url": "https://api.github.com/users/datapythonista"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 5 | 2019-06-09T11:33:34Z | 2019-06-21T09:37:18Z | 2019-06-21T09:37:18Z | MEMBER | null | - [x] closes #14130
- [x] tets added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Adding option to specify the plotting backend. This does not change the plotting API, so for now backends are expected to implement the existing methods in the matplotlib API. This API is expected to change as a result of the discussions in #26747.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26753/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26753/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26753.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26753",
"merged_at": "2019-06-21T09:37:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26753.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26753"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26754 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26754/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26754/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26754/events | https://github.com/pandas-dev/pandas/pull/26754 | 453,900,786 | MDExOlB1bGxSZXF1ZXN0Mjg2NDcyODE5 | 26,754 | DOC: warning on look-ahead bias with resampling | {
"avatar_url": "https://avatars.githubusercontent.com/u/3621629?v=4",
"events_url": "https://api.github.com/users/0x0L/events{/privacy}",
"followers_url": "https://api.github.com/users/0x0L/followers",
"following_url": "https://api.github.com/users/0x0L/following{/other_user}",
"gists_url": "https://api.github.com/users/0x0L/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/0x0L",
"id": 3621629,
"login": "0x0L",
"node_id": "MDQ6VXNlcjM2MjE2Mjk=",
"organizations_url": "https://api.github.com/users/0x0L/orgs",
"received_events_url": "https://api.github.com/users/0x0L/received_events",
"repos_url": "https://api.github.com/users/0x0L/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/0x0L/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0x0L/subscriptions",
"type": "User",
"url": "https://api.github.com/users/0x0L"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-06-09T14:03:32Z | 2019-06-12T18:52:34Z | 2019-06-12T18:52:30Z | CONTRIBUTOR | null | - [x] closes #11123
- [ ] tests added / passed
- [ ] 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/26754/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26754/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26754.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26754",
"merged_at": "2019-06-12T18:52:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26754.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26754"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26755 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26755/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26755/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26755/events | https://github.com/pandas-dev/pandas/pull/26755 | 453,908,108 | MDExOlB1bGxSZXF1ZXN0Mjg2NDc3NDU3 | 26,755 | Split test_excel into submodule | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"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": "bfe5bf",
"d... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 7 | 2019-06-09T15:18:50Z | 2019-06-10T02:27:44Z | 2019-06-09T21:51:12Z | MEMBER | null | - [X] closes #24472
@simonjayhawkins
Just moved everything as is. Some of the class structures are unnecessary now but leaving for follow ups | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26755/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26755/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26755.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26755",
"merged_at": "2019-06-09T21:51:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26755.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26755"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26756 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26756/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26756/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26756/events | https://github.com/pandas-dev/pandas/pull/26756 | 453,940,624 | MDExOlB1bGxSZXF1ZXN0Mjg2NDk5MjI2 | 26,756 | TST/CLN: reuse float_frame fixture in tests\io\formats\test_format.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "207de5",
"d... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 2 | 2019-06-09T21:17:33Z | 2019-06-10T07:59:54Z | 2019-06-09T21:58:23Z | MEMBER | null | follow-on from #26603
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26756/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26756/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26756.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26756",
"merged_at": "2019-06-09T21:58:23Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26756.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26756"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26757 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26757/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26757/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26757/events | https://github.com/pandas-dev/pandas/pull/26757 | 453,967,597 | MDExOlB1bGxSZXF1ZXN0Mjg2NTE3OTIy | 26,757 | BLD: fix build warnings | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 9 | 2019-06-10T01:58:04Z | 2019-06-12T16:52:48Z | 2019-06-12T15:44:56Z | MEMBER | null | xref #25995, #17936
AFAICT these warnings are caused by cython casting `len(some_ndarray)` to `int` or `Py_ssize_t` but casting `len(some_memoryview)` to `size_t`. Easiest fix is to declare the affected len variables as `size_t` since we know they'll never be negative. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26757/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26757/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26757.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26757",
"merged_at": "2019-06-12T15:44:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26757.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26757"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26758 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26758/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26758/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26758/events | https://github.com/pandas-dev/pandas/pull/26758 | 453,981,584 | MDExOlB1bGxSZXF1ZXN0Mjg2NTI4MTE4 | 26,758 | BLD: fix build warnings in tslib by casting explicitly to object | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "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": "207de5",
"default": false,
... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 2 | 2019-06-10T03:20:47Z | 2019-06-10T13:56:20Z | 2019-06-10T12:30:42Z | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] 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/26758/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26758/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26758.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26758",
"merged_at": "2019-06-10T12:30:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26758.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26758"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26759 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26759/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26759/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26759/events | https://github.com/pandas-dev/pandas/pull/26759 | 453,983,372 | MDExOlB1bGxSZXF1ZXN0Mjg2NTI5NDk2 | 26,759 | BLD: use unsigned instead of signed for lengths, avoid build warnings | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 6 | 2019-06-10T03:30:26Z | 2019-06-22T18:07:48Z | 2019-06-22T17:19:03Z | MEMBER | null | I'm much more confident about the other two BLD PRs (#26757, #26758) than this, largely because:
- [ ] in a couple of comments here I wrote that a certain term should always be non-negative. I haven't actually confirmed that this is always the case
- [ ] This changed things from int64_t to uint64_t, but could also reasonably have changed them to size_t. I don't have a compelling reason for the correctness of the uint64_t choice. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26759/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26759/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26759.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26759",
"merged_at": "2019-06-22T17:19:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26759.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26759"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26760 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26760/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26760/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26760/events | https://github.com/pandas-dev/pandas/issues/26760 | 453,990,562 | MDU6SXNzdWU0NTM5OTA1NjI= | 26,760 | Fix implicitly registered converter warning | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "e11d21",
"default": false,
"description": "Blocking issue or pull request for an upcoming release",
"id": 77550281,
"name": "Blocker",
"node_id": "MDU6TGFiZWw3NzU1MDI4MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Blocker"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 0 | 2019-06-10T04:14:03Z | 2019-06-21T02:06:35Z | 2019-06-21T02:06:35Z | CONTRIBUTOR | null | This shouldn't warn, since it's a Series.plot.
The warning should only show up for `Axes.plot(datetimelike, ndarray)`.
```python
In [1]: import pandas as pd
In [2]: import numpy as np
In [3]: ts = pd.Series(np.random.randn(1000),
...: index=pd.date_range('1/1/2000', periods=1000))
...: ts = ts.cumsum()
In [4]: ts.plot()
/Users/taugspurger/sandbox/pandas/pandas/plotting/_matplotlib/converter.py:96: FutureWarning: Using an implicitly registered datetime converter for a matplotlib plotting method. The converter was registered by pandas on import. Future versions of pandas will require you to explicitly register
matplotlib converters.
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26760/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26760/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26761 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26761/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26761/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26761/events | https://github.com/pandas-dev/pandas/issues/26761 | 453,998,844 | MDU6SXNzdWU0NTM5OTg4NDQ= | 26,761 | to_sql Out of bounds nanosecond timestamp | {
"avatar_url": "https://avatars.githubusercontent.com/u/11552966?v=4",
"events_url": "https://api.github.com/users/gonghwa/events{/privacy}",
"followers_url": "https://api.github.com/users/gonghwa/followers",
"following_url": "https://api.github.com/users/gonghwa/following{/other_user}",
"gists_url": "https://api.github.com/users/gonghwa/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gonghwa",
"id": 11552966,
"login": "gonghwa",
"node_id": "MDQ6VXNlcjExNTUyOTY2",
"organizations_url": "https://api.github.com/users/gonghwa/orgs",
"received_events_url": "https://api.github.com/users/gonghwa/received_events",
"repos_url": "https://api.github.com/users/gonghwa/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gonghwa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gonghwa/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gonghwa"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "5319e7",
"default": false,
"description": "to_sql, r... | closed | false | null | [] | null | 13 | 2019-06-10T05:03:03Z | 2020-03-30T16:24:41Z | 2020-03-30T16:24:41Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
# Your code here
df.to_sql(TableName,index=False,if_exists="replace")
```
#### Problem description
I upgraded my pandas to 0.24.2 recently and encountered below error, which will not pop before.
When I am using python to transfer some data to sql server. Some date is set to 9999-12-31 and it will cause error: OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 9999-12-31 00:00:00
#### Expected Output
We should be able to transfer those date. Thanks
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.0.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 69 Stepping 1, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.24.2
pytest: 3.8.0
pip: 19.0.2
setuptools: 40.2.0
Cython: 0.28.5
numpy: 1.16.2
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 6.5.0
sphinx: 1.7.9
patsy: 0.5.0
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: 1.2.1
tables: 3.4.4
numexpr: 2.6.8
feather: None
matplotlib: 2.2.3
openpyxl: 2.5.6
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 1.1.0
lxml.etree: 4.2.5
bs4: 4.6.3
html5lib: 1.0.1
sqlalchemy: 1.2.11
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</details>
| {
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26761/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26761/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26762 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26762/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26762/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26762/events | https://github.com/pandas-dev/pandas/issues/26762 | 454,026,580 | MDU6SXNzdWU0NTQwMjY1ODA= | 26,762 | duplicated() (and drop_duplicates()) incorrectly identifying unique/different rows as duplicates | {
"avatar_url": "https://avatars.githubusercontent.com/u/734159?v=4",
"events_url": "https://api.github.com/users/drewhouston/events{/privacy}",
"followers_url": "https://api.github.com/users/drewhouston/followers",
"following_url": "https://api.github.com/users/drewhouston/following{/other_user}",
"gists_url": "https://api.github.com/users/drewhouston/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/drewhouston",
"id": 734159,
"login": "drewhouston",
"node_id": "MDQ6VXNlcjczNDE1OQ==",
"organizations_url": "https://api.github.com/users/drewhouston/orgs",
"received_events_url": "https://api.github.com/users/drewhouston/received_events",
"repos_url": "https://api.github.com/users/drewhouston/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/drewhouston/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/drewhouston/subscriptions",
"type": "User",
"url": "https://api.github.com/users/drewhouston"
} | [] | closed | false | null | [] | null | 2 | 2019-06-10T07:02:13Z | 2019-06-10T16:37:05Z | 2019-06-10T16:37:04Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
s = pd.Series.from_csv('duplicated_int64-bug.csv')
d = {}
non_dupe_python = set()
for k, val in s.iteritems():
if k not in d:
d[k] = val
else:
if val != d[k]:
non_dupe_python.add(k)
dup = s.duplicated(keep=False)
has_2_entries = dup.groupby(level=0).count()
has_2_entries = has_2_entries[has_2_entries>1].index
non_dupe_pd = set(dup[dup==0].index & has_2_entries)
print "Non-dupes (Python, %d): %r" % (len(non_dupe_python), non_dupe_python)
print "Non-dupes (Series.duplicated, %d): %r" % (len(non_dupe_pd), non_dupe_pd)
print "False duplicates: %r" % (non_dupe_python-non_dupe_pd)
print "\nTwo false duplicates (problem here)"
print s.loc[1793]
print dup.loc[1793]
print s.loc[1795]
print dup.loc[1795]
print "\nA correctly-identified non-duplicate"
print s.loc[6080]
print dup.loc[6080]
print "\nA correctly-identified duplicate"
print s.loc[1]
print dup.loc[1]
```
[duplicated_int64-bug.csv.zip](https://github.com/pandas-dev/pandas/files/3270864/duplicated_int64-bug.csv.zip)
My output:
```
Non-dupes (Python, 9): set([6080, 1793, 1795, 6084, 1797, 1798, 5968, 5975, 6086])
Non-dupes (Series.duplicated, 7): set([6080, 6084, 1797, 1798, 5968, 5975, 6086])
False duplicates: set([1793, 1795])
Two false duplicates (problem here)
1793 1334122803464982
1793 1334122794298518
dtype: int64
1793 True
1793 True
dtype: bool
1795 1334122803464982
1795 1334122794298518
dtype: int64
1795 True
1795 True
dtype: bool
A correctly-identified non-duplicate
6080 91475737356800
6080 91475737482944
dtype: int64
6080 False
6080 False
dtype: bool
A correctly-identified duplicate
1 93251501583580
1 93251501583580
dtype: int64
1 True
1 True
dtype: bool
```
#### Problem description
Using 0.24.2 I was comparing two ~6,000-row DataFrames before and after some modifications and looking for modified rows by using concat and then drop_duplicates (keep=False, although IIRC the issue also happens with other arguments to keep) and found that it was reporting false duplicates (i.e. missing rows that were in fact modified.)
Stepping into ```drop_duplicates()```, then ```duplicated()```, then at the output of ```get_group_index()``` (a series of key->int64 pairs which looks like a total ordering of the DataFrame that I basically dumped into the attached csv) shows a problem most likely in ```duplicated_int64``` which looks like a Cython or native module (which unfortunately I don't have the cycles or toolchain to look into but maybe there's a false hash collision?)
The repro and csv above includes ~12000 int64->int64 pairs with a variety of duplicated and non-duplicated pairs and some keys that only appear once.
I couldn't find a similar report although this appears to be similar in principle to https://github.com/pandas-dev/pandas/issues/11864 (problem in ```duplicated_int64```) and wasn't fixed by that. Repro above should be able to reproduce & isolate the problem.
#### Expected Output
As shown above the two actual values for index 1793 are different and should not be reported as duplicate rows (i.e. ```dup.loc[1793]``` should return ```False```)
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.10.final.0
python-bits: 64
OS: Darwin
OS-release: 17.7.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.24.2
pytest: None
pip: 18.0
setuptools: 38.4.0
Cython: None
numpy: 1.15.4
scipy: 1.2.0
pyarrow: None
xarray: None
IPython: 5.8.0
sphinx: None
patsy: None
dateutil: 2.7.3
pytz: 2013.7
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 1.3.1
openpyxl: 2.5.2
xlrd: 1.0.0
xlwt: 1.2.0
xlsxwriter: None
lxml.etree: None
bs4: 4.6.0
html5lib: 1.0.1
sqlalchemy: 1.3.3
pymysql: None
psycopg2: None
jinja2: 2.9.6
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/26762/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26762/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26763 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26763/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26763/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26763/events | https://github.com/pandas-dev/pandas/pull/26763 | 454,054,365 | MDExOlB1bGxSZXF1ZXN0Mjg2NTgzOTA3 | 26,763 | TST/CLN: reuse float_frame fixture in tests\reshape\test_concat.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "207de5",
"d... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 4 | 2019-06-10T08:26:17Z | 2019-06-11T14:50:52Z | 2019-06-10T21:52:41Z | 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/26763/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26763/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26763.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26763",
"merged_at": "2019-06-10T21:52:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26763.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26763"
} | |
https://api.github.com/repos/pandas-dev/pandas/issues/26764 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26764/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26764/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26764/events | https://github.com/pandas-dev/pandas/pull/26764 | 454,097,923 | MDExOlB1bGxSZXF1ZXN0Mjg2NjE4MjYz | 26,764 | TST/CLN: declass smaller test files in tests\io\excel | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "207de5",
"d... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 7 | 2019-06-10T10:15:53Z | 2019-06-11T14:49:29Z | 2019-06-10T17:32:01Z | MEMBER | null | xref https://github.com/pandas-dev/pandas/pull/26755#pullrequestreview-247416090
the larger files `pandas/tests/io/excel/test_readers.py` and `pandas/tests/io/excel/test_writers.py` have been left for separate PRs
any idiom changes other than required to declass are also omitted to make the diff easier to check. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26764/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26764/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26764.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26764",
"merged_at": "2019-06-10T17:32:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26764.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26764"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26765 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26765/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26765/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26765/events | https://github.com/pandas-dev/pandas/pull/26765 | 454,112,741 | MDExOlB1bGxSZXF1ZXN0Mjg2NjMwMDc3 | 26,765 | BUG: fix IntervalIndex for pivot table raise type error | {
"avatar_url": "https://avatars.githubusercontent.com/u/13047435?v=4",
"events_url": "https://api.github.com/users/peterpanmj/events{/privacy}",
"followers_url": "https://api.github.com/users/peterpanmj/followers",
"following_url": "https://api.github.com/users/peterpanmj/following{/other_user}",
"gists_url": "https://api.github.com/users/peterpanmj/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/peterpanmj",
"id": 13047435,
"login": "peterpanmj",
"node_id": "MDQ6VXNlcjEzMDQ3NDM1",
"organizations_url": "https://api.github.com/users/peterpanmj/orgs",
"received_events_url": "https://api.github.com/users/peterpanmj/received_events",
"repos_url": "https://api.github.com/users/peterpanmj/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/peterpanmj/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/peterpanmj/subscriptions",
"type": "User",
"url": "https://api.github.com/users/peterpanmj"
} | [
{
"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, Stac... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-06-10T10:55:26Z | 2019-06-14T02:06:04Z | 2019-06-13T20:41:45Z | CONTRIBUTOR | null | Close (#25814). When use IntervalIndex for pivot table, raise
TypeError: cannot determine next label for type <class 'str'>
- [x] closes #25814
- [x] tets added / passed
- [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/26765/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26765/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26765.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26765",
"merged_at": "2019-06-13T20:41:44Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26765.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26765"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26766 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26766/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26766/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26766/events | https://github.com/pandas-dev/pandas/issues/26766 | 454,174,170 | MDU6SXNzdWU0NTQxNzQxNzA= | 26,766 | Annotate API-exposed Items from pandas.core.api | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"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": "ea91a4",
"default": false,
"description": "type ann... | 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"
} | 10 | 2019-06-10T13:35:02Z | 2021-07-10T02:36:51Z | null | MEMBER | null | We currently expose all of the following items from pandas.core.api via the API:
```python
from pandas.core.api import (
# dtype
Int8Dtype, Int16Dtype, Int32Dtype, Int64Dtype, UInt8Dtype,
UInt16Dtype, UInt32Dtype, UInt64Dtype, CategoricalDtype,
PeriodDtype, IntervalDtype, DatetimeTZDtype,
# missing
isna, isnull, notna, notnull,
# indexes
Index, CategoricalIndex, Int64Index, UInt64Index, RangeIndex,
Float64Index, MultiIndex, IntervalIndex, TimedeltaIndex,
DatetimeIndex, PeriodIndex, IndexSlice,
# tseries
NaT, Period, period_range, Timedelta, timedelta_range,
Timestamp, date_range, bdate_range, Interval, interval_range,
DateOffset,
# conversion
to_numeric, to_datetime, to_timedelta,
# misc
np, Grouper, factorize, unique, value_counts, NamedAgg,
array, Categorical, set_eng_float_format, Series, DataFrame,
Panel)
```
A pseudo-prioritized list of annotations I think we need out of this would be the below. Open to suggestions on how to prioritize and obviously community PRs are very welcome!
- [ ] DataFrame
- [ ] Series
- [ ] Index
- [ ] MultiIndex
- [ ] Categorical
- [ ] CategoricalIndex
- [ ] Datetimelike indices
- [ ] Numeric indices
...
These don't necessarily need to be completed in order. Will continue to expand checklist as we tackle more items so if you see something you'd like to tackle feel free to call it out | {
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26766/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26766/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26767 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26767/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26767/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26767/events | https://github.com/pandas-dev/pandas/issues/26767 | 454,186,617 | MDU6SXNzdWU0NTQxODY2MTc= | 26,767 | astype() changes values unexpectedly | {
"avatar_url": "https://avatars.githubusercontent.com/u/26500236?v=4",
"events_url": "https://api.github.com/users/NotSoShaby/events{/privacy}",
"followers_url": "https://api.github.com/users/NotSoShaby/followers",
"following_url": "https://api.github.com/users/NotSoShaby/following{/other_user}",
"gists_url": "https://api.github.com/users/NotSoShaby/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/NotSoShaby",
"id": 26500236,
"login": "NotSoShaby",
"node_id": "MDQ6VXNlcjI2NTAwMjM2",
"organizations_url": "https://api.github.com/users/NotSoShaby/orgs",
"received_events_url": "https://api.github.com/users/NotSoShaby/received_events",
"repos_url": "https://api.github.com/users/NotSoShaby/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/NotSoShaby/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/NotSoShaby/subscriptions",
"type": "User",
"url": "https://api.github.com/users/NotSoShaby"
} | [] | closed | false | null | [] | null | 1 | 2019-06-10T14:02:04Z | 2019-06-10T14:13:09Z | 2019-06-10T14:13:09Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
In[89]: df = pd.DataFrame({'a':[11111,22222,3333]})
In[90]: df
Out[90]:
a
0 11111
1 22222
2 3333
In[91]: df.astype('float16')
Out[91]:
a
0 11112.0
1 22224.0
2 3332.0
In[92]: df.astype('float32')
Out[92]:
a
0 11111.0
1 22222.0
2 3333.0
In[93]: df['a'].astype('float16').astype('int16')
Out[93]:
0 11112
1 22224
2 3332
Name: a, dtype: int16
In[106]: df['a'].astype('float16').describe()
Out[106]:
count 3.000000e+00
mean 1.222400e+04
std inf
min 3.332000e+03
25% 7.222000e+03
50% 1.111200e+04
75% 1.666800e+04
max 2.222400e+04
```
#### Problem description
I'm trying to improve performance by changing the dtypes to more efficient ones in my code. I came across this use case which seems very odd to me. I expected `astype('float16')` to fail or turn to `inf` if it didnt manage to change the type, not alter the data.
I also saw, that in the .descibe() method, if a dtype is 'float16' some fields come back as `inf` when I expected it to round it up and not just have `inf` - if the column is `float32` then describe will work, but I dont want to double up on memory just for the describe method to function.
#### Expected Output
In the conversion to dtypes - fail if its impossible to convert or put `inf` in the place of the data that cant be converted.
In the descrbe() function - have the option to round the numbers so you will not get `inf`
#### Bigger picture
this thing came out of me trying to make some optimisation to our memory usage doing something like this:
```
@staticmethod
def optimize_float(series):
low_consumption = series.astype('float16')
if any(low_consumption.isin([np.inf])):
medium_consumption = series.astype('float32')
if any(medium_consumption.isin([np.inf])):
return series.astype('float64')
return medium_consumption
return low_consumption
```
If this is a bad idea, then its my bad - but changing the data still seems weird to me
#### Output of ``pd.show_versions()``
<details>
In[110]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.5.final.0
python-bits: 64
OS: Darwin
OS-release: 18.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.23.4
pytest: 3.5.0
pip: 19.1.1
setuptools: 41.0.1
Cython: 0.26.1
numpy: 1.15.4
scipy: 0.19.1
pyarrow: None
xarray: None
IPython: 7.5.0
sphinx: None
patsy: None
dateutil: 2.6.1
pytz: 2017.2
blosc: None
bottleneck: None
tables: 3.4.2
numexpr: 2.6.9
feather: None
matplotlib: 3.1.0
openpyxl: 2.5.3
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: None
lxml: 4.1.1
bs4: 4.4.1
html5lib: 0.9999999
sqlalchemy: 1.2.12
pymysql: 0.9.2
psycopg2: 2.7.3.2 (dt dec pq3 ext lo64)
jinja2: 2.9.6
s3fs: None
fastparquet: 0.2.1
pandas_gbq: 0.6.1
pandas_datareader: 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/26767/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26767/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26768 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26768/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26768/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26768/events | https://github.com/pandas-dev/pandas/pull/26768 | 454,201,522 | MDExOlB1bGxSZXF1ZXN0Mjg2NzAyMDEz | 26,768 | [26660] compare int with double by subtracting during describe percen… | {
"avatar_url": "https://avatars.githubusercontent.com/u/24897067?v=4",
"events_url": "https://api.github.com/users/jkovacevic/events{/privacy}",
"followers_url": "https://api.github.com/users/jkovacevic/followers",
"following_url": "https://api.github.com/users/jkovacevic/following{/other_user}",
"gists_url": "https://api.github.com/users/jkovacevic/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jkovacevic",
"id": 24897067,
"login": "jkovacevic",
"node_id": "MDQ6VXNlcjI0ODk3MDY3",
"organizations_url": "https://api.github.com/users/jkovacevic/orgs",
"received_events_url": "https://api.github.com/users/jkovacevic/received_events",
"repos_url": "https://api.github.com/users/jkovacevic/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jkovacevic/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jkovacevic/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jkovacevic"
} | [
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
},
{
"color": "006b7... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-06-10T14:33:19Z | 2019-06-11T05:35:28Z | 2019-06-11T00:16:58Z | CONTRIBUTOR | null | - [x] closes #26660
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I am not sure whether I had put my issue in whatsnew entry in appropriate place. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26768/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26768/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26768.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26768",
"merged_at": "2019-06-11T00:16:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26768.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26768"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26769 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26769/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26769/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26769/events | https://github.com/pandas-dev/pandas/pull/26769 | 454,269,497 | MDExOlB1bGxSZXF1ZXN0Mjg2NzU2MDIw | 26,769 | BLD: fix py37 build warnings | {
"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": "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": "207de5",
"default": false,
... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 12 | 2019-06-10T17:02:38Z | 2019-06-27T22:05:10Z | 2019-06-27T21:59:49Z | MEMBER | null | Not at all sure this is the optimal way to do this, cc @WillAyd for suggestions | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26769/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26769/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26769.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26769",
"merged_at": "2019-06-27T21:59:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26769.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26769"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26770 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26770/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26770/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26770/events | https://github.com/pandas-dev/pandas/pull/26770 | 454,272,825 | MDExOlB1bGxSZXF1ZXN0Mjg2NzU4NjE0 | 26,770 | Fix matplotlib converter registering warning | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 15 | 2019-06-10T17:11:09Z | 2019-06-21T02:06:57Z | 2019-06-21T02:06:35Z | CONTRIBUTOR | null | Closes #26760
Tests were being skipped, because the module name changed in https://github.com/pandas-dev/pandas/pull/18307/files. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26770/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26770/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26770.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26770",
"merged_at": "2019-06-21T02:06:35Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26770.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26770"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26771 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26771/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26771/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26771/events | https://github.com/pandas-dev/pandas/issues/26771 | 454,290,522 | MDU6SXNzdWU0NTQyOTA1MjI= | 26,771 | HDFStore performance issue of .select_as_multiple | {
"avatar_url": "https://avatars.githubusercontent.com/u/19474336?v=4",
"events_url": "https://api.github.com/users/BeforeFlight/events{/privacy}",
"followers_url": "https://api.github.com/users/BeforeFlight/followers",
"following_url": "https://api.github.com/users/BeforeFlight/following{/other_user}",
"gists_url": "https://api.github.com/users/BeforeFlight/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/BeforeFlight",
"id": 19474336,
"login": "BeforeFlight",
"node_id": "MDQ6VXNlcjE5NDc0MzM2",
"organizations_url": "https://api.github.com/users/BeforeFlight/orgs",
"received_events_url": "https://api.github.com/users/BeforeFlight/received_events",
"repos_url": "https://api.github.com/users/BeforeFlight/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/BeforeFlight/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BeforeFlight/subscriptions",
"type": "User",
"url": "https://api.github.com/users/BeforeFlight"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "5319e7",
"default"... | open | false | null | [] | null | 0 | 2019-06-10T17:55:03Z | 2020-05-16T20:38:12Z | null | CONTRIBUTOR | null | ```python
def init_and_store(sh_0, sh_1):
'Init DataFrame and store it using HDFStore into 2 parts'
df = pd.DataFrame(np.random.rand(sh_0, sh_1))
cols1 = list(df.columns[:sh_1//2])
cols2 = list(df.columns[sh_1//2:])
with pd.HDFStore('test.h5') as store:
store.put('df1', df[cols1], 't')
store.put('df2', df[cols2], 't')
print ('DataFrame shape is', df.shape)
def get_select():
'Retrieve stored df with .select method'
start = pd.Timestamp.now()
with pd.HDFStore('test.h5') as store:
df1 = store.select('df1')
df2 = store.select('df2')
out = pd.concat([df1, df2], axis=1)
print ('SLCT: Select done in %5.2f seconds. Out shape is'%
(pd.Timestamp.now()-start).total_seconds(), out.shape)
def get_select_as_multiple():
'Retrieve stored df with .select_as_multiple method'
start = pd.Timestamp.now()
with pd.HDFStore('test.h5') as store:
out = store.select_as_multiple(['df1', 'df2'])
print ('MULT: Select done in %5.2f seconds. Out shape is'%
(pd.Timestamp.now()-start).total_seconds(), out.shape)
def testing(sh_0, sh_1):
'Compare time of .select and .select_as_multiple by sh_0, sh_1'
init_and_store(sh_0, sh_1)
get_select()
get_select_as_multiple()
print()
```
Now some tests:
```python
for sh_1 in [4, 8, 24]:
testing(10**6, sh_1)
```
```python
DataFrame shape is (1000000, 4)
SLCT: Select done in 0.07 seconds. Out shape is (1000000, 4)
MULT: Select done in 25.20 seconds. Out shape is (1000000, 4)
DataFrame shape is (1000000, 8)
SLCT: Select done in 0.10 seconds. Out shape is (1000000, 8)
MULT: Select done in 14.81 seconds. Out shape is (1000000, 8)
DataFrame shape is (1000000, 24)
SLCT: Select done in 0.37 seconds. Out shape is (1000000, 24)
MULT: Select done in 6.45 seconds. Out shape is (1000000, 24)
```
So problems:
1. `.select_as_multiple` is _much_ slower comparatively to plain `.select`.
- Expected - at least nearly same performance (because in opposite case one may use only `.select` with some `.concat` overhead).
2. Time of `.select_as_multiple` _decreasing_ in case of increasing number of columns (but still far slower than `.select`).
- Expected is also increasing time of execution, because we increase our data size (up to 6 times).
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Linux
OS-release: 5.0.0-16-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.2
pytest: 4.5.0
pip: 19.1.1
setuptools: 41.0.1
Cython: 0.29.7
numpy: 1.16.4
scipy: 1.2.1
pyarrow: None
xarray: 0.12.1
IPython: 7.2.0
sphinx: None
patsy: None
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: 3.5.1
numexpr: 2.6.9
feather: None
matplotlib: 3.0.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10.1
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/26771/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26771/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26772 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26772/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26772/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26772/events | https://github.com/pandas-dev/pandas/pull/26772 | 454,320,851 | MDExOlB1bGxSZXF1ZXN0Mjg2Nzk1NzI3 | 26,772 | BENCH: fix noisy asv benchmarks that were running on exhausted generators | {
"avatar_url": "https://avatars.githubusercontent.com/u/440095?v=4",
"events_url": "https://api.github.com/users/qwhelan/events{/privacy}",
"followers_url": "https://api.github.com/users/qwhelan/followers",
"following_url": "https://api.github.com/users/qwhelan/following{/other_user}",
"gists_url": "https://api.github.com/users/qwhelan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/qwhelan",
"id": 440095,
"login": "qwhelan",
"node_id": "MDQ6VXNlcjQ0MDA5NQ==",
"organizations_url": "https://api.github.com/users/qwhelan/orgs",
"received_events_url": "https://api.github.com/users/qwhelan/received_events",
"repos_url": "https://api.github.com/users/qwhelan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/qwhelan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/qwhelan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/qwhelan"
} | [
{
"color": "ae68cc",
"default": false,
"description": "Performance (ASV) benchmarks",
"id": 732775912,
"name": "Benchmark",
"node_id": "MDU6TGFiZWw3MzI3NzU5MTI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Benchmark"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-06-10T19:01:43Z | 2019-08-14T07:00:54Z | 2019-06-21T02:03:03Z | CONTRIBUTOR | null | Generators get consumed on first use, yielding abnormally fast benchmark times on the `n>1` iterations. Fortunately we can instruct `asv` to call `setup()` prior to every sample by setting `number = 1` and `repeat` appropriately. My local runs suggest the typical number of samples is `~150-250`, so an upper limit of `250` appears to be a good fit.
Here is current `master` with old benchmark version:
```
[ 75.00%] ··· Running (ctors.SeriesConstructors.time_series_constructor--).
[100.00%] ··· ctors.SeriesConstructors.time_series_constructor 4/40 failed
[100.00%] ··· ===================================== =============== ============= ============== =============
-- with_index / dtype
------------------------------------- ----------------------------------------------------------
data_fmt False / float False / int True / float True / int
===================================== =============== ============= ============== =============
<function gen_of_str> 130±0.9μs 116±6μs failed failed
<function gen_of_tuples> 113±3μs 112±20μs failed failed
===================================== =============== ============= ============== =============
```
And with the fixed benchmarks, we see the existing ones falsely report a `40x` speedup:
```
[ 50.00%] ··· ===================================== =============== ============= ============== ============
-- with_index / dtype
------------------------------------- ---------------------------------------------------------
data_fmt False / float False / int True / float True / int
===================================== =============== ============= ============== ============
<function gen_of_str> 4.61±0.1ms 4.21±0.07ms n/a n/a
<function gen_of_tuples> 3.39±0.1ms 3.43±0.07ms n/a n/a
===================================== =============== ============= ============== ============
```
Additionally, this PR resolves a few failing `asv` tests that I introduced in the first iteration.
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] 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/26772/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26772/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26772.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26772",
"merged_at": "2019-06-21T02:03:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26772.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26772"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26773 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26773/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26773/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26773/events | https://github.com/pandas-dev/pandas/pull/26773 | 454,325,091 | MDExOlB1bGxSZXF1ZXN0Mjg2Nzk4OTI5 | 26,773 | PERF: 5x speedup for read_json() with orient='index' by avoiding transpose | {
"avatar_url": "https://avatars.githubusercontent.com/u/440095?v=4",
"events_url": "https://api.github.com/users/qwhelan/events{/privacy}",
"followers_url": "https://api.github.com/users/qwhelan/followers",
"following_url": "https://api.github.com/users/qwhelan/following{/other_user}",
"gists_url": "https://api.github.com/users/qwhelan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/qwhelan",
"id": 440095,
"login": "qwhelan",
"node_id": "MDQ6VXNlcjQ0MDA5NQ==",
"organizations_url": "https://api.github.com/users/qwhelan/orgs",
"received_events_url": "https://api.github.com/users/qwhelan/received_events",
"repos_url": "https://api.github.com/users/qwhelan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/qwhelan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/qwhelan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/qwhelan"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "207de5",
"default"... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 8 | 2019-06-10T19:11:37Z | 2019-07-17T11:49:32Z | 2019-07-17T11:49:29Z | CONTRIBUTOR | null | The `.T` operator can be quite slow on mixed-type `DataFrame`s due to the creation of `object` dtype columns. In comparison to direct construction with `DataFrame.from_dict()` can generally be much more efficient.
Making that swap inside `pd.read_json()` yields a `~5-6x` speedup for the `orient='index'` case:
```
before after ratio
[d47fc0cb] [b0fd99ec]
<read_json_speedup~1> <read_json_speedup>
- 5.37±0.03s 907±5ms 0.17 io.json.ReadJSON.time_read_json('index', 'int')
- 5.27±0.01s 804±3ms 0.15 io.json.ReadJSON.time_read_json('index', 'datetime')
```
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] 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/26773/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26773/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26773.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26773",
"merged_at": "2019-07-17T11:49:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26773.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26773"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26774 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26774/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26774/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26774/events | https://github.com/pandas-dev/pandas/issues/26774 | 454,343,886 | MDU6SXNzdWU0NTQzNDM4ODY= | 26,774 | clean or remove header format after convert to excel | {
"avatar_url": "https://avatars.githubusercontent.com/u/1105915?v=4",
"events_url": "https://api.github.com/users/yyz20002008/events{/privacy}",
"followers_url": "https://api.github.com/users/yyz20002008/followers",
"following_url": "https://api.github.com/users/yyz20002008/following{/other_user}",
"gists_url": "https://api.github.com/users/yyz20002008/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yyz20002008",
"id": 1105915,
"login": "yyz20002008",
"node_id": "MDQ6VXNlcjExMDU5MTU=",
"organizations_url": "https://api.github.com/users/yyz20002008/orgs",
"received_events_url": "https://api.github.com/users/yyz20002008/received_events",
"repos_url": "https://api.github.com/users/yyz20002008/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yyz20002008/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yyz20002008/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yyz20002008"
} | [
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] | closed | false | null | [] | null | 3 | 2019-06-10T19:55:36Z | 2019-06-10T19:59:05Z | 2019-06-10T19:57:38Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
`import pandas as pd
import pandas.io.formats.excel
mypath = <Filepath>
#print(mypath)
from os import listdir
from os.path import isfile, join
#print (listdir(mypath))
textfiles = [ join(mypath,f) for f in listdir(mypath) if '.TXT' in f]
print(textfiles)
for textfile in textfiles:
df = pd.read_csv(textfile,sep='|', dtype=str)
#df.dtypes
#df.ROW = df.ROW.astype(str)
df.io.formats.excel.header_style = None
filename=textfile.split('.')[0]
df.to_excel(filename+'.xlsx', 'Sheet1', index=False) # if your file is tab delimited
`
```
#### Problem description
'df.io.formats.excel.header_style = None' doesn't work any more.
#### Expected Output
How can I clean header format after convert to excel.
#### Output of ``pd.show_versions()``
Currently header is bold and has a border.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26774/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26774/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26775 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26775/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26775/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26775/events | https://github.com/pandas-dev/pandas/pull/26775 | 454,403,592 | MDExOlB1bGxSZXF1ZXN0Mjg2ODYxOTAz | 26,775 | fix typo | {
"avatar_url": "https://avatars.githubusercontent.com/u/3341011?v=4",
"events_url": "https://api.github.com/users/thatneat/events{/privacy}",
"followers_url": "https://api.github.com/users/thatneat/followers",
"following_url": "https://api.github.com/users/thatneat/following{/other_user}",
"gists_url": "https://api.github.com/users/thatneat/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/thatneat",
"id": 3341011,
"login": "thatneat",
"node_id": "MDQ6VXNlcjMzNDEwMTE=",
"organizations_url": "https://api.github.com/users/thatneat/orgs",
"received_events_url": "https://api.github.com/users/thatneat/received_events",
"repos_url": "https://api.github.com/users/thatneat/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/thatneat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thatneat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/thatneat"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-06-10T22:39:04Z | 2019-06-10T23:32:45Z | 2019-06-10T23:32:39Z | CONTRIBUTOR | null | - [N/A] closes #xxxx
- [none] tests added / passed
- [no (online Github minor change)] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [probably not necessary either?] 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/26775/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26775/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26775.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26775",
"merged_at": "2019-06-10T23:32:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26775.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26775"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26776 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26776/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26776/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26776/events | https://github.com/pandas-dev/pandas/pull/26776 | 454,525,834 | MDExOlB1bGxSZXF1ZXN0Mjg2OTU3MTc5 | 26,776 | PERF: avoid printing object in Dtype.construct_from_string message | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 7 | 2019-06-11T07:34:05Z | 2019-06-12T14:44:29Z | 2019-06-12T14:44:22Z | MEMBER | null | xref https://github.com/pandas-dev/pandas/pull/26562#issuecomment-500120556 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26776/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26776/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26776.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26776",
"merged_at": "2019-06-12T14:44:22Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26776.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26776"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26777 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26777/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26777/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26777/events | https://github.com/pandas-dev/pandas/issues/26777 | 454,535,533 | MDU6SXNzdWU0NTQ1MzU1MzM= | 26,777 | SparseDataFrame(scipy.sparse.matrix) constructor generates lots of warnings | {
"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": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
},
{
"color": "5319e7",
"default": false,
"description"... | closed | 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 | 2019-06-11T07:56:18Z | 2019-09-18T14:02:12Z | 2019-09-18T14:02:12Z | MEMBER | null | cc @TomAugspurger another one ...
Passing a sparse matrix to the SparseDataFrame constructor can generate a flood of warning message (I think because each column of the sparse matrix is converted to a SparseSeries, triggering the warning each time):
```
In [2]: import scipy.sparse
In [3]: sparse = scipy.sparse.rand(10, 10, 0.5)
In [4]: pd.SparseDataFrame(sparse)
/home/joris/miniconda3/envs/dev37/bin/ipython:1: FutureWarning: SparseDataFrame is deprecated and will be removed in a future version.
Use a regular DataFrame whose columns are SparseArrays instead.
See http://pandas.pydata.org/pandas-docs/stable/user_guide/sparse.html#migrating for more.
#!/home/joris/miniconda3/envs/dev37/bin/python
/home/joris/scipy/pandas/pandas/core/sparse/frame.py:230: FutureWarning: SparseSeries is deprecated and will be removed in a future version.
Use a Series with sparse values instead.
>>> series = pd.Series(pd.SparseArray(...))
See http://pandas.pydata.org/pandas-docs/stable/user_guide/sparse.html#migrating for more.
sparse_index=BlockIndex(N, blocs, blens))
/home/joris/scipy/pandas/pandas/core/sparse/frame.py:230: FutureWarning: SparseSeries is deprecated and will be removed in a future version.
Use a Series with sparse values instead.
>>> series = pd.Series(pd.SparseArray(...))
See http://pandas.pydata.org/pandas-docs/stable/user_guide/sparse.html#migrating for more.
sparse_index=BlockIndex(N, blocs, blens))
/home/joris/scipy/pandas/pandas/core/sparse/frame.py:230: FutureWarning: SparseSeries is deprecated and will be removed in a future version.
Use a Series with sparse values instead.
>>> series = pd.Series(pd.SparseArray(...))
See http://pandas.pydata.org/pandas-docs/stable/user_guide/sparse.html#migrating for more.
sparse_index=BlockIndex(N, blocs, blens))
/home/joris/scipy/pandas/pandas/core/sparse/frame.py:230: FutureWarning: SparseSeries is deprecated and will be removed in a future version.
Use a Series with sparse values instead.
>>> series = pd.Series(pd.SparseArray(...))
See http://pandas.pydata.org/pandas-docs/stable/user_guide/sparse.html#migrating for more.
sparse_index=BlockIndex(N, blocs, blens))
/home/joris/scipy/pandas/pandas/core/sparse/frame.py:230: FutureWarning: SparseSeries is deprecated and will be removed in a future version.
Use a Series with sparse values instead.
>>> series = pd.Series(pd.SparseArray(...))
See http://pandas.pydata.org/pandas-docs/stable/user_guide/sparse.html#migrating for more.
sparse_index=BlockIndex(N, blocs, blens))
/home/joris/scipy/pandas/pandas/core/sparse/frame.py:230: FutureWarning: SparseSeries is deprecated and will be removed in a future version.
Use a Series with sparse values instead.
>>> series = pd.Series(pd.SparseArray(...))
See http://pandas.pydata.org/pandas-docs/stable/user_guide/sparse.html#migrating for more.
sparse_index=BlockIndex(N, blocs, blens))
/home/joris/scipy/pandas/pandas/core/sparse/frame.py:230: FutureWarning: SparseSeries is deprecated and will be removed in a future version.
Use a Series with sparse values instead.
>>> series = pd.Series(pd.SparseArray(...))
See http://pandas.pydata.org/pandas-docs/stable/user_guide/sparse.html#migrating for more.
sparse_index=BlockIndex(N, blocs, blens))
/home/joris/scipy/pandas/pandas/core/sparse/frame.py:230: FutureWarning: SparseSeries is deprecated and will be removed in a future version.
Use a Series with sparse values instead.
>>> series = pd.Series(pd.SparseArray(...))
See http://pandas.pydata.org/pandas-docs/stable/user_guide/sparse.html#migrating for more.
sparse_index=BlockIndex(N, blocs, blens))
/home/joris/scipy/pandas/pandas/core/sparse/frame.py:230: FutureWarning: SparseSeries is deprecated and will be removed in a future version.
Use a Series with sparse values instead.
>>> series = pd.Series(pd.SparseArray(...))
See http://pandas.pydata.org/pandas-docs/stable/user_guide/sparse.html#migrating for more.
sparse_index=BlockIndex(N, blocs, blens))
Out[4]:
0 1 2 3 4 5 6 7 8 9
0 0.856466 0.482052 0.289636 NaN 0.369485 NaN 0.907167 NaN NaN 0.531253
1 NaN NaN 0.305235 NaN NaN NaN 0.744132 0.001257 NaN 0.406300
2 NaN NaN 0.638244 NaN NaN NaN 0.436574 NaN NaN 0.225573
3 0.881299 NaN 0.645047 0.203569 NaN 0.341134 NaN 0.553526 0.539011 0.682595
4 0.481258 NaN NaN 0.919469 NaN 0.101564 NaN NaN NaN NaN
5 0.244346 0.282246 NaN NaN NaN NaN NaN NaN 0.412830 NaN
6 0.051837 NaN 0.101553 0.512826 0.985031 0.679645 0.248445 NaN 0.081652 NaN
7 0.048519 NaN 0.621497 0.483698 NaN NaN NaN 0.548918 NaN 0.716907
8 NaN 0.801704 NaN NaN NaN 0.611459 0.669670 NaN 0.835271 0.336365
9 0.302106 NaN 0.672587 0.609117 0.570041 0.662911 0.684364 NaN NaN 0.795059
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26777/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26777/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26778 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26778/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26778/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26778/events | https://github.com/pandas-dev/pandas/issues/26778 | 454,555,166 | MDU6SXNzdWU0NTQ1NTUxNjY= | 26,778 | REGR: Index.union preserve numerical index for range/float and int/float combinations | {
"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": "Blocking issue or pull request for an upcoming release",
"id": 77550281,
"name": "Blocker",
"node_id": "MDU6TGFiZWw3NzU1MDI4MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Blocker"
},
{
"color": "e99695",... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 13 | 2019-06-11T08:39:16Z | 2019-06-27T17:24:53Z | 2019-06-27T17:24:53Z | MEMBER | null | Recent change in master:
```
In [11]: index = pd.RangeIndex(0, 10)
In [12]: index.union(pd.Index([0.5, 1.5]))
Out[12]: Index([0.0, 0.5, 1.0, 1.5, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0], dtype='object')
```
the dtype should be float.
cc @topper-123 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26778/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26778/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26779 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26779/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26779/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26779/events | https://github.com/pandas-dev/pandas/issues/26779 | 454,563,750 | MDU6SXNzdWU0NTQ1NjM3NTA= | 26,779 | column type changes when assigning with loc and values | {
"avatar_url": "https://avatars.githubusercontent.com/u/386274?v=4",
"events_url": "https://api.github.com/users/blinkseb/events{/privacy}",
"followers_url": "https://api.github.com/users/blinkseb/followers",
"following_url": "https://api.github.com/users/blinkseb/following{/other_user}",
"gists_url": "https://api.github.com/users/blinkseb/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/blinkseb",
"id": 386274,
"login": "blinkseb",
"node_id": "MDQ6VXNlcjM4NjI3NA==",
"organizations_url": "https://api.github.com/users/blinkseb/orgs",
"received_events_url": "https://api.github.com/users/blinkseb/received_events",
"repos_url": "https://api.github.com/users/blinkseb/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/blinkseb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/blinkseb/subscriptions",
"type": "User",
"url": "https://api.github.com/users/blinkseb"
} | [
{
"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": "0e... | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/18354771?v=4",
"events_url": "https://api.github.com/users/shiv-io/events{/privacy}",
"followers_url": "https://api.github.com/users/shiv-io/followers",
"following_url": "https://api.github.com/users/shiv-io/following{/other_user}",
"gists_url": "https://api.github.com/users/shiv-io/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shiv-io",
"id": 18354771,
"login": "shiv-io",
"node_id": "MDQ6VXNlcjE4MzU0Nzcx",
"organizations_url": "https://api.github.com/users/shiv-io/orgs",
"received_events_url": "https://api.github.com/users/shiv-io/received_events",
"repos_url": "https://api.github.com/users/shiv-io/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shiv-io/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shiv-io/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shiv-io"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/18354771?v=4",
"events_url": "https://api.github.com/users/shiv-io/events{/privacy}",
"followers_url": "https://api.github.com/users/shiv-io/followers",
"following_url": "https://api.github.com/users/shiv-io/following{/other_user}",
"gists... | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 8 | 2019-06-11T08:56:54Z | 2021-07-28T01:02:24Z | 2021-07-28T01:02:24Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
import numpy
In [34]: df = pd.DataFrame(
...: data={
...: 'channel': [1, 2, 3],
...: 'A': ['String 1', numpy.NaN, 'String 2'],
...: 'B': [pd.Timestamp('2019-06-11 11:00:00'), numpy.NaN, pd.Timestamp('2019-06-11 12:00:00')]
...: }
...: )
In [35]: df
Out[35]:
channel A B
0 1 String 1 2019-06-11 11:00:00
1 2 NaN NaT
2 3 String 2 2019-06-11 12:00:00
In [36]: df2 = pd.DataFrame(
...: data={'A': ['String 3'], 'B': [pd.Timestamp('2019-06-11 12:00:00')]}
...: )
In [37]: df2
Out[37]:
A B
0 String 3 2019-06-11 12:00:00
In [38]: df.loc[df['A'].isna() , ['A', 'B']] = df2.values
In [39]: df
Out[39]:
channel A B
0 1 String 1 1560250800000000000
1 2 String 3 2019-06-11 12:00:00
2 3 String 2 1560254400000000000
```
#### Problem description
Hello,
Assigning new values to rows using`.loc` and `.values` change the type of the column (look how column `B`, which was a `datetime64`, is now a mix of integer and datetime)
Note: the same exact code produces the expected output when using pandas 0.22.0, 0.23.4 but broked in pandas 0.24.0 ; also, if I remove the `A` column, the output is correct (no unwanted datetime to integer conversion)
Thanks for your help!
#### Expected Output
```
Out[39]:
channel A B
0 1 String 1 2019-06-11 11:00:00
1 2 String 3 2019-06-11 12:00:00
2 3 String 2 2019-06-11 12:00:00
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.8.final.0
python-bits: 64
OS: Linux
OS-release: 5.1.7-300.fc30.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8
LOCALE: en_GB.UTF-8
pandas: 0.24.2
pytest: None
pip: 19.1.1
setuptools: 41.0.1
Cython: None
numpy: 1.16.4
scipy: None
pyarrow: None
xarray: None
IPython: 7.5.0
sphinx: None
patsy: None
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/26779/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26779/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26780 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26780/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26780/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26780/events | https://github.com/pandas-dev/pandas/pull/26780 | 454,644,110 | MDExOlB1bGxSZXF1ZXN0Mjg3MDUyMTY3 | 26,780 | DOC: fix old whatsnew examples + few sphinx warnings | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-06-11T11:52:04Z | 2019-06-11T15:55:32Z | 2019-06-11T15:47:40Z | 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/26780/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26780/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26780.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26780",
"merged_at": "2019-06-11T15:47:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26780.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26780"
} | |
https://api.github.com/repos/pandas-dev/pandas/issues/26781 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26781/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26781/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26781/events | https://github.com/pandas-dev/pandas/pull/26781 | 454,651,984 | MDExOlB1bGxSZXF1ZXN0Mjg3MDU4NTY3 | 26,781 | DOC: pin sphinx to 1.8.5 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | null | 9 | 2019-06-11T12:10:08Z | 2019-10-06T07:37:26Z | 2019-06-12T15:12:14Z | MEMBER | null | xref https://github.com/pandas-dev/pandas/issues/26058 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26781/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26781/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26781.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26781",
"merged_at": "2019-06-12T15:12:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26781.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26781"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26782 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26782/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26782/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26782/events | https://github.com/pandas-dev/pandas/pull/26782 | 454,685,224 | MDExOlB1bGxSZXF1ZXN0Mjg3MDg1NTc2 | 26,782 | Change Scope of xlrd Import Attempt | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"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,
"de... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 1 | 2019-06-11T13:17:05Z | 2020-01-16T00:34:51Z | 2019-06-12T18:09:54Z | MEMBER | null | Moved attempt to import xlrd to global scope of module. Simplifies code a bit and keeps xlrd relevant imports within one block | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26782/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26782/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26782.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26782",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/26782.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26782"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26783 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26783/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26783/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26783/events | https://github.com/pandas-dev/pandas/issues/26783 | 454,709,989 | MDU6SXNzdWU0NTQ3MDk5ODk= | 26,783 | Explanation of assign by list to filtered DataFrame | {
"avatar_url": "https://avatars.githubusercontent.com/u/10682573?v=4",
"events_url": "https://api.github.com/users/jesrael/events{/privacy}",
"followers_url": "https://api.github.com/users/jesrael/followers",
"following_url": "https://api.github.com/users/jesrael/following{/other_user}",
"gists_url": "https://api.github.com/users/jesrael/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jesrael",
"id": 10682573,
"login": "jesrael",
"node_id": "MDQ6VXNlcjEwNjgyNTcz",
"organizations_url": "https://api.github.com/users/jesrael/orgs",
"received_events_url": "https://api.github.com/users/jesrael/received_events",
"repos_url": "https://api.github.com/users/jesrael/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jesrael/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jesrael/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jesrael"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] | closed | false | null | [] | null | 1 | 2019-06-11T14:02:25Z | 2019-11-02T21:45:00Z | 2019-11-02T21:44:53Z | NONE | null | Based by [this question](https://stackoverflow.com/q/56544290/2901002):
Why if assign scalar and Series in list, error is raised:
wert = 2.5
df = pd.DataFrame([['Test', 12, None, None], ['Test2', 15, None, None]], columns=['A','B','C','D'])
mask = (df['A'] == 'Test2')
df.loc[mask, ['C', 'D']] = [1, df['B'] * wert]
>ValueError: cannot set using a list-like indexer with a different length than the value
But if filter in both side it working nice?
mask = (df['A'] == 'Test')
df.loc[mask, ['C', 'D']] = [1, df.loc[mask, 'B'] * wert]
print (df)
A B C D
0 Test 12 1 30
1 Test2 15 None None
Error is correct?
Thank you.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26783/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26783/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26784 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26784/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26784/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26784/events | https://github.com/pandas-dev/pandas/issues/26784 | 454,724,645 | MDU6SXNzdWU0NTQ3MjQ2NDU= | 26,784 | Add more pytest idiom to io.excel testing | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "bfe5bf",
"d... | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 8 | 2019-06-11T14:27:58Z | 2020-12-12T11:27:28Z | 2020-12-12T11:27:27Z | MEMBER | null | master tracker for follow-ups to #26755 and related PRs
- [ ] use pytest.importorskip/not use the class structure https://github.com/pandas-dev/pandas/pull/26755#pullrequestreview-247416090
- [ ] location of fixtures https://github.com/pandas-dev/pandas/pull/26755#pullrequestreview-247404136
- [ ] imports and try/except https://github.com/pandas-dev/pandas/pull/26764#pullrequestreview-247587125
- [ ] xlwt dependency/create a write_ext fixture https://github.com/pandas-dev/pandas/pull/26764#pullrequestreview-247589748
- [x] ~~use of safe_import in pytest.param https://github.com/pandas-dev/pandas/pull/26735#issuecomment-500156276~~ #27139
- [ ] parametrisation of write tests https://github.com/pandas-dev/pandas/pull/26740#pullrequestreview-247380174
- [ ] consider patch filename extension https://github.com/pandas-dev/pandas/pull/26740#pullrequestreview-247382411
- [ ] align the engine / ext usage in the Writer classes https://github.com/pandas-dev/pandas/pull/26662#pullrequestreview-246112315
- [ ] get rid of the None engine tests and just have a separate test that ensures how that gets bound to a particular engine https://github.com/pandas-dev/pandas/pull/26662#discussion_r291258182 (#28749)
- [x] ~~engine and ext injected into tests https://github.com/pandas-dev/pandas/pull/26662#discussion_r291260131~~ #28753
- [ ] add some doc-strings https://github.com/pandas-dev/pandas/pull/26579#pullrequestreview-245987920
- [ ] test_bad_engine_raises shouldn't parametrised https://github.com/pandas-dev/pandas/pull/26543#issuecomment-497126487 (#28749)
- [x] ~~Eliminate _WriterBase class~~ #28753
cc @WillAyd | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26784/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26784/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26785 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26785/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26785/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26785/events | https://github.com/pandas-dev/pandas/pull/26785 | 454,730,364 | MDExOlB1bGxSZXF1ZXN0Mjg3MTIyMjkz | 26,785 | DOC: clean-up numpydoc patches now numpydoc 0.9 is released | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 5 | 2019-06-11T14:38:21Z | 2019-06-11T19:23:30Z | 2019-06-11T19:23:24Z | MEMBER | null | Since numpydoc is released, we can do some cleanup of what was introduced in https://github.com/pandas-dev/pandas/pull/24098
cc @FHaase | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26785/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26785/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26785.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26785",
"merged_at": "2019-06-11T19:23:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26785.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26785"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26786 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26786/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26786/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26786/events | https://github.com/pandas-dev/pandas/pull/26786 | 454,731,310 | MDExOlB1bGxSZXF1ZXN0Mjg3MTIzMDk3 | 26,786 | DOC: Fixing some doc warnings | {
"avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4",
"events_url": "https://api.github.com/users/datapythonista/events{/privacy}",
"followers_url": "https://api.github.com/users/datapythonista/followers",
"following_url": "https://api.github.com/users/datapythonista/following{/other_user}",
"gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/datapythonista",
"id": 10058240,
"login": "datapythonista",
"node_id": "MDQ6VXNlcjEwMDU4MjQw",
"organizations_url": "https://api.github.com/users/datapythonista/orgs",
"received_events_url": "https://api.github.com/users/datapythonista/received_events",
"repos_url": "https://api.github.com/users/datapythonista/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions",
"type": "User",
"url": "https://api.github.com/users/datapythonista"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 5 | 2019-06-11T14:39:57Z | 2019-06-12T09:02:14Z | 2019-06-12T09:02:14Z | MEMBER | null | - [x] xref #24173
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Fixing some docs warnings, still many more, but will open few PRs with fixes, try to get a clean build and start failing the CI for doc warnings. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26786/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26786/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26786.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26786",
"merged_at": "2019-06-12T09:02:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26786.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26786"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26787 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26787/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26787/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26787/events | https://github.com/pandas-dev/pandas/pull/26787 | 454,766,085 | MDExOlB1bGxSZXF1ZXN0Mjg3MTUxMDIz | 26,787 | TST/CLN: use float_frame fixture to remove use of tm.getSeriesData() | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "207de5",
"d... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 4 | 2019-06-11T15:42:21Z | 2019-06-12T13:59:30Z | 2019-06-11T18:31:24Z | MEMBER | null | this PR removes 2 unnecessary fixtures from `pandas\tests\groupby\conftest.py`
and a few small changes to remove use of `tm.getSeriesData()` with a couple of exceptions:
- conftest files: `pandas\conftest.py` and `pandas\tests\frame\conftest.py` (needed for fixtures)
- `pandas\tests\frame\common.py` (this module will be removed on completion of #22471)
- `pandas\tests\io\json\test_pandas.py` (would benefit from fixturisation and access to other frame fixtures, separate PR and then maybe have a code-checks rule for `getSeriesData` in `test_*.py` files)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26787/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26787/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26787.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26787",
"merged_at": "2019-06-11T18:31:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26787.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26787"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26788 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26788/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26788/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26788/events | https://github.com/pandas-dev/pandas/issues/26788 | 454,768,276 | MDU6SXNzdWU0NTQ3NjgyNzY= | 26,788 | DOC: Fix doc warning "Code input with no code" | {
"avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4",
"events_url": "https://api.github.com/users/datapythonista/events{/privacy}",
"followers_url": "https://api.github.com/users/datapythonista/followers",
"following_url": "https://api.github.com/users/datapythonista/following{/other_user}",
"gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/datapythonista",
"id": 10058240,
"login": "datapythonista",
"node_id": "MDQ6VXNlcjEwMDU4MjQw",
"organizations_url": "https://api.github.com/users/datapythonista/orgs",
"received_events_url": "https://api.github.com/users/datapythonista/received_events",
"repos_url": "https://api.github.com/users/datapythonista/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions",
"type": "User",
"url": "https://api.github.com/users/datapythonista"
} | [
{
"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": 7171206... | closed | false | null | [] | null | 6 | 2019-06-11T15:46:43Z | 2019-06-14T06:45:13Z | 2019-06-14T06:45:13Z | MEMBER | null | xref #24173
When building the documentation `./doc/make.py html`, among other warnings we find the next:
```
/home/travis/miniconda3/envs/pandas-dev/lib/python3.6/site-packages/IPython/sphinxext/ipython_directive.py:1020: UserWarning: Code input with no code at /home/travis/build/pandas-dev/pandas/doc/source/user_guide/advanced.rst, line 724
warnings.warn(message)
/home/travis/miniconda3/envs/pandas-dev/lib/python3.6/site-packages/IPython/sphinxext/ipython_directive.py:1020: UserWarning: Code input with no code at /home/travis/build/pandas-dev/pandas/doc/source/user_guide/cookbook.rst, line 1300
warnings.warn(message)
```
All code blocks seem to have code, so it's not obvious why we get the issues. Also, the reported lines aren't probably correct. We should research why this is failing, and fix the problem. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26788/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26788/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26789 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26789/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26789/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26789/events | https://github.com/pandas-dev/pandas/issues/26789 | 454,772,977 | MDU6SXNzdWU0NTQ3NzI5Nzc= | 26,789 | DOC: MultiIndex from levels and codes example fails | {
"avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4",
"events_url": "https://api.github.com/users/datapythonista/events{/privacy}",
"followers_url": "https://api.github.com/users/datapythonista/followers",
"following_url": "https://api.github.com/users/datapythonista/following{/other_user}",
"gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/datapythonista",
"id": 10058240,
"login": "datapythonista",
"node_id": "MDQ6VXNlcjEwMDU4MjQw",
"organizations_url": "https://api.github.com/users/datapythonista/orgs",
"received_events_url": "https://api.github.com/users/datapythonista/received_events",
"repos_url": "https://api.github.com/users/datapythonista/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions",
"type": "User",
"url": "https://api.github.com/users/datapythonista"
} | [
{
"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": 7171206... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 1 | 2019-06-11T15:55:31Z | 2019-06-11T18:46:18Z | 2019-06-11T18:46:14Z | MEMBER | null | In the whatsnews page, the example for the new "MultiIndex constructed from levels and codes" is failing:
https://pandas-docs.github.io/pandas-docs-travis/whatsnew/v0.25.0.html#multiindex-constructed-from-levels-and-codes
The example was added in #26408, @jiangyue12392 can you have a look please? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26789/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26789/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26790 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26790/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26790/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26790/events | https://github.com/pandas-dev/pandas/issues/26790 | 454,776,818 | MDU6SXNzdWU0NTQ3NzY4MTg= | 26,790 | DOC: IPython code blocks without In/Out prompts? | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion f... | open | false | null | [] | null | 1 | 2019-06-11T16:02:57Z | 2021-07-07T16:12:43Z | null | MEMBER | null | We currently use the ipython sphinx directive to run the code examples in our rst docs. This generates output like:
```
In [3]: s = pd.Series([1, 3, 5, np.nan, 6, 8])
In [4]: s
Out[4]:
0 1.0
1 3.0
2 5.0
3 NaN
4 6.0
5 8.0
dtype: float64
```
(first code block from http://pandas.pydata.org/pandas-docs/stable/getting_started/10min.html)
This uses the `In []` and `Out []` that are characteristic for IPython. But, this also generates quite some "visual clutter" (certainly if the number gets bigger > 10 or > 100).
Assume this would be possible\*, what would people think about using plain python-style prompts?
Something like (for the above example)
```
>>> s = pd.Series([1, 3, 5, np.nan, 6, 8])
>>> s
0 1.0
1 3.0
2 5.0
3 NaN
4 6.0
5 8.0
dtype: float64
```
This has less visual clutter IMO (although many people are probably using ipython, so are familiar to the In/Out prompts)
\* the IPython sphinx directives allows to customize the input and output prompts, but this currently expects that a number is inserted into it. So the above will not work without adapting the ipython_directive. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26790/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26790/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26791 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26791/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26791/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26791/events | https://github.com/pandas-dev/pandas/issues/26791 | 454,788,381 | MDU6SXNzdWU0NTQ3ODgzODE= | 26,791 | DOC: Add RangeIndex to the documentation and fix warnings | {
"avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4",
"events_url": "https://api.github.com/users/datapythonista/events{/privacy}",
"followers_url": "https://api.github.com/users/datapythonista/followers",
"following_url": "https://api.github.com/users/datapythonista/following{/other_user}",
"gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/datapythonista",
"id": 10058240,
"login": "datapythonista",
"node_id": "MDQ6VXNlcjEwMDU4MjQw",
"organizations_url": "https://api.github.com/users/datapythonista/orgs",
"received_events_url": "https://api.github.com/users/datapythonista/received_events",
"repos_url": "https://api.github.com/users/datapythonista/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions",
"type": "User",
"url": "https://api.github.com/users/datapythonista"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 2 | 2019-06-11T16:26:28Z | 2019-06-14T08:22:40Z | 2019-06-14T08:22:40Z | MEMBER | null | xref #24173
Looks like we don't have `RangeIndex` in the documentation, and this is causing warnings:
```
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.DataFrame.sparse'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.T'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.array'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.base'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.data'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.dtype'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.dtype_str'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.flags'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.hasnans'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.inferred_type'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.is_all_dates'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.is_monotonic'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.is_unique'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.itemsize'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.nbytes'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.ndim'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.shape'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.size'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.start'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.step'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.stop'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.strides'
pandas\doc\source\reference\index.rst:: WARNING: toctree contains reference to nonexisting document 'reference/api/pandas.RangeIndex.values'
```
In https://github.com/pandas-dev/pandas/pull/26786/files I'm adding the class, but still will require the methods.
From similar classes I see that we just add to the autosummary the methods specific to the index classes, and not the ones inherited from the parent `Index`. I guess we want to do the same here, but we need to make sure there are no warnings related to `RangeIndex` in the docs build.
We also want to make sure the docstring of `RangeIndex` is correct, and has the appropriate attributes and methods. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26791/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26791/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26792 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26792/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26792/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26792/events | https://github.com/pandas-dev/pandas/issues/26792 | 454,808,666 | MDU6SXNzdWU0NTQ4MDg2NjY= | 26,792 | Annotate DataFrame (API exposed items from pandas.core.api) | {
"avatar_url": "https://avatars.githubusercontent.com/u/22582828?v=4",
"events_url": "https://api.github.com/users/vaibhavhrt/events{/privacy}",
"followers_url": "https://api.github.com/users/vaibhavhrt/followers",
"following_url": "https://api.github.com/users/vaibhavhrt/following{/other_user}",
"gists_url": "https://api.github.com/users/vaibhavhrt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vaibhavhrt",
"id": 22582828,
"login": "vaibhavhrt",
"node_id": "MDQ6VXNlcjIyNTgyODI4",
"organizations_url": "https://api.github.com/users/vaibhavhrt/orgs",
"received_events_url": "https://api.github.com/users/vaibhavhrt/received_events",
"repos_url": "https://api.github.com/users/vaibhavhrt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vaibhavhrt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vaibhavhrt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vaibhavhrt"
} | [
{
"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 | 5 | 2019-06-11T17:13:54Z | 2020-09-25T22:43:34Z | 2020-09-25T22:43:34Z | CONTRIBUTOR | null | Part of #26766
<details>
<summary>
- [x] Part 1 #26867
</summary>
- `_constructor`
- `_constructor_expanddim`
- `__init__`
- `axes`
- `shape`
- `_is_homogeneous_type`
</details>
<details>
<summary>
- [x] Part 2 (Rendering Methods) #28453
</summary>
- `_repr_fits_vertical_`
- `_repr_fits_horizontal_`
- `_info_repr`
- `__repr__`
- `_repr_html_`
- `to_string`
</details>
<details>
<summary>
- [ ] Part 3 #28575
</summary>
- `style`
- `items`
- `iteritems`
- `iterrows`
- `itertuples`
- `__len__`
- `dot`
- `__matmul__`
- `__rmatmul__`
</details>
<details>
<summary>
- [ ] Part 4 (IO methods)
</summary>
- `from_dict`
- `to_numpy`
- `to_dict`
- `to_gbq`
- `from_records`
- `to_records`
- `from_items`
- `_from_arrays`
- `to_stata`
- `to_feather`
- `to_parquet`
- `to_html`
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 8,
"laugh": 0,
"rocket": 0,
"total_count": 8,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26792/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26792/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26793 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26793/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26793/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26793/events | https://github.com/pandas-dev/pandas/issues/26793 | 454,833,625 | MDU6SXNzdWU0NTQ4MzM2MjU= | 26,793 | RuntimeWarning in DataFrame.div with fill_value=0 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "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": "2019-08-22T19:23:14Z",
"closed_issues": 145,
"created_at": "2019-06-30T19:32:22Z",
"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": "on-merge: backport to 0.25.x",
"due_on": "2019-08-21T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/65",
"id": 4452219,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels",
"node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==",
"number": 65,
"open_issues": 0,
"state": "closed",
"title": "0.25.1",
"updated_at": "2019-08-22T19:52:56Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65"
} | 0 | 2019-06-11T18:14:32Z | 2019-08-20T17:45:06Z | 2019-08-20T17:45:06Z | CONTRIBUTOR | null | Typically we silence these
```python
import pandas as pd
import numpy as np
a = pd.DataFrame({"A": [0, 2], "B": [0, 4]})
b = pd.DataFrame({"A": [0, 2], "C": [0, 4]}, index=[0, 2])
pdf1 = pd.DataFrame({'A': np.arange(10),
'B': [np.nan, 1, 2, 3, 4] * 2,
'C': [np.nan] * 10,
'D': np.arange(10)},
index=list('abcdefghij'), columns=list('ABCD'))
pdf2 = pd.DataFrame(np.random.randn(10, 4),
index=list('abcdefghjk'), columns=list('ABCX'))
pdf1.div(pdf2, fill_value=0)
```
ouput
```
/Users/taugspurger/sandbox/pandas/pandas/core/frame.py:5138: RuntimeWarning: divide by zero encountered in true_divide
return func(left, right)
/Users/taugspurger/sandbox/pandas/pandas/core/frame.py:5138: RuntimeWarning: invalid value encountered in true_divide
return func(left, right)
Out[46]:
A B C D X
a -0.000000 0.000000 -0.0 NaN 0.0
b -1.381770 -0.870061 0.0 inf -0.0
c -7.686931 -5.446084 0.0 inf 0.0
d -5.396100 1.323770 -0.0 inf 0.0
e 4.114989 -4.120187 -0.0 inf 0.0
f -15.748104 0.000000 0.0 inf 0.0
g -7.147032 0.990337 -0.0 inf 0.0
h -3.421108 -3.465087 0.0 inf 0.0
i inf inf NaN inf NaN
j 27.476268 40.169326 -0.0 inf -0.0
k -0.000000 0.000000 0.0 NaN -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/26793/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26793/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26794 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26794/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26794/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26794/events | https://github.com/pandas-dev/pandas/pull/26794 | 454,868,076 | MDExOlB1bGxSZXF1ZXN0Mjg3MjMzNDk3 | 26,794 | DOC: Fix rolling doc with win_type triang (#22268) | {
"avatar_url": "https://avatars.githubusercontent.com/u/13166114?v=4",
"events_url": "https://api.github.com/users/ihsansecer/events{/privacy}",
"followers_url": "https://api.github.com/users/ihsansecer/followers",
"following_url": "https://api.github.com/users/ihsansecer/following{/other_user}",
"gists_url": "https://api.github.com/users/ihsansecer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ihsansecer",
"id": 13166114,
"login": "ihsansecer",
"node_id": "MDQ6VXNlcjEzMTY2MTE0",
"organizations_url": "https://api.github.com/users/ihsansecer/orgs",
"received_events_url": "https://api.github.com/users/ihsansecer/received_events",
"repos_url": "https://api.github.com/users/ihsansecer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ihsansecer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ihsansecer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ihsansecer"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-06-11T19:38:13Z | 2019-07-11T15:47:51Z | 2019-06-12T01:42:51Z | CONTRIBUTOR | null | - [x] closes #22268
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26794/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26794/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26794.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26794",
"merged_at": "2019-06-12T01:42:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26794.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26794"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26795 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26795/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26795/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26795/events | https://github.com/pandas-dev/pandas/pull/26795 | 454,891,859 | MDExOlB1bGxSZXF1ZXN0Mjg3MjUyNjMz | 26,795 | DOC: Document existing functionality of pandas.DataFrame.to_sql() #11886 | {
"avatar_url": "https://avatars.githubusercontent.com/u/7797029?v=4",
"events_url": "https://api.github.com/users/oguzhanogreden/events{/privacy}",
"followers_url": "https://api.github.com/users/oguzhanogreden/followers",
"following_url": "https://api.github.com/users/oguzhanogreden/following{/other_user}",
"gists_url": "https://api.github.com/users/oguzhanogreden/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/oguzhanogreden",
"id": 7797029,
"login": "oguzhanogreden",
"node_id": "MDQ6VXNlcjc3OTcwMjk=",
"organizations_url": "https://api.github.com/users/oguzhanogreden/orgs",
"received_events_url": "https://api.github.com/users/oguzhanogreden/received_events",
"repos_url": "https://api.github.com/users/oguzhanogreden/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/oguzhanogreden/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/oguzhanogreden/subscriptions",
"type": "User",
"url": "https://api.github.com/users/oguzhanogreden"
} | [
{
"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": "ea91a4",
"default": false,
"description": "type annotations, myp... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 18 | 2019-06-11T20:36:35Z | 2019-08-31T19:15:42Z | 2019-08-30T17:09:04Z | CONTRIBUTOR | null | - [x] Adds documentation for #11886
- [ ] doc build fails (may be related to #26723)
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] **What's new?** Adds documentation to an existing functionality. In fact, the functionality is documented at `pandas.io.sql.to_sql` but it's not visible [here](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_sql.html).
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26795/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26795/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26795.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26795",
"merged_at": "2019-08-30T17:09:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26795.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26795"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26796 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26796/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26796/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26796/events | https://github.com/pandas-dev/pandas/issues/26796 | 454,912,920 | MDU6SXNzdWU0NTQ5MTI5MjA= | 26,796 | limit_area and limit_direction do not have an effect when interpolation method is 'pad' | {
"avatar_url": "https://avatars.githubusercontent.com/u/102827?v=4",
"events_url": "https://api.github.com/users/cchwala/events{/privacy}",
"followers_url": "https://api.github.com/users/cchwala/followers",
"following_url": "https://api.github.com/users/cchwala/following{/other_user}",
"gists_url": "https://api.github.com/users/cchwala/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cchwala",
"id": 102827,
"login": "cchwala",
"node_id": "MDQ6VXNlcjEwMjgyNw==",
"organizations_url": "https://api.github.com/users/cchwala/orgs",
"received_events_url": "https://api.github.com/users/cchwala/received_events",
"repos_url": "https://api.github.com/users/cchwala/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cchwala/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cchwala/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cchwala"
} | [
{
"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, d... | closed | false | null | [] | {
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
} | 4 | 2019-06-11T21:30:21Z | 2020-12-01T22:05:06Z | 2020-12-01T22:05:06Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
```python
In [1]: import pandas as pd
In [2]: import numpy as np
In [3]: s = pd.Series([
...: np.nan,
...: 1., np.nan,
...: 2., np.nan, np.nan,
...: 5., np.nan, np.nan, np.nan,
...: -1., np.nan, np.nan
...: ])
In [4]: s.interpolate(method='pad', limit_area='inside')
Out[4]:
0 NaN
1 1.0
2 1.0
3 2.0
4 2.0
5 2.0
6 5.0
7 5.0
8 5.0
9 5.0
10 -1.0
11 -1.0
12 -1.0
dtype: float64
# For method='linear' the `limit_area` kwarg works as expected
In [5]: s.interpolate(method='linear', limit_area='inside')
Out[5]:
0 NaN
1 1.0
2 1.5
3 2.0
4 3.0
5 4.0
6 5.0
7 3.5
8 2.0
9 0.5
10 -1.0
11 NaN
12 NaN
dtype: float64
```
#### Problem description
The kwargs `limit_area` and `limit_direction` for `interpolate()`, introduce in https://github.com/pandas-dev/pandas/pull/16513 do not seem to have an effect when using the method `pad`. They work with other interpolation methods, e.g. `linear`.
There are two different pathways for interpolate depending on the selected method.
https://github.com/pandas-dev/pandas/blob/b8ad9da4213be55c587db015c640d927aeb7feaf/pandas/core/internals/blocks.py#L1096-L1116
For pad, ffill and bfill `_interpolate_with_fill()` is used which calls `missing.interpolate_2d` which does not seem to recognize the keywords limit_direction and limit_area. They are silently ignored.
I might be able to fix that during https://github.com/pandas-dev/pandas/pull/25141, but maybe a fix needs more fundamental changes.
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: eaacefd0957bfc6735c8782ac2ba571d7131d250
python: 3.7.2.final.0
python-bits: 64
OS: Darwin
OS-release: 16.7.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
LOCALE: de_DE.UTF-8
pandas: 0.25.0.dev0+725.geaacefd09
pytest: 4.1.1
pip: 18.1
setuptools: 40.6.3
Cython: 0.29.2
numpy: 1.15.4
scipy: 1.2.0
pyarrow: 0.11.1
xarray: 0.11.0
IPython: 7.2.0
sphinx: 1.8.2
patsy: 0.5.1
dateutil: 2.7.5
pytz: 2018.9
blosc: None
bottleneck: 1.2.1
tables: 3.4.4
numexpr: 2.6.9
feather: None
matplotlib: 3.0.2
openpyxl: 2.5.12
xlrd: 1.2.0
xlwt: 1.3.0
xlsxwriter: 1.1.2
lxml.etree: 4.3.0
bs4: 4.7.1
html5lib: 1.0.1
sqlalchemy: 1.2.16
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: 0.2.0
fastparquet: 0.2.1
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/26796/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26796/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26797 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26797/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26797/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26797/events | https://github.com/pandas-dev/pandas/issues/26797 | 454,919,603 | MDU6SXNzdWU0NTQ5MTk2MDM= | 26,797 | How can i get the mean of a column and create another column with its results? | {
"avatar_url": "https://avatars.githubusercontent.com/u/51389829?v=4",
"events_url": "https://api.github.com/users/juancruzms/events{/privacy}",
"followers_url": "https://api.github.com/users/juancruzms/followers",
"following_url": "https://api.github.com/users/juancruzms/following{/other_user}",
"gists_url": "https://api.github.com/users/juancruzms/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/juancruzms",
"id": 51389829,
"login": "juancruzms",
"node_id": "MDQ6VXNlcjUxMzg5ODI5",
"organizations_url": "https://api.github.com/users/juancruzms/orgs",
"received_events_url": "https://api.github.com/users/juancruzms/received_events",
"repos_url": "https://api.github.com/users/juancruzms/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/juancruzms/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/juancruzms/subscriptions",
"type": "User",
"url": "https://api.github.com/users/juancruzms"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] | closed | false | null | [] | null | 1 | 2019-06-11T21:50:04Z | 2019-06-12T01:45:11Z | 2019-06-12T01:45:11Z | NONE | null | So im working with a dataframe that contains info about the price at which several houses were sold in Melbourne during a certain time period.
It looks like this:
<img width="517" alt="5" src="https://user-images.githubusercontent.com/51389829/59308652-6de04080-8c56-11e9-88a2-6ac79ae9eaa5.png">
Now, here comes the tricky part. I have dropped all columns in my dataframe except for "Date" and "Price", and i have used the groupby function to group every row according its date.
I want to get the mean price (under the 'Price' column) of all the rows that have the same date value (under the 'Date' column). Then, i want to input those values in a new column (say, 'AvgPrice') so as to create a nice looking scatter plot with that new column and the dates.
So, in other words, i have many 'Date' values, with different 'Price' values, but i would like to get a single 'Date' value for each date in the dataframe, and every single 'Date' value has to have its own corresponding price (which will result from doing the mean).
I hope that was clear enough. I apologize beforehand for my english.
So far, i have tried this code:
df2['AvgP'] = df2.groupby('Date')['Price'].mean()
df2.head()
This is the result i get:
<img width="171" alt="graph" src="https://user-images.githubusercontent.com/51389829/59309123-9fa5d700-8c57-11e9-9b4d-a74ad0da9903.png">
The column is created, but there are only null values in it. Also, the dates dont seem to group correctly.
What am i doing wrong?
Any help will be greatly appreciated! | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26797/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26797/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26798 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26798/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26798/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26798/events | https://github.com/pandas-dev/pandas/issues/26798 | 454,925,725 | MDU6SXNzdWU0NTQ5MjU3MjU= | 26,798 | Error importing name 'DataFrame' from 'pandas.core.api' | {
"avatar_url": "https://avatars.githubusercontent.com/u/21110478?v=4",
"events_url": "https://api.github.com/users/connerpate/events{/privacy}",
"followers_url": "https://api.github.com/users/connerpate/followers",
"following_url": "https://api.github.com/users/connerpate/following{/other_user}",
"gists_url": "https://api.github.com/users/connerpate/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/connerpate",
"id": 21110478,
"login": "connerpate",
"node_id": "MDQ6VXNlcjIxMTEwNDc4",
"organizations_url": "https://api.github.com/users/connerpate/orgs",
"received_events_url": "https://api.github.com/users/connerpate/received_events",
"repos_url": "https://api.github.com/users/connerpate/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/connerpate/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/connerpate/subscriptions",
"type": "User",
"url": "https://api.github.com/users/connerpate"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] | closed | false | null | [] | null | 5 | 2019-06-11T22:09:47Z | 2019-06-12T12:41:07Z | 2019-06-12T12:41:07Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
# Your code here
import pandas
```
#### Problem description
Whenever I run a script containing pandas, I get the following error:
Traceback (most recent call last):
File "csv.py", line 1, in <module>
import pandas as pd
File "C:\Users\conne\Anaconda3\envs\asdf\lib\site-packages\pandas\__init__.py", line 42, in <module>
from pandas.core.api import *
File "C:\Users\conne\Anaconda3\envs\asdf\lib\site-packages\pandas\core\api.py", line 26, in <module>
from pandas.core.groupby import Grouper
File "C:\Users\conne\Anaconda3\envs\asdf\lib\site-packages\pandas\core\groupby\__init__.py", line 1, in <module>
from pandas.core.groupby.groupby import GroupBy # noqa: F401
File "C:\Users\conne\Anaconda3\envs\asdf\lib\site-packages\pandas\core\groupby\groupby.py", line 37, in <module>
from pandas.core.frame import DataFrame
File "C:\Users\conne\Anaconda3\envs\asdf\lib\site-packages\pandas\core\frame.py", line 87, in <module>
from pandas.core.generic import NDFrame, _shared_docs
File "C:\Users\conne\Anaconda3\envs\asdf\lib\site-packages\pandas\core\generic.py", line 49, in <module>
from pandas.io.formats.format import DataFrameFormatter, format_percentiles
File "C:\Users\conne\Anaconda3\envs\asdf\lib\site-packages\pandas\io\formats\format.py", line 34, in <module>
from pandas.io.common import _expand_user, _stringify_path
File "C:\Users\conne\Anaconda3\envs\asdf\lib\site-packages\pandas\io\common.py", line 5, in <module>
import csv
File "C:\Users\conne\Documents\Work\Career & New Jobs\2019\button\csv.py", line 2, in <module>
import pandasql as ps
File "C:\Users\conne\Anaconda3\envs\asdf\lib\site-packages\pandasql\__init__.py", line 1, in <module>
from .sqldf import *
File "C:\Users\conne\Anaconda3\envs\asdf\lib\site-packages\pandasql\sqldf.py", line 3, in <module>
from pandas.io.sql import to_sql, read_sql
File "C:\Users\conne\Anaconda3\envs\asdf\lib\site-packages\pandas\io\sql.py", line 26, in <module>
from pandas.core.api import DataFrame, Series
ImportError: cannot import name 'DataFrame' from 'pandas.core.api' (C:\Users\conne\Anaconda3\envs\asdf\lib\site-packages\pandas\core\api.py)
I am currently using the Anaconda Python distribution with the most recent version of pandas, but I've also used all combinations of the following:
- Python 3.7.3
- pandas 0.23
- pandas 0.24
Additionally, I've uninstalled and reinstalled pandas (using pip) and Python, and I just finished resetting Windows 10 on my machine, to no avail.
Interestingly, I am able to import pandas in a command line interface with no issue.
**Note**: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!
**Note**: Many problems can be resolved by simply upgrading `pandas` to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if `master` addresses this issue, but that is not necessary.
For documentation-related issues, you can check the latest versions of the docs on `master` here:
https://pandas-docs.github.io/pandas-docs-travis/
If the issue has not been resolved there, go ahead and file it in the issue tracker.
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
</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/26798/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26798/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26799 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26799/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26799/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26799/events | https://github.com/pandas-dev/pandas/pull/26799 | 454,959,569 | MDExOlB1bGxSZXF1ZXN0Mjg3MzA3NzMy | 26,799 | TST/REF: parametrize arithmetic tests, simplify parts of core.ops | {
"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": "C4A000",
"default": false,
"de... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 7 | 2019-06-12T00:29:02Z | 2019-06-25T18:00:19Z | 2019-06-25T16:11:51Z | MEMBER | null | Parametrization is straightforward.
Fixing xfailed test in test_properties is straightforward
In core.ops: ATM we have a nested closure that wraps all of na_op in a try/except, but there is really only one line we want to catch. This simplifies the closure and catches only the relevant line. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26799/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26799/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26799.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26799",
"merged_at": "2019-06-25T16:11:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26799.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26799"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26800 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26800/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26800/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26800/events | https://github.com/pandas-dev/pandas/pull/26800 | 454,982,602 | MDExOlB1bGxSZXF1ZXN0Mjg3MzI0ODI1 | 26,800 | REF: remove unreachable code in core.internals | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 4 | 2019-06-12T02:27:29Z | 2019-06-12T14:08:25Z | 2019-06-12T11:13:53Z | MEMBER | null | @TomAugspurger it looks like _sparse_blockify is never hit. Is that no longer reachable? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26800/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26800/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26800.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26800",
"merged_at": "2019-06-12T11:13:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26800.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26800"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26801 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26801/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26801/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26801/events | https://github.com/pandas-dev/pandas/issues/26801 | 454,987,183 | MDU6SXNzdWU0NTQ5ODcxODM= | 26,801 | Inconsistency between pd.Categorical(x) and x.astype('category') | {
"avatar_url": "https://avatars.githubusercontent.com/u/8186432?v=4",
"events_url": "https://api.github.com/users/thequackdaddy/events{/privacy}",
"followers_url": "https://api.github.com/users/thequackdaddy/followers",
"following_url": "https://api.github.com/users/thequackdaddy/following{/other_user}",
"gists_url": "https://api.github.com/users/thequackdaddy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/thequackdaddy",
"id": 8186432,
"login": "thequackdaddy",
"node_id": "MDQ6VXNlcjgxODY0MzI=",
"organizations_url": "https://api.github.com/users/thequackdaddy/orgs",
"received_events_url": "https://api.github.com/users/thequackdaddy/received_events",
"repos_url": "https://api.github.com/users/thequackdaddy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/thequackdaddy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thequackdaddy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/thequackdaddy"
} | [] | 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 | 2019-06-12T02:49:32Z | 2019-06-12T14:26:05Z | 2019-06-12T03:35:51Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
So in pandas 0.24.2, this gave you the identical response...
```python
ipomPython 3.7.3 (default, Mar 27 2019, 16:54:48)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.4.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import pandas as pd
In [2]: x = pd.Series(['a', 'b', 'c'], name='foo')
In [3]: pd.get_dummies(x.astype('category'))
Out[3]:
a b c
0 1 0 0
1 0 1 0
2 0 0 1
In [4]: pd.get_dummies(pd.Categorical(x))
Out[4]:
a b c
0 1 0 0
1 0 1 0
2 0 0 1
In [5]: pd.__version__
Out[5]: '0.24.2'
```
In pandas 0.25.0 dev, I see some differences.
```python
Python 3.7.3 (default, Mar 27 2019, 16:54:48)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.5.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import pandas as pd
In [2]: x = pd.Series(['a', 'b', 'c'], name='foo')
In [3]: pd.get_dummies(x.astype('category'))
Out[3]:
foo a b c
0 1 0 0
1 0 1 0
2 0 0 1
In [4]: pd.get_dummies(pd.Categorical(x))
Out[4]:
a b c
0 1 0 0
1 0 1 0
2 0 0 1
In [5]: pd.__version__
Out[5]: '0.25.0.dev0+718.gdeffee680'
```
***Notice that the `astype` method now results in the index having a name. That didn't happen before.***
#### Problem description
So in 0.24.2, these 2 ways of converting a series of strings to categoricals to a dummies resulted in the same answer.
It now appears that they are different with one having a named index and the other not.
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
In [6]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Darwin
OS-release: 18.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.25.0.dev0+718.gdeffee680
pytest: 4.5.0
pip: 19.1.1
setuptools: 41.0.1
Cython: 0.29.8
numpy: 1.16.4
scipy: 1.2.1
pyarrow: None
xarray: None
IPython: 7.5.0
sphinx: 2.1.0
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.1.0
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: 4.3.3
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10.1
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/26801/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26801/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26802 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26802/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26802/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26802/events | https://github.com/pandas-dev/pandas/pull/26802 | 454,992,357 | MDExOlB1bGxSZXF1ZXN0Mjg3MzMyMTA4 | 26,802 | REF: Consistent optional dependency handling | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 11 | 2019-06-12T03:16:04Z | 2019-06-12T18:59:01Z | 2019-06-12T17:56:54Z | CONTRIBUTOR | null | Standardizes how we do our optional dependency checking.
1. Adds a new `import_optional_dependency` helper that handles optional importing, raising with a nice message, and warning / raising if the version is not correct.
2. Changes inline `try / except ImportError` to use `import_optional_dependency`
3. Documents all(?) optional dependencies with their minimum version.
4. Documents that this is how devs should do optional dependencies.
```pytb
>>> pd.read_gbq('')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/taugspurger/sandbox/pandas/pandas/io/gbq.py", line 140, in read_gbq
pandas_gbq = _try_import()
File "/Users/taugspurger/sandbox/pandas/pandas/io/gbq.py", line 14, in _try_import
extra=msg,
File "/Users/taugspurger/sandbox/pandas/pandas/compat/_optional.py", line 82, in import_optional_dependency
raise ImportError(message.format(name=name, extra=extra)) from None
ImportError: Missing optional dependency 'pandas_gbq'. pandas-gbq is required to load data from Google BigQuery. See the docs: https://pandas-gbq.readthedocs.io. Use pip or conda to install pandas_gbq.
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26802/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26802/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26802.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26802",
"merged_at": "2019-06-12T17:56:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26802.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26802"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26803 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26803/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26803/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26803/events | https://github.com/pandas-dev/pandas/issues/26803 | 454,993,525 | MDU6SXNzdWU0NTQ5OTM1MjU= | 26,803 | when all missing data, df.count() and df.sum() maybe better to return nan than 0 | {
"avatar_url": "https://avatars.githubusercontent.com/u/13097013?v=4",
"events_url": "https://api.github.com/users/david-shu/events{/privacy}",
"followers_url": "https://api.github.com/users/david-shu/followers",
"following_url": "https://api.github.com/users/david-shu/following{/other_user}",
"gists_url": "https://api.github.com/users/david-shu/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/david-shu",
"id": 13097013,
"login": "david-shu",
"node_id": "MDQ6VXNlcjEzMDk3MDEz",
"organizations_url": "https://api.github.com/users/david-shu/orgs",
"received_events_url": "https://api.github.com/users/david-shu/received_events",
"repos_url": "https://api.github.com/users/david-shu/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/david-shu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/david-shu/subscriptions",
"type": "User",
"url": "https://api.github.com/users/david-shu"
} | [] | 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 | 2019-06-12T03:21:48Z | 2019-06-12T03:41:05Z | 2019-06-12T03:25:04Z | NONE | null | ```
>>> import numpy as np
>>> import pandas as pd
>>> x = np.ma.masked_all( (5,2) )
>>> df = pd.DataFrame( x, columns=('a','b'))
>>> print( df.count() )
a 0
b 0
dtype: int64
>>> print( df.sum() )
a 0.0
b 0.0
dtype: float64
```
**when all missing data,
df.count() and df.sum() maybe better to return nan than 0.
just like df.mean.**
```
>>> df.mean()
a NaN
b NaN
dtype: float64
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26803/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26803/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26804 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26804/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26804/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26804/events | https://github.com/pandas-dev/pandas/issues/26804 | 455,090,670 | MDU6SXNzdWU0NTUwOTA2NzA= | 26,804 | CLN: Implement io modules as plugins | {
"avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4",
"events_url": "https://api.github.com/users/datapythonista/events{/privacy}",
"followers_url": "https://api.github.com/users/datapythonista/followers",
"following_url": "https://api.github.com/users/datapythonista/following{/other_user}",
"gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/datapythonista",
"id": 10058240,
"login": "datapythonista",
"node_id": "MDQ6VXNlcjEwMDU4MjQw",
"organizations_url": "https://api.github.com/users/datapythonista/orgs",
"received_events_url": "https://api.github.com/users/datapythonista/received_events",
"repos_url": "https://api.github.com/users/datapythonista/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions",
"type": "User",
"url": "https://api.github.com/users/datapythonista"
} | [
{
"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": "FCE94F",
"default": false,
"description": "Internal... | open | false | null | [] | null | 9 | 2019-06-12T08:56:22Z | 2021-07-10T02:39:11Z | null | MEMBER | null | (following the discussion in #26710)
Currently, most of the `io` functionality (csv, json, html, pickle, stata...) lives in `pandas/io`. But the `to_*` functions are implemented in `pandas/core/[generic|frame|series].py`. The tests live in `pandas/tests/io`. And their dependencies, are not explicit anywhere afaik, they are imported lazily so the needed libraries are reported once the function is used (some are listed in `environment.yml` but not all).
I propose to move every io type to a directory in `pandas/contrib/io` that will include:
- The `read_*` and `to_*` functions
- The docstrings with the documentation
- The tests
- A file with the dependencies
So, a example structure could be:
```
pandas/contrib/io/stata/__init__.py
pandas/contrib/io/stata/reader.py
pandas/contrib/io/stata/writer.py
pandas/contrib/io/stata/tests/*
pandas/contrib/io/stata/dependencies.yml
```
To call the functionality we could simply have something like this in `Series`, `DataFrame` (also something similar for `read_*`), but other ideas welcome:
```python
def __getattr__(self, name):
if name.startswith('to_'):
mod = importlib.import_module('pandas.contrib.io.{}'.format(name[3:]):
return mod.export_dataframe()
```
I see several advantages here:
- A clearer (more modular and more uniform) structure of the code (`generic.py` has more than 11k lines of code, a significant part are io related, same for `frame.py` with 8k...)
- We can better manage the dependencies (they would be explicit, and we don't need to have lazy dependencies if everything is imported in a lazy way). Around two thirds of our optional dependencies are for IO modules for what I've seen.
- In an easy way we can explicitly decide in every build which io modules we want to test, and avoid having all the `skip_if_no` that cause problems and tests stop being run without noticing
- Third party packages can be developed following a similar structure, so we can potentially add them to pandas if new formats become popular, or we can easily move to a third party project io packages that we consider they're not worth maintaining ourselves anymore.
Not part of this proposal, but I think in the future we could also move to `contrib` other parts that are not IO but could also benefit from being decoupled, like plotting or the extension arrays (that's why I think `contrib/io/` makes sense, so we can have `contrib/plotting`... in the future).
CC: @pandas-dev/pandas-core | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26804/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26804/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26805 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26805/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26805/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26805/events | https://github.com/pandas-dev/pandas/issues/26805 | 455,097,028 | MDU6SXNzdWU0NTUwOTcwMjg= | 26,805 | df.groupby(group_keys=True) sometimes doesn't do anything | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue... | closed | false | null | [] | null | 1 | 2019-06-12T09:09:48Z | 2019-06-12T18:23:21Z | 2019-06-12T12:40:35Z | NONE | null | According to the df.groupby docstring :
```
group_keys : bool, default True
When calling apply, add group keys to index to identify pieces.
```
But it seems to work for some cases and not others:
```
df = pd.DataFrame({'key': [1, 1, 1, 2, 2, 2, 3, 3, 3],
'value': range(9)})
df.groupby('key', group_keys=True).apply(lambda x: x.key) # index by groups
df.groupby('key', group_keys=True).apply(pd.np.sum) # index by groups
df.groupby('key', group_keys=True).apply(lambda x: x[:].key) # index by groups
df.groupby('key', group_keys=True).apply(lambda x:x-x.mean()) # does nothing
df.groupby('key', group_keys=True).apply(lambda x:x) # does nothing
```
For example, the following gives the same output regardles of the `group_keys` value
```
import pandas as pd
df=pd.DataFrame(dict(price=[10,10,20,20,30,30],color=[10,10,20,20,30,30],cost=(100,200,300,400,500,600)))
df.groupby(['price'],group_keys=False).apply(lambda x:x)
# result
price color cost
0 13 11 101
1 11 11 201
2 22 21 301
3 21 21 401
4 32 31 501
5 31 31 601
df.groupby(['price'],group_keys=True).apply(lambda x:x)
# same result
price color cost
0 13 11 101
1 11 11 201
2 22 21 301
3 21 21 401
4 32 31 501
5 31 31 601
```
xref #22545 for related groupby confusion.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26805/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26805/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26806 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26806/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26806/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26806/events | https://github.com/pandas-dev/pandas/issues/26806 | 455,099,046 | MDU6SXNzdWU0NTUwOTkwNDY= | 26,806 | df.groupby(as_index=bool) affects .agg('sum') but not .transform('sum') | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] | closed | false | null | [] | null | 2 | 2019-06-12T09:14:02Z | 2019-06-12T19:23:39Z | 2019-06-12T19:23:39Z | NONE | null | from docstring:
```
as_index : bool, default True
For aggregated output, return object with group labels as the
index. Only relevant for DataFrame input. as_index=False is
effectively "SQL-style" grouped output.
```
```python
In [26]: df=pd.DataFrame(dict(price=[10,10,20,20,30,30],color=[10,10,20,20,30,30],cost=(100,200,300,400,500,600)))
...: # makes a difference - result index is a multindex of groups
...: print(df.groupby(['price','color'],as_index=True).agg('sum'))
...: print(df.groupby(['price','color'],as_index=False).agg('sum'))
10 10 300
20 20 700
30 30 1100
price color cost
0 10 10 300
1 20 20 700
2 30 30 1100
In [30]:# does not makes a difference - result index is just a default RangeIndex
...: print(df.groupby(['price','color'],as_index=True).transform('sum'))
...: print(df.groupby(['price','color'],as_index=False).transform('sum'))
cost
0 300
1 300
2 700
3 700
4 1100
5 1100
cost
0 300
1 300
2 700
3 700
4 1100
5 1100
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26806/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26806/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26807 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26807/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26807/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26807/events | https://github.com/pandas-dev/pandas/issues/26807 | 455,139,844 | MDU6SXNzdWU0NTUxMzk4NDQ= | 26,807 | Split large test modules | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "fbca04",
"d... | closed | 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 | 2019-06-12T10:41:44Z | 2021-07-10T02:40:17Z | 2021-07-10T02:40:17Z | MEMBER | null | - [ ] pandas/tests/tseries/offsets/test_offsets.py #27085
- [ ] pandas/tests/test_resample.py #17806 (has now been split, some post split cleanup required)
- [ ] pandas/tests/io/test_pytables.py #18498
- [x] pandas/tests/test_window.py #19228
- [ ] pandas/tests/test_base.py #23877
- [x] pandas/tests/frame/test_indexing.py #25798
PRs welcome! | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26807/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26807/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26808 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26808/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26808/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26808/events | https://github.com/pandas-dev/pandas/issues/26808 | 455,150,612 | MDU6SXNzdWU0NTUxNTA2MTI= | 26,808 | Unable to set origin of inter-day aggregated intervals | {
"avatar_url": "https://avatars.githubusercontent.com/u/526577?v=4",
"events_url": "https://api.github.com/users/Peque/events{/privacy}",
"followers_url": "https://api.github.com/users/Peque/followers",
"following_url": "https://api.github.com/users/Peque/following{/other_user}",
"gists_url": "https://api.github.com/users/Peque/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Peque",
"id": 526577,
"login": "Peque",
"node_id": "MDQ6VXNlcjUyNjU3Nw==",
"organizations_url": "https://api.github.com/users/Peque/orgs",
"received_events_url": "https://api.github.com/users/Peque/received_events",
"repos_url": "https://api.github.com/users/Peque/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Peque/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Peque/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Peque"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "207de5",
"default": false,
"description": "resample... | closed | false | null | [] | null | 4 | 2019-06-12T11:07:40Z | 2021-07-10T04:18:47Z | 2021-07-10T04:18:47Z | CONTRIBUTOR | null | Having a series like the one bellow, which I resample to `'2D'` frequency and the sum the resulting resampler:
```python
>>> dates = pandas.date_range('2019-01-01', '2019-01-10', freq='D')[[0, 4, 5, 8]]
>>> dates
DatetimeIndex(['2019-01-01', '2019-01-05', '2019-01-06', '2019-01-09'], dtype='datetime64[ns]', freq=None)
>>> pandas.Series(index=dates, data=[0, 1, 2, 3]).resample('2D').sum()
2019-01-01 0
2019-01-03 0
2019-01-05 3
2019-01-07 0
2019-01-09 3
Freq: 2D, dtype: int64
```
As a result, I got an index starting on the first date of the provided dates.
However, if I slightly change the dates so that the first one is `'2019-01-02'` instead of `'2019-01-01'`, I get completely different results:
```python
>>> dates2 = pandas.date_range('2019-01-01', '2019-01-10', freq='D')[[1, 4, 5, 8]]
>>> dates2
DatetimeIndex(['2019-01-02', '2019-01-05', '2019-01-06', '2019-01-09'], dtype='datetime64[ns]', freq=None)
>>> pandas.Series(index=dates2, data=[0, 1, 2, 3]).resample('2D').sum()
2019-01-02 0
2019-01-04 1
2019-01-06 2
2019-01-08 3
Freq: 2D, dtype: int64
```
There is no way to specify a base/origin date for the aggregated intervals like there is for intra-day resampling, right?
Use case
------------
Having multiple time series, not necessarily periodic, not necessarily starting/ending in the same dates, I would like to calculate the correlation between them. To do so, I first need to aggregate the results with a period between 1 day and 1 week (`'2D'`, `'3D'`, `'4D'`...). In order to be able to match the correlation I need indexes to be aligned with respect to a common start date.
Same problem would show up if I wanted to aggregate multiple weeks, months, years... (`'3W'`, `'5M'`, `'2Y'`...) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26808/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26808/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26809 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26809/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26809/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26809/events | https://github.com/pandas-dev/pandas/issues/26809 | 455,152,554 | MDU6SXNzdWU0NTUxNTI1NTQ= | 26,809 | Enhancement: Subset selection similar to R dplyr filter | {
"avatar_url": "https://avatars.githubusercontent.com/u/1210973?v=4",
"events_url": "https://api.github.com/users/rasmuse/events{/privacy}",
"followers_url": "https://api.github.com/users/rasmuse/followers",
"following_url": "https://api.github.com/users/rasmuse/following{/other_user}",
"gists_url": "https://api.github.com/users/rasmuse/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rasmuse",
"id": 1210973,
"login": "rasmuse",
"node_id": "MDQ6VXNlcjEyMTA5NzM=",
"organizations_url": "https://api.github.com/users/rasmuse/orgs",
"received_events_url": "https://api.github.com/users/rasmuse/received_events",
"repos_url": "https://api.github.com/users/rasmuse/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rasmuse/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rasmuse/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rasmuse"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] | closed | false | null | [] | null | 5 | 2019-06-12T11:12:18Z | 2019-06-12T16:39:14Z | 2019-06-12T16:28:11Z | NONE | null | Edited: Fixed typo
This is a feature request. I start by showing how I usually work and then suggest a new method `NDFrame.subset` including an implementation sketch.
I have also written a longer explanation and some examples [here (personal blog)](http://rasmuse.github.io/pandas-subset.html) and [here (jupyter notebook)](https://github.com/rasmuse/pandas-subset/blob/ddd6e54bdb8b3bdbc820e8bc48bb792b474a3629/A%20better%20way%20to%20select%20subsets%20in%20pandas.ipynb).
Happy to discuss, and if there is interest in this I could probably provide a PR.
#### Code Sample
To filter row subsets of DataFrames or Series based on the values I usually write something like
```python
data_subset = (
data
.pipe(lambda d: d[d['some_column'] > 0])
.pipe(lambda d: d[complicated_predicate(d)])
# etc, chaining operations as necessary
)
```
#### Problem description
This works perfectly well but the syntax seems unneccesarily complicated given how often I do this operation. For comparison, using `filter()` in R's `dplyr` package you would write
```R
data.subset <- data %>%
filter(some.column > 0) %>%
filter(complicated.predicate(.)) %>%
#etc
```
To my eyes (although I don't use R much), the R code makes the intention more visible because
1. the R code has less brackets etc, and
2. the verb `filter` is much more specific than `pipe`.
#### Suggestion
I would suggest adding a method `subset` to `NDFrame`. A minimal implementation could be something like this:
```python
class NDFrame:
...
def subset(d, predicate, *args, **kwargs):
return d[predicate(d, *args, **kwargs)]
```
This could be used as follows:
```python
data_subset = (
data
.subset(lambda d: d['some_column'] > 0)
.subset(complicated_predicate)
# etc, chaining operations as necessary
)
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26809/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26809/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26810 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26810/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26810/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26810/events | https://github.com/pandas-dev/pandas/pull/26810 | 455,206,456 | MDExOlB1bGxSZXF1ZXN0Mjg3NTAxOTMy | 26,810 | DOC: Fixing some more warnings | {
"avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4",
"events_url": "https://api.github.com/users/datapythonista/events{/privacy}",
"followers_url": "https://api.github.com/users/datapythonista/followers",
"following_url": "https://api.github.com/users/datapythonista/following{/other_user}",
"gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/datapythonista",
"id": 10058240,
"login": "datapythonista",
"node_id": "MDQ6VXNlcjEwMDU4MjQw",
"organizations_url": "https://api.github.com/users/datapythonista/orgs",
"received_events_url": "https://api.github.com/users/datapythonista/received_events",
"repos_url": "https://api.github.com/users/datapythonista/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions",
"type": "User",
"url": "https://api.github.com/users/datapythonista"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 15 | 2019-06-12T13:13:20Z | 2019-06-14T06:48:32Z | 2019-06-14T06:45:13Z | MEMBER | null | - [X] closes #26788, xref #24173
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Fixing some more warnings in the doc build, and small improvements to the interpolation doc.
CC: @jorisvandenbossche | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26810/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26810/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26810.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26810",
"merged_at": "2019-06-14T06:45:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26810.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26810"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26811 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26811/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26811/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26811/events | https://github.com/pandas-dev/pandas/pull/26811 | 455,226,306 | MDExOlB1bGxSZXF1ZXN0Mjg3NTE4MTE5 | 26,811 | CLN: compat.to_str -> core.dtypes.common.ensure_str | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [
{
"color": "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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 2 | 2019-06-12T13:50:30Z | 2019-06-12T14:57:01Z | 2019-06-12T14:56:56Z | CONTRIBUTOR | null | ``compat.to_str`` is useful to have in cases where an object might be a ``bytes`` object, so it's moved to ``core.dtypes.common`` and renamed to ``ensure_str``.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26811/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26811/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26811.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26811",
"merged_at": "2019-06-12T14:56:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26811.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26811"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26812 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26812/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26812/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26812/events | https://github.com/pandas-dev/pandas/issues/26812 | 455,293,284 | MDU6SXNzdWU0NTUyOTMyODQ= | 26,812 | Multiplying nd.array by series returns incorrect result in pandas 0.23.0-0.23.4 (but is fixed in 0.24) | {
"avatar_url": "https://avatars.githubusercontent.com/u/8322751?v=4",
"events_url": "https://api.github.com/users/dburkhardt/events{/privacy}",
"followers_url": "https://api.github.com/users/dburkhardt/followers",
"following_url": "https://api.github.com/users/dburkhardt/following{/other_user}",
"gists_url": "https://api.github.com/users/dburkhardt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dburkhardt",
"id": 8322751,
"login": "dburkhardt",
"node_id": "MDQ6VXNlcjgzMjI3NTE=",
"organizations_url": "https://api.github.com/users/dburkhardt/orgs",
"received_events_url": "https://api.github.com/users/dburkhardt/received_events",
"repos_url": "https://api.github.com/users/dburkhardt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dburkhardt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dburkhardt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dburkhardt"
} | [] | closed | false | null | [] | null | 5 | 2019-06-12T15:51:29Z | 2019-06-12T16:22:27Z | 2019-06-12T16:22:26Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
In [1]: import numpy as np
...: import pandas as pd
...:
...: mat = np.random.random(size = (100,100))
...: arr = np.random.random(size=100)
...:
...: df = pd.DataFrame(mat)
...: ser = pd.Series(arr)
...:
...: print((mat @ arr)[:5])
...: print((mat @ ser)[:5])
...: print((df @ ser).values[:5])
...:
...: print(np.__version__)
...: print(pd.__version__)
[25.58954419 27.14049632 29.35058172 25.60100699 28.81915819]
[25.23415259 27.21156925 25.54180341 24.80747474 27.19878459] # !!!!!!!
[25.58954419 27.14049632 29.35058172 25.60100699 28.81915819]
1.16.4
0.23.4
```
#### Problem description
I'm not sure why this happens, but if you multiply an nd.array by a pd.Series, you get the wrong result returned in pandas `0.23.0 - 0.23.4`. It fails silently, which is *bad*. Even throwing a warning when this happens for `0.23` would be useful, because it takes some packages a while to get up to date with the major API changes in 0.24.
The problem no longer occurs with an upgrade to 0.24
I have tried this with numpy versions as far back at `1.15.0` and all fail in this manner. I have reproduced on Linux and MacOS machines.
Although this is fixed in an update, the silent return of a numerically incorrect result feels like it should be addressed.
#### Expected Output
The correct result.
#### Output of ``pd.show_versions()``
This is for the Macbook Pro, although error still occurs on Linux.
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.3.final.0
python-bits: 64
OS: Darwin
OS-release: 18.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.23.4
pytest: None
pip: 19.0.3
setuptools: 40.8.0
Cython: 0.29.2
numpy: 1.15.0
scipy: 1.2.1
pyarrow: None
xarray: None
IPython: 6.1.0
sphinx: 1.8.5
patsy: None
dateutil: 2.6.0
pytz: 2018.4
blosc: None
bottleneck: None
tables: None
numexpr: 2.6.4
feather: None
matplotlib: 3.0.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.999999999
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 1,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26812/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26812/timeline | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.