Are you sure you want to delete the question?
If your question is resolved, you may close it.
Leaving a resolved question undeleted may help others!
We hope you find it useful!
CSVファイルを読み込んだところ1枚目の画像の通り列名がずれてしまいます。 2枚目のように表示させたいです。 どうすればよいでしょうか。 ※CSVファイルの中身はこれ以外に入力した箇所はありません。(2枚目の画像が全てです)
df=pd.read_csv("samplesample.csv",sep=",",engine="python",encoding="utf_8")
df
read_csvのオプションにheader=0を渡すとどうでしょうか?
read_csv
header=0
@ryota0000