pandasで特定の行をずらす2022/10/19 / 1 min readView more blogs with the tag python, View more blogs with the tag pandasTable of Contents#はじめに#方法はじめに pandasで特定の行をずらす方法です。 方法 # 1行目を右に2ずらすときdf.iloc[0] = df.iloc[0].shift(2, fill_value='na')