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