method
--Default
import pandas as pd
pd.read_csv("hoge.csv")
--No header
pd.read_csv("hoge.csv",header=None)
pd.read_csv("hoge.csv",names=["a","b","c"])
--Separate by tabs etc.
pd.read_csv("hoge.csv",sep="\t")
Can it be read even if the extension is not csv
?
(tsv, dat, csv were created)
Recommended Posts