{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/10408","labels_url":"https://api.github.com/repos/pydata/pandas/issues/10408/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/10408/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/10408/events","html_url":"https://github.com/pydata/pandas/issues/10408","id":90221776,"number":10408,"title":"vectorised setting of timestamp columns fails with python datetime and numpy datetime64","user":{"login":"seanv507","id":3305775,"avatar_url":"https://avatars.githubusercontent.com/u/3305775?v=3","gravatar_id":"","url":"https://api.github.com/users/seanv507","html_url":"https://github.com/seanv507","followers_url":"https://api.github.com/users/seanv507/followers","following_url":"https://api.github.com/users/seanv507/following{/other_user}","gists_url":"https://api.github.com/users/seanv507/gists{/gist_id}","starred_url":"https://api.github.com/users/seanv507/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanv507/subscriptions","organizations_url":"https://api.github.com/users/seanv507/orgs","repos_url":"https://api.github.com/users/seanv507/repos","events_url":"https://api.github.com/users/seanv507/events{/privacy}","received_events_url":"https://api.github.com/users/seanv507/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Difficulty%20Novice","name":"Difficulty Novice","color":"fbca04"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Dtypes","name":"Dtypes","color":"e102d8"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Effort%20Low","name":"Effort Low","color":"006b75"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Timeseries","name":"Timeseries","color":"AFEEEE"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/34","html_url":"https://github.com/pydata/pandas/milestones/0.17.0","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/34/labels","id":1033710,"number":34,"title":"0.17.0","description":"","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":160,"closed_issues":23,"state":"open","created_at":"2015-03-23T10:47:38Z","updated_at":"2015-06-23T11:00:14Z","due_on":"2015-07-31T04:00:00Z","closed_at":null},"comments":9,"created_at":"2015-06-22T21:49:54Z","updated_at":"2015-06-23T11:27:00Z","closed_at":null,"body":"    import pandas as pd\r\n    import numpy as np\r\n    import datetime as dt\r\n    z=dt.date(2010,11,1)\r\n    zs=[z+dt.timedelta(days=r) for r in range(5)]\r\n    df=pd.DataFrame({'obj':zs, 'b':pd.Timestamp('2010-10-01'),'c':pd.Timestamp('2010-10-01')})\r\n    df.dtypes\r\n\r\n    #df.loc[0:2,'c']=dt.date(2010,10,12) # causes error: long() argument must be a string or a number, not 'datetime.date\r\n    df.loc[0:2,'c']=np.datetime64('2010-10-12') # sets to 1970...\r\n    df.at[4,'c']=np.datetime64('2010-10-12') # works\r\n    df.loc[0:2,'obj']=np.datetime64('2010-10-12') #works\r\n\r\n    df.loc[0:2,'obj']=dt.date(2010,10,12)\r\n\r\n    df\r\n\r\n| ind | b          | c          | obj        |\r\n|-----|------------|------------|------------|\r\n| 0   | 2010-10-01 | 1970-01-01 | 2010-10-12 |\r\n| 1   | 2010-10-01 | 1970-01-01 | 2010-10-12 |\r\n| 2   | 2010-10-01 | 1970-01-01 | 2010-10-12 |\r\n| 3   | 2010-10-01 | 2010-10-01 | 2010-11-04 |\r\n| 4   | 2010-10-01 | 2010-10-12 | 2010-11-05 |\r\n\r\nI am using Pandas 0.16.2"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/114450154","html_url":"https://github.com/pydata/pandas/issues/10408#issuecomment-114450154","issue_url":"https://api.github.com/repos/pydata/pandas/issues/10408","id":114450154,"user":{"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},"created_at":"2015-06-23T11:27:00Z","updated_at":"2015-06-23T11:27:00Z","body":"ahh right - ok should be straightforward in any event"}}