{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/14260","repository_url":"https://api.github.com/repos/pydata/pandas","labels_url":"https://api.github.com/repos/pydata/pandas/issues/14260/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/14260/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/14260/events","html_url":"https://github.com/pydata/pandas/issues/14260","id":178126578,"number":14260,"title":"Styler.background_gradient needs to handle NaN values","user":{"login":"stonebig","id":4312421,"avatar_url":"https://avatars.githubusercontent.com/u/4312421?v=3","gravatar_id":"","url":"https://api.github.com/users/stonebig","html_url":"https://github.com/stonebig","followers_url":"https://api.github.com/users/stonebig/followers","following_url":"https://api.github.com/users/stonebig/following{/other_user}","gists_url":"https://api.github.com/users/stonebig/gists{/gist_id}","starred_url":"https://api.github.com/users/stonebig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stonebig/subscriptions","organizations_url":"https://api.github.com/users/stonebig/orgs","repos_url":"https://api.github.com/users/stonebig/repos","events_url":"https://api.github.com/users/stonebig/events{/privacy}","received_events_url":"https://api.github.com/users/stonebig/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/IO%20HTML","name":"IO HTML","color":"006b75"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Output-Formatting","name":"Output-Formatting","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/32","html_url":"https://github.com/pydata/pandas/milestones/Next%20Major%20Release","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/32/labels","id":933188,"number":32,"title":"Next Major Release","description":"after 0.18.0 of course","creator":{"login":"jreback","id":953992,"avatar_url":"https://avatars.githubusercontent.com/u/953992?v=3","gravatar_id":"","url":"https://api.github.com/users/jreback","html_url":"https://github.com/jreback","followers_url":"https://api.github.com/users/jreback/followers","following_url":"https://api.github.com/users/jreback/following{/other_user}","gists_url":"https://api.github.com/users/jreback/gists{/gist_id}","starred_url":"https://api.github.com/users/jreback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jreback/subscriptions","organizations_url":"https://api.github.com/users/jreback/orgs","repos_url":"https://api.github.com/users/jreback/repos","events_url":"https://api.github.com/users/jreback/events{/privacy}","received_events_url":"https://api.github.com/users/jreback/received_events","type":"User","site_admin":false},"open_issues":1055,"closed_issues":144,"state":"open","created_at":"2015-01-13T10:53:19Z","updated_at":"2016-09-21T16:31:43Z","due_on":"2017-08-31T04:00:00Z","closed_at":null},"comments":14,"created_at":"2016-09-20T17:40:26Z","updated_at":"2016-09-21T18:00:38Z","closed_at":null,"body":"This code is ok under Pandas-0.18.1 (from a @jreback demo)\r\n````\r\n%matplotlib inline\r\n# Pandas interactive\r\nimport pandas as pd\r\nimport numpy as np\r\nimport seaborn as sns\r\n\r\n# create a df with random datas\r\nnp.random.seed(24)\r\ndf = pd.DataFrame({'A': np.linspace(1, 10, 10)})\r\ndf = pd.concat([df, pd.DataFrame(np.random.randn(10, 4), columns=list('BCDE'))],\r\n               axis=1)\r\ndf.iloc[0, 2] = np.nan\r\n\r\n# interactive\r\nfrom IPython.html import widgets\r\n@widgets.interact\r\ndef f(h_neg=(0, 359, 1), h_pos=(0, 359), s=(0., 99.9), l=(0., 99.9)):\r\n    return (df\r\n             .style\r\n             .background_gradient(\r\n                cmap=sns.palettes.diverging_palette(\r\n                     h_neg=h_neg, h_pos=h_pos, s=s, l=l, as_cmap=True)\r\n             ).highlight_null()\r\n           )\r\n````\r\n\r\nWith Pandas-0.19rc1, I get a warning:\r\n\r\n![matplotlib-20160918a](https://cloud.githubusercontent.com/assets/4312421/18681833/0822f680-7f6a-11e6-8e6c-5bcef707d249.PNG)\r\n\r\n\r\nsee https://github.com/matplotlib/matplotlib/issues/7129"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/248692653","html_url":"https://github.com/pydata/pandas/issues/14260#issuecomment-248692653","issue_url":"https://api.github.com/repos/pydata/pandas/issues/14260","id":248692653,"user":{"login":"stonebig","id":4312421,"avatar_url":"https://avatars.githubusercontent.com/u/4312421?v=3","gravatar_id":"","url":"https://api.github.com/users/stonebig","html_url":"https://github.com/stonebig","followers_url":"https://api.github.com/users/stonebig/followers","following_url":"https://api.github.com/users/stonebig/following{/other_user}","gists_url":"https://api.github.com/users/stonebig/gists{/gist_id}","starred_url":"https://api.github.com/users/stonebig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stonebig/subscriptions","organizations_url":"https://api.github.com/users/stonebig/orgs","repos_url":"https://api.github.com/users/stonebig/repos","events_url":"https://api.github.com/users/stonebig/events{/privacy}","received_events_url":"https://api.github.com/users/stonebig/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T18:00:38Z","updated_at":"2016-09-21T18:00:38Z","body":"shouldn't it be tagged as a regression ?"}}
{"actor":{"display_login":"stonebig"}}