Dataframeをcsvに保存時に、余計なIndexが入ってしまう対処方法
保存する時に消すか、読み込む時に消すかどちらかで良い
df.to_csv(path, index=False)
df = pd.read_csv(path, index_col=0)
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
Dataframeをcsvに保存時に、余計なIndexが入ってしまう対処方法
保存する時に消すか、読み込む時に消すかどちらかで良い
df.to_csv(path, index=False)
df = pd.read_csv(path, index_col=0)
Register as a new user and use Qiita more conveniently
Go to list of users who liked