This is an example code that is reading off of a pandas dataframe with a names lengths widths, and height, all of which contain floats under each name variable. I am trying to return each of the floats under their respective variable, but I can't seem to figure out how to return multiple variables. Any help would be appreciated.
def volume(length, width, height):
for i in pdf[length]:
return (i)
for i in pdf[width]:
return (i)
for i in pdf[height]:
return (i)
print (volume('length', 'width', 'height'))