KOTA ITO

Generation

generate functionMon, 02 Jan 2023

データフレームに日時列を、UTCからJSTに変換する

def utc_to_jst(df, utc_col): df[utc_col] = df[utc_col].dt.tz_convert("Asia/Tokyo") return df

Questions about programming?Chat with your personal AI assistant