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