Skip to content

AttributeError: 'int' object has no attribute 'strftime' #55

@fishingcatgo

Description

@fishingcatgo

Traceback (most recent call last):
File "C:\Users\16343\Desktop\vspro\quantify1\pyfolio_2.py", line 9, in
pf.create_returns_tear_sheet(returns)
File "C:\MyApp\miniconda3\envs\py10\lib\site-packages\pyfolio\plotting.py", line 52, in call_w_context
return func(*args, **kwargs)
File "C:\MyApp\miniconda3\envs\py10\lib\site-packages\pyfolio\tears.py", line 496, in create_returns_tear_sheet
plotting.show_perf_stats(returns, benchmark_rets,
File "C:\MyApp\miniconda3\envs\py10\lib\site-packages\pyfolio\plotting.py", line 595, in show_perf_stats
date_rows['Start date'] = returns.index[0].strftime('%Y-%m-%d')
AttributeError: 'int' object has no attribute 'strftime'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions