Code: Select all
bitcoin.loc['2019','Close'].resample('M').plot() plt.show()
< /code>
und es gibt einen Fehler zurück: < /p>
AttributeError: 'DatetimeIndexResampler' object has no attribute 'plot'
Vielleicht eine falsche Version von Pandas oder etwas anderes? />
Code: Select all
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
bitcoin = pd.read_csv('BTC-EUR.csv',index_col='Date',parse_dates=True)
bitcoin.loc['2019','Close'].resample('M').plot()
plt.show()
BTC-eur.csv = https://fr.finance.yahoo.com/quote/btc- ... ?p=btc-eur
Erwartete: src = "https://i.sstatic.net/yc8ar.png"/>
Got fol:
Code: Select all
AttributeError: 'DatetimeIndexResampler' object has no attribute 'plot'