import datetime
import yfinance as yf
start = datetime.datetime(2000,1, 1)
end = datetime.datetime.now()
sharename='col.ax'
dftemp = yf.Ticker(sharename)
dftemp=dftemp.actions
df=dftemp[start:end]
print(df.tail(10))
sumdividens=df['Dividends'].sum()
if df['Stock Splits'].sum()==0:
print(sumdividens)
else:
Splits=dftemp.loc[dftemp['Stock Splits']!=0]
print(Splits)
print(sumdividens)