{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/9624","labels_url":"https://api.github.com/repos/pydata/pandas/issues/9624/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/9624/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/9624/events","html_url":"https://github.com/pydata/pandas/issues/9624","id":60521189,"number":9624,"title":"BUG: adding DatetimeIndex with series of timedeltas results in strange series","user":{"login":"jorisvandenbossche","id":1020496,"avatar_url":"https://avatars.githubusercontent.com/u/1020496?v=3","gravatar_id":"","url":"https://api.github.com/users/jorisvandenbossche","html_url":"https://github.com/jorisvandenbossche","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}","starred_url":"https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorisvandenbossche/subscriptions","organizations_url":"https://api.github.com/users/jorisvandenbossche/orgs","repos_url":"https://api.github.com/users/jorisvandenbossche/repos","events_url":"https://api.github.com/users/jorisvandenbossche/events{/privacy}","received_events_url":"https://api.github.com/users/jorisvandenbossche/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Dtypes","name":"Dtypes","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-10T15:48:56Z","updated_at":"2015-03-11T01:46:47Z","closed_at":null,"body":"```\r\nIn [21]: dtidx = pd.date_range('2012-01-01', periods=2)\r\n\r\nIn [22]: dtidx\r\nOut[22]:\r\n<class 'pandas.tseries.index.DatetimeIndex'>\r\n[2012-01-01, 2012-01-02]\r\nLength: 2, Freq: D, Timezone: None\r\n\r\nIn [23]: dtidx + pd.Series([pd.Timedelta('10 days'), pd.Timedelta('20 days')])\r\nOut[23]:\r\n2012-01-01 00:00:00   NaT\r\n2012-01-02 00:00:00   NaT\r\n0                     NaT\r\n1                     NaT\r\ndtype: datetime64[ns]\r\n```"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/78185515","html_url":"https://github.com/pydata/pandas/issues/9624#issuecomment-78185515","issue_url":"https://api.github.com/repos/pydata/pandas/issues/9624","id":78185515,"user":{"login":"jorisvandenbossche","id":1020496,"avatar_url":"https://avatars.githubusercontent.com/u/1020496?v=3","gravatar_id":"","url":"https://api.github.com/users/jorisvandenbossche","html_url":"https://github.com/jorisvandenbossche","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}","starred_url":"https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorisvandenbossche/subscriptions","organizations_url":"https://api.github.com/users/jorisvandenbossche/orgs","repos_url":"https://api.github.com/users/jorisvandenbossche/repos","events_url":"https://api.github.com/users/jorisvandenbossche/events{/privacy}","received_events_url":"https://api.github.com/users/jorisvandenbossche/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T01:46:47Z","updated_at":"2015-03-11T01:46:47Z","body":"ah, yes, of course, stupid of me, I forgot the basic pandas feature, alignment, ..\r\n\r\nI tried to use `Series` because an array or list did not work:\r\n\r\n```\r\ndtidx + [pd.Timedelta('10 days'), pd.Timedelta('20 days')]\r\ndtidx + np.array([pd.Timedelta('10 days'), pd.Timedelta('20 days')])\r\n```\r\n\r\nBut indeed, the ``s.values`` approach works.\r\n"}}