Basically, what is the parameter “r” doing? I understand that it’s returning all of the data under ‘fname’, but how is it doing so? What’s causing it to iterate? Why does it not also pass the value ‘fname’ into get_x?
My guess that r is “dictionary like” so r[‘fname’] returns the value associated when using the key ‘fname’ which I guess the the file name /a/b/bigcat.jpg and the ‘label’ is cat.
OK it is on page 220.
df = pd.read_csv(path/‘train.csv’)
This creates a three column panda collection filename (fname) label (chair/car/horse person) and is_valiid.