[Tutor] Getting started with Pandas

Rafael Knuth rafael.knuth at gmail.com
Wed Aug 22 06:29:22 EDT 2018


> You are not returning anything.
> You need to use the return keyword otherwise your
> function just generates the data internally then
> throws it away again.

ok, got it - thanks.

my code below did not require a return statement, hence I was assuming
it wouldn't be needed in my function either.

import pandas as pd
cities_lst = pd.read_table("cool_cities.csv")
cities_lst.head()


More information about the Tutor mailing list