'Timedelta' object has no attribute 'date'
时间: 2023-09-27 13:08:46 浏览: 199
'Timedelta' object has no attribute 'date'是一个错误提示,它表示Timedelta对象没有'date'属性。该错误通常发生在尝试在Timedelta对象上使用'date'方法时。Timedelta对象表示时间间隔,而不是具体的日期。如果要获取具体的日期,应该使用Datetime对象。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [python提取年月日遇到的问题:‘Series‘ object has no attribute ‘month‘ 和 ‘str‘ object has no ...](https://blog.csdn.net/weixin_45914452/article/details/114738798)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [AttributeError: ‘Timestamp‘ object has no attribute ‘dt‘解决方案](https://blog.csdn.net/weixin_43178406/article/details/130811479)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文