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 为了解决这个问题找了挺久的帖子,没有遇到比较完整
相关文章
相关标签/搜索