Hi,
I'm trying to use the simple tear sheet on my own set of returns. I've seen elsewhere that there are issues leaving the module to get benchmark data itself so I've provided my own benchmark data however I can't make any progress towards generating a tear sheet, I get:
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexing.py", line 1231, in _convert_to_indexer
raise KeyError('%s not in index' % objarr[mask])
KeyError: "DatetimeIndex(['1990-01-04', '1990-01-05', '1990-01-08', '1990-01-09',\n '1990-01-10', '1990-01-11', '1990-01-12', '1990-01-15',\n '1990-01-16', '1990-01-17',\n ...\n '2018-07-17', '2018-07-18', '2018-07-19', '2018-07-20',\n '2018-07-23', '2018-07-24', '2018-07-25', '2018-07-26',\n '2018-07-27', '2018-07-30'],\n dtype='datetime64[ns]', name='date', length=7198, freq=None) not in index"
However a diff of the indices shows that there are no differences ?
my_daily_pnl.index.difference(benchmark_data.index)
Out[3]: DatetimeIndex([], dtype='datetime64[ns]', name='date', freq=None)
I'd be grateful if someone could point me in the right direction as I'd love to incorporate pyfolio into my workflow.
Thanks
D
Hi,
I'm trying to use the simple tear sheet on my own set of returns. I've seen elsewhere that there are issues leaving the module to get benchmark data itself so I've provided my own benchmark data however I can't make any progress towards generating a tear sheet, I get:
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexing.py", line 1231, in _convert_to_indexer
raise KeyError('%s not in index' % objarr[mask])
KeyError: "DatetimeIndex(['1990-01-04', '1990-01-05', '1990-01-08', '1990-01-09',\n '1990-01-10', '1990-01-11', '1990-01-12', '1990-01-15',\n '1990-01-16', '1990-01-17',\n ...\n '2018-07-17', '2018-07-18', '2018-07-19', '2018-07-20',\n '2018-07-23', '2018-07-24', '2018-07-25', '2018-07-26',\n '2018-07-27', '2018-07-30'],\n dtype='datetime64[ns]', name='date', length=7198, freq=None) not in index"
However a diff of the indices shows that there are no differences ?
my_daily_pnl.index.difference(benchmark_data.index)
Out[3]: DatetimeIndex([], dtype='datetime64[ns]', name='date', freq=None)
I'd be grateful if someone could point me in the right direction as I'd love to incorporate pyfolio into my workflow.
Thanks
D