{"action":"created","issue":{"url":"https://api.github.com/repos/mwaskom/seaborn/issues/1059","repository_url":"https://api.github.com/repos/mwaskom/seaborn","labels_url":"https://api.github.com/repos/mwaskom/seaborn/issues/1059/labels{/name}","comments_url":"https://api.github.com/repos/mwaskom/seaborn/issues/1059/comments","events_url":"https://api.github.com/repos/mwaskom/seaborn/issues/1059/events","html_url":"https://github.com/mwaskom/seaborn/issues/1059","id":183537858,"number":1059,"title":"Distplot with datetimes not possible?","user":{"login":"mikaylathompson","id":3933820,"avatar_url":"https://avatars2.githubusercontent.com/u/3933820?v=4","gravatar_id":"","url":"https://api.github.com/users/mikaylathompson","html_url":"https://github.com/mikaylathompson","followers_url":"https://api.github.com/users/mikaylathompson/followers","following_url":"https://api.github.com/users/mikaylathompson/following{/other_user}","gists_url":"https://api.github.com/users/mikaylathompson/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaylathompson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaylathompson/subscriptions","organizations_url":"https://api.github.com/users/mikaylathompson/orgs","repos_url":"https://api.github.com/users/mikaylathompson/repos","events_url":"https://api.github.com/users/mikaylathompson/events{/privacy}","received_events_url":"https://api.github.com/users/mikaylathompson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-17T21:52:15Z","updated_at":"2018-05-02T01:46:42Z","closed_at":"2016-10-26T18:25:58Z","author_association":"NONE","body":"Trying to do just a basic histogram of datetimes.\nVery minimal example:\n\n`sns.distplot(np.arange('2016-01', '2016-05', dtype='datetime64[D]'))`\n\n```\nlib/python3.5/site-packages/seaborn/distributions.py in distplot(a, bins, hist, kde, rug, fit, hist_kws, kde_kws, rug_kws, fit_kws, color, vertical, norm_hist, axlabel, label, ax)\n    190             line, = ax.plot(0, a.mean())\n    191         else:\n--> 192             line, = ax.plot(a.mean(), 0)\n    193         color = line.get_color()\n    194         line.remove()\n\nlib/python3.5/site-packages/numpy/core/_methods.py in _mean(a, axis, dtype, out, keepdims)\n     63         dtype = mu.dtype('f8')\n     64\n---> 65     ret = umr_sum(arr, axis, dtype, out, keepdims)\n     66     if isinstance(ret, mu.ndarray):\n     67         ret = um.true_divide(\n\nTypeError: ufunc add cannot use operands with types dtype('<M8[D]') and dtype('<M8[D]')\n```\n\nNumpy 1.11.2 and Seaborn 0.7.1\n\nThis seems like it should be supported behavior, both on the seaborn and the numpy sides. Is there a clear workaround or anything that I'm missing?\n"},"comment":{"url":"https://api.github.com/repos/mwaskom/seaborn/issues/comments/385841106","html_url":"https://github.com/mwaskom/seaborn/issues/1059#issuecomment-385841106","issue_url":"https://api.github.com/repos/mwaskom/seaborn/issues/1059","id":385841106,"user":{"login":"dbdean","id":12725310,"avatar_url":"https://avatars1.githubusercontent.com/u/12725310?v=4","gravatar_id":"","url":"https://api.github.com/users/dbdean","html_url":"https://github.com/dbdean","followers_url":"https://api.github.com/users/dbdean/followers","following_url":"https://api.github.com/users/dbdean/following{/other_user}","gists_url":"https://api.github.com/users/dbdean/gists{/gist_id}","starred_url":"https://api.github.com/users/dbdean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbdean/subscriptions","organizations_url":"https://api.github.com/users/dbdean/orgs","repos_url":"https://api.github.com/users/dbdean/repos","events_url":"https://api.github.com/users/dbdean/events{/privacy}","received_events_url":"https://api.github.com/users/dbdean/received_events","type":"User","site_admin":false},"created_at":"2018-05-02T01:46:42Z","updated_at":"2018-05-02T01:46:42Z","author_association":"NONE","body":"I have just come across this issue. Why has it been closed without any solution? Plotting a histograms over dates is certainly something seaborn should be able to do."}}
{"actor":{"display_login":"dbdean"}}