My PD.read_csv in Pandas is not importing my .csv file for visual representation.It keeps returning an error message. What could be the problem? I have tried
data=pd.read_csv('Sample-Spreadsheet-10-rows.csv' encoding = "utf-8")
print data.head
This code has refused to compile.
CodePudding user response:
Missing comma before encoding
data=pd.read_csv('Sample-Spreadsheet-10-rows.csv', encoding = "utf-8")
CodePudding user response:
You can check this answer : https://stackoverflow.com/a/37136793/15809896 and follow the question and also the answer !