read csv with header python code example
Example 1: read csv as list python
import csv
with open('file.csv', newline='') as f:
reader = csv.reader(f)
data = list(reader)
print(data)
Example 2: pandas read csv without header
df = pd.read_csv(train_file_path,sep="\t", header=None)