Traceback (most recent call last):


 "portfolio_optimization.py", line 150, in <module>

quote_currency='usdt')


 "C:\Users\ALEXAN~1\DOWNLO~1\CATALY~1.21\CATALY~1.21\CATALY~1\lib\site-packages\catalyst\utils\run_algo.py", line 643, in run_algorithm

stats_output=stats_output


 "C:\Users\ALEXAN~1\DOWNLO~1\CATALY~1.21\CATALY~1.21\CATALY~1\lib\site-packages\catalyst\utils\run_algo.py", line 361, in _run

overwrite_sim_params=False,


 "C:\Users\ALEXAN~1\DOWNLO~1\CATALY~1.21\CATALY~1.21\CATALY~1\lib\site-packages\catalyst\exchange\exchange_algorithm.py", line 403, in run

data, overwrite_sim_params


 "C:\Users\ALEXAN~1\DOWNLO~1\CATALY~1.21\CATALY~1.21\CATALY~1\lib\site-packages\catalyst\exchange\exchange_algorithm.py", line 360, in run

data, overwrite_sim_params


 "C:\Users\ALEXAN~1\DOWNLO~1\CATALY~1.21\CATALY~1.21\CATALY~1\lib\site-packages\catalyst\algorithm.py", line 725, in run

for perf in self.get_generator():


 "C:\Users\ALEXAN~1\DOWNLO~1\CATALY~1.21\CATALY~1.21\CATALY~1\lib\site-packages\catalyst\gens\tradesimulation.py", line 224, in transform

for capital_change_packet in every_bar(dt):


 "C:\Users\ALEXAN~1\DOWNLO~1\CATALY~1.21\CATALY~1.21\CATALY~1\lib\site-packages\catalyst\gens\tradesimulation.py", line 137, in every_bar

handle_data(algo, current_data, dt_to_use)


 "C:\Users\ALEXAN~1\DOWNLO~1\CATALY~1.21\CATALY~1.21\CATALY~1\lib\site-packages\catalyst\utils\events.py", line 216, in handle_data

dt,


 "C:\Users\ALEXAN~1\DOWNLO~1\CATALY~1.21\CATALY~1.21\CATALY~1\lib\site-packages\catalyst\utils\events.py", line 235, in handle_data

self.callback(context, data)


 "C:\Users\ALEXAN~1\DOWNLO~1\CATALY~1.21\CATALY~1.21\CATALY~1\lib\site-packages\catalyst\exchange\exchange_algorithm.py", line 381, in handle_data

super(ExchangeTradingAlgorithmBacktest, self).handle_data(data)


 "C:\Users\ALEXAN~1\DOWNLO~1\CATALY~1.21\CATALY~1.21\CATALY~1\lib\site-packages\catalyst\algorithm.py", line 474, in handle_data

self._handle_data(self, data)


 "portfolio_optimization.py", line 92, in handle_data

max_sharpe_port = results_frame.iloc[results_frame['sharpe'].idxmax()]


 "C:\Users\ALEXAN~1\DOWNLO~1\CATALY~1.21\CATALY~1.21\CATALY~1\lib\site-packages\pandas\core\indexing.py", line 1312, in __getitem__

return self._getitem_axis(key, axis=0)


 "C:\Users\ALEXAN~1\DOWNLO~1\CATALY~1.21\CATALY~1.21\CATALY~1\lib\site-packages\pandas\core\indexing.py", line 1621, in _getitem_axis

key = self._convert_scalar_indexer(key, axis)


 "C:\Users\ALEXAN~1\DOWNLO~1\CATALY~1.21\CATALY~1.21\CATALY~1\lib\site-packages\pandas\core\indexing.py", line 196, in _convert_scalar_indexer

return ax._convert_scalar_indexer(key, kind=self.name)


 "C:\Users\ALEXAN~1\DOWNLO~1\CATALY~1.21\CATALY~1.21\CATALY~1\lib\site-packages\pandas\indexes\numeric.py", line 160, in _convert_scalar_indexer

._convert_scalar_indexer(key, kind=kind))


 "C:\Users\ALEXAN~1\DOWNLO~1\CATALY~1.21\CATALY~1.21\CATALY~1\lib\site-packages\pandas\indexes\base.py", line 1144, in _convert_scalar_indexer

return self._validate_indexer('positional', key, kind)


 "C:\Users\ALEXAN~1\DOWNLO~1\CATALY~1.21\CATALY~1.21\CATALY~1\lib\site-packages\pandas\indexes\base.py", line 3035, in _validate_indexer

self._invalid_indexer(form, key)


 "C:\Users\ALEXAN~1\DOWNLO~1\CATALY~1.21\CATALY~1.21\CATALY~1\lib\site-packages\pandas\indexes\base.py", line 1284, in _invalid_indexer

kind=type(key)))
TypeError: cannot do positional indexing on <class 'pandas.indexes.range.RangeIndex'> with these indexers [nan] of <class 'float'>


Traceback (most recent call last):

 "/usr/local/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3/lib/python3.3/doctest.py", line 1287, in __run
compileflags, 1), test.globs)

 "<doctest corpus.doctest[366]>", line 1, in <module>
l3 = open(f3).read().split()
TypeError: invalid file: 
SystemPathPointer('/Users/kmike/nltk_data/corpora/inaugural/1909-Taft.txt')