{"action":"created","issue":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/22589","repository_url":"https://api.github.com/repos/pandas-dev/pandas","labels_url":"https://api.github.com/repos/pandas-dev/pandas/issues/22589/labels{/name}","comments_url":"https://api.github.com/repos/pandas-dev/pandas/issues/22589/comments","events_url":"https://api.github.com/repos/pandas-dev/pandas/issues/22589/events","html_url":"https://github.com/pandas-dev/pandas/issues/22589","id":356886234,"node_id":"MDU6SXNzdWUzNTY4ODYyMzQ=","number":22589,"title":"dt accessor doesn't work with datetime.date","user":{"login":"postelrich","id":3619876,"node_id":"MDQ6VXNlcjM2MTk4NzY=","avatar_url":"https://avatars2.githubusercontent.com/u/3619876?v=4","gravatar_id":"","url":"https://api.github.com/users/postelrich","html_url":"https://github.com/postelrich","followers_url":"https://api.github.com/users/postelrich/followers","following_url":"https://api.github.com/users/postelrich/following{/other_user}","gists_url":"https://api.github.com/users/postelrich/gists{/gist_id}","starred_url":"https://api.github.com/users/postelrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postelrich/subscriptions","organizations_url":"https://api.github.com/users/postelrich/orgs","repos_url":"https://api.github.com/users/postelrich/repos","events_url":"https://api.github.com/users/postelrich/events{/privacy}","received_events_url":"https://api.github.com/users/postelrich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-04T16:26:52Z","updated_at":"2018-09-04T16:55:45Z","closed_at":null,"author_association":"NONE","body":"#### Code Sample, a copy-pastable example if possible\r\n\r\n```python\r\nimport datetime\r\nimport pandas as pd\r\nx = pd.Series([datetime.date(2018, 9, 1)])\r\nx.dt.strftime('%Y%m%d')\r\n```\r\n#### Problem description\r\n\r\nNoticed that the dt accessor does not work with `datetime.date` objects. Why aren't dates supported?\r\n\r\n#### Output of ``pd.show_versions()``\r\n\r\n<details>\r\nINSTALLED VERSIONS\r\n------------------\r\ncommit: None\r\npython: 3.6.2.final.0\r\npython-bits: 64\r\nOS: Linux\r\nOS-release: 3.10.0-327.10.1.el7.x86_64\r\nmachine: x86_64\r\nprocessor: x86_64\r\nbyteorder: little\r\nLC_ALL: None\r\nLANG: None\r\nLOCALE: None.None\r\npandas: 0.23.2\r\npytest: 3.2.1\r\npip: 9.0.1\r\nsetuptools: 36.4.0\r\nCython: 0.28.1\r\nnumpy: 1.13.1\r\nscipy: None\r\npyarrow: None\r\nxarray: None\r\nIPython: 6.1.0\r\nsphinx: None\r\npatsy: None\r\ndateutil: 2.6.1\r\npytz: 2017.2\r\nblosc: None\r\nbottleneck: None\r\ntables: None\r\nnumexpr: None\r\nfeather: None\r\nmatplotlib: None\r\nopenpyxl: None\r\nxlrd: None\r\nxlwt: None\r\nxlsxwriter: None\r\nlxml: None\r\nbs4: None\r\nhtml5lib: 0.9999999\r\nsqlalchemy: 1.1.13\r\npymysql: None\r\npsycopg2: 2.7.1 (dt dec pq3 ext lo64)\r\njinja2: 2.10\r\ns3fs: None\r\nfastparquet: None\r\npandas_gbq: None\r\npandas_datareader: None\r\n</details>\r\n"},"comment":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/comments/418441598","html_url":"https://github.com/pandas-dev/pandas/issues/22589#issuecomment-418441598","issue_url":"https://api.github.com/repos/pandas-dev/pandas/issues/22589","id":418441598,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODQ0MTU5OA==","user":{"login":"TomAugspurger","id":1312546,"node_id":"MDQ6VXNlcjEzMTI1NDY=","avatar_url":"https://avatars3.githubusercontent.com/u/1312546?v=4","gravatar_id":"","url":"https://api.github.com/users/TomAugspurger","html_url":"https://github.com/TomAugspurger","followers_url":"https://api.github.com/users/TomAugspurger/followers","following_url":"https://api.github.com/users/TomAugspurger/following{/other_user}","gists_url":"https://api.github.com/users/TomAugspurger/gists{/gist_id}","starred_url":"https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomAugspurger/subscriptions","organizations_url":"https://api.github.com/users/TomAugspurger/orgs","repos_url":"https://api.github.com/users/TomAugspurger/repos","events_url":"https://api.github.com/users/TomAugspurger/events{/privacy}","received_events_url":"https://api.github.com/users/TomAugspurger/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T16:55:45Z","updated_at":"2018-09-04T16:55:45Z","author_association":"CONTRIBUTOR","body":"NumPy doesn't have a datetime.date dtype, just datetime64. I'd recommend using datetime64 with the time set to midnight, or using a Period with daily frequency."}}
{"actor":{"display_login":"TomAugspurger"}}