I have the following function which calculates statistics and finally plot data from multiples dictionaries
portafolio = [{\'ticker\':\'AMZN\', \'nombre\':\'A