Python 提取某列日期中的年份和月份 -- 解決TypeError: strptime() … 和'Series' object has no attribute 'month'

【目標】 提取出租車出行數據中"pickup_datetime"列的月份和年份。web 【遇到並解決的兩個問題】 TypeError: strptime() argument 1 must be str, not Series; AttributeError: ‘Series’ object has no attribute ‘month’。app 爲了解決這個問題找了挺久的帖子,沒有遇到比較完整
相關文章
相關標籤/搜索