{"action":"created","issue":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/2780","labels_url":"https://api.github.com/repos/bokeh/bokeh/issues/2780/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/bokeh/issues/2780/comments","events_url":"https://api.github.com/repos/bokeh/bokeh/issues/2780/events","html_url":"https://github.com/bokeh/bokeh/issues/2780","id":103663756,"number":2780,"title":"bokeh TimeSeries chokes on NaN values","user":{"login":"ChristopheBernard","id":14012015,"avatar_url":"https://avatars.githubusercontent.com/u/14012015?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristopheBernard","html_url":"https://github.com/ChristopheBernard","followers_url":"https://api.github.com/users/ChristopheBernard/followers","following_url":"https://api.github.com/users/ChristopheBernard/following{/other_user}","gists_url":"https://api.github.com/users/ChristopheBernard/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristopheBernard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristopheBernard/subscriptions","organizations_url":"https://api.github.com/users/ChristopheBernard/orgs","repos_url":"https://api.github.com/users/ChristopheBernard/repos","events_url":"https://api.github.com/users/ChristopheBernard/events{/privacy}","received_events_url":"https://api.github.com/users/ChristopheBernard/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bokeh/bokeh/labels/type:%20bug","name":"type: bug","color":"C02942"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/bokeh/bokeh/milestones/22","html_url":"https://github.com/bokeh/bokeh/milestones/0.9.4","labels_url":"https://api.github.com/repos/bokeh/bokeh/milestones/22/labels","id":1271387,"number":22,"title":"0.9.4","description":"","creator":{"login":"damianavila","id":1640669,"avatar_url":"https://avatars.githubusercontent.com/u/1640669?v=3","gravatar_id":"","url":"https://api.github.com/users/damianavila","html_url":"https://github.com/damianavila","followers_url":"https://api.github.com/users/damianavila/followers","following_url":"https://api.github.com/users/damianavila/following{/other_user}","gists_url":"https://api.github.com/users/damianavila/gists{/gist_id}","starred_url":"https://api.github.com/users/damianavila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damianavila/subscriptions","organizations_url":"https://api.github.com/users/damianavila/orgs","repos_url":"https://api.github.com/users/damianavila/repos","events_url":"https://api.github.com/users/damianavila/events{/privacy}","received_events_url":"https://api.github.com/users/damianavila/received_events","type":"User","site_admin":false},"open_issues":40,"closed_issues":2,"state":"open","created_at":"2015-08-25T12:42:11Z","updated_at":"2015-08-31T22:05:55Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-08-28T07:34:58Z","updated_at":"2015-09-01T11:52:15Z","closed_at":null,"body":"TimeSeries generates an Exception if presented a TimeSeries containing a NaN at position 0. NaNs elsewhere are tolerated.\r\n\r\nSee the following snippet extracted/adapted from my code\r\n\r\n#-Python code\r\nimport pandas as pd, numpy as np\r\nfrom bokeh.plotting import figure, show\r\nfrom bokeh.io import output_notebook\r\nfrom bokeh.charts import TimeSeries\r\n\r\nSeries=pd.Series(index=idx,data=np.random.randn(1000)).cumsum()\r\np=TimeSeries(Series, index=idx)\r\n#-That works nicely\r\nshow(p)\r\n\r\n#-now let's add a NaN in the middle\r\nSeries[100]=np.nan\r\np=TimeSeries(Series, index=idx)\r\n#-That works nicely too\r\nshow(p)\r\n\r\n#-now let's add a NaN in the beginning\r\nSeries[0]=np.nan\r\np=TimeSeries(Series, index=idx)\r\n#-Kaboom\r\nshow(p)"},"comment":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/comments/136686273","html_url":"https://github.com/bokeh/bokeh/issues/2780#issuecomment-136686273","issue_url":"https://api.github.com/repos/bokeh/bokeh/issues/2780","id":136686273,"user":{"login":"fpliger","id":1084690,"avatar_url":"https://avatars.githubusercontent.com/u/1084690?v=3","gravatar_id":"","url":"https://api.github.com/users/fpliger","html_url":"https://github.com/fpliger","followers_url":"https://api.github.com/users/fpliger/followers","following_url":"https://api.github.com/users/fpliger/following{/other_user}","gists_url":"https://api.github.com/users/fpliger/gists{/gist_id}","starred_url":"https://api.github.com/users/fpliger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpliger/subscriptions","organizations_url":"https://api.github.com/users/fpliger/orgs","repos_url":"https://api.github.com/users/fpliger/repos","events_url":"https://api.github.com/users/fpliger/events{/privacy}","received_events_url":"https://api.github.com/users/fpliger/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T11:52:15Z","updated_at":"2015-09-01T11:52:15Z","body":"This is something that should really be fixed on the new charts re-work.. \r\n\r\n@azjps I'm +1 if you want to submit a hotfix PR. It shouldn't take too much time and it's a valuable fix anyway.. :+1: \r\n\r\nAlso, yes being more informative around validation is definitely a priority. :-)"}}