Indicizza file Excel per data in Pandas Dataframe
Oct 05 2020
Il file excel è il seguente esempio con 3 azioni:
Vorrei combinare utilizzando la data come indice. Il risultato finale dovrebbe essere come:
Risposte
DanielBittencourt Oct 05 2020 at 20:08
Nel seguente SO ho effettuato l'indicizzazione utilizzando direttamente dataframe separati
Combina serie per data
df = pd.merge(df1, df2, left_index=True, right_index=True, how='outer')
Ha funzionato bene. Questa volta dovrebbe leggere da un file excel.