我正在尝试使用DateComponents转换今天的日期://add today's date
var todayDate调试时,我发现声明todayDate后,它的值是2016-11-11 07:44:44 +0000。使用dateComponents后,该值更改为2016-11-10 18:30:00 +0000。而根据我的位置,当天应该是11月11日,时间应该在下午1点或
.-21data['date_text_DATE'] = pd.to_datetime(data['date_text'], format = '%b-%y')ValueError:time data 'Jan-21' does not match format '%b-%y' (match)
它不会将文本转换为日期格式。