SyntaxFix
Write A Post
Hire A Developer
Questions
In order to read a csv in that doesn't have a header and for only certain columns you need to pass params header=None and usecols=[3,6] for the 4th and 7th columns:
header=None
usecols=[3,6]
df = pd.read_csv(file_path, header=None, usecols=[3,6])
See the docs