pandas将datetime转化为timestamp - xd21303/Notebook GitHub Wiki

input_x['timestamp'] = input_x['datetime'].apply(lambda x:pd.Timestamp(x, tz='Asia/ShangHai').timestamp())