题解 | #统一最后刷题日期的格式#
统一最后刷题日期的格式
https://www.nowcoder.com/practice/348b2f28a75f4ef2ac86db771c2563d3
import pandas as pd
Nowcoder = pd.read_csv('Nowcoder.csv',sep=',',dtype=object)
Nowcoder['Last_submission_time']=pd.to_datetime(Nowcoder['Last_submission_time'],format='%Y-%m-%d')
print(Nowcoder[['Nowcoder_ID','Level','Last_submission_time']])
Nowcoder = pd.read_csv('Nowcoder.csv',sep=',',dtype=object)
Nowcoder['Last_submission_time']=pd.to_datetime(Nowcoder['Last_submission_time'],format='%Y-%m-%d')
print(Nowcoder[['Nowcoder_ID','Level','Last_submission_time']])