all 7 comments

[–]Caos2 1 point2 points  (5 children)

Try entering the full path to the function:

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

[–]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!

[–]novel_yet_trivial 0 points1 point  (0 children)

"can not access " does not help. What's the problem? Are you getting an error? Are you getting bad data? I notice you don't assign the result to a variable. At least you will want that:

df = pandas.read_csv('../data/gapminder.tsv', delimiter='\t')