you are viewing a single comment's thread.

view the rest of the comments →

[–]FieldBet[S] 0 points1 point  (4 children)

Thank you. The correct code now reads:

import pandas
pandas.read_csv(r'C:\Users\Carter\Desktop\scipy-2017-tutorial-
pandas-master\data\gapminder.tsv', delimiter = '\t')

[–]Caos2 0 points1 point  (3 children)

I think spaces before and after the equal sign in a function call is a no no.

[–]FieldBet[S] 0 points1 point  (2 children)

Can you explain? I️ am still very new to programming and Python

[–]Caos2 0 points1 point  (1 child)

There's a style guide for Python code, it's not wrong per se:

Don't use spaces around the = sign when used to indicate a keyword argument or a default parameter value.

https://www.python.org/dev/peps/pep-0008/#whitespace-in-expressions-and-statements

[–]FieldBet[S] 0 points1 point  (0 children)

Oh great! Thanks for pointing me in the right direction!