def handle_data(symbol, start, end): stock_data = data.DataReader( symbol, \'yahoo\', start, end) return stock_data x = handle