df2是Dataframe資料,直接在其上面增加一列,使用如下程式碼:. df2.loc[:, 'new_date'] = df2['date'].apply(lambda x: x.split(' ')[0]).
確定! 回上一頁