Load csv file with createfileinput

try:

loadTable(“data.csv”, “header, csv”)

not

loadTable(“data.csv”, “header”,“csv”)