graphs plotting data but not function output data.  need to convert pandas to function input format then back to pandas