'pd.read_csv ("file name.csv) fails to run

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.



Solution 1:[1]

Missing comma before encoding

data=pd.read_csv('Sample-Spreadsheet-10-rows.csv', encoding = "utf-8")

Solution 2:[2]

You can check this answer : https://stackoverflow.com/a/37136793/15809896 and follow the question and also the answer !

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 DerivativesTamer
Solution 2 Akram BEN GHANEM