# Error when selecting row and column with Dataset[]

I read in my data using:

dat=Dataset[Import["dat.csv"]]


When I view the data it appears correct. However, when I execute a command like

dat[1, "Colname1"]


Message: Part Colname 1 is not applicable to expressions of the form {_String, _, _String, \"country" | "NA" | "us", _, _, _String, _String, _, _String, _String, \_String, _String, _, _,

• Dataset querying of that form requires you to convert the table imported by Import into a list of Associations. That's pretty easy to do with something like Map[Association@Thread[First[#]->Rest[#]]&, Import["dat.csv"]] – b3m2a1 Dec 3 '17 at 6:23