Im trying create a dataframe from array but I didnt have sucess.
import investpy
import pandas as pd
result = ['BRKM5', 'MGLU3', 'PETR3', 'B3SA3', 'WEGE3']
resultado =[]
i=0
for t in result:
x = investpy.stocks.get_stock_information(t, 'brazil', as_json=False)
resultado.append(x.values)
i += 1
df= pd.DataFrame(resultado, columns = ['Stock Symbol',
'Prev. Close',
'Todays Range',
'Revenue',
'Open',
'52 wk Range',
'EPS',
'Volume',
'Market Cap',
'Dividend (Yield)',
'Average Vol. (3m)',
'P/E Ratio',
'Beta',
'1-Year Change',
'Shares Outstanding',
'Next Earnings Date'])
df
ValueError: Shape of passed values is (5, 1), indices imply (5, 16)