empyrical
empyrical copied to clipboard
'int' object has no attribute 'year'
I get the error " 'int' object has no attribute 'year'" when I try:
noncum_returns = df[['date','monthly_return']]
week_return = aggregate_returns(noncum_returns, convert_to="weekly")