> 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()
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to