I'm new to python and i want to get output in this form plz :
Instead of this
My code
import investpy as inv
import pandas as pd
import numpy as np
funds = ["Pluvalca Allcaps A", "Moneta Multi Caps C", "Renaissance Europe I"]
dfs = pd.DataFrame()
for fund in funds:
df = investpy.get_fund_recent_data(fund=fund, country='france')
dfs = dfs.append(df.Close[-1:],ignore_index = True)
dfs = dfs.T
dfs.columns = funds
dff = np.transpose(dfs)
dfs.head()
dff.head()