vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 1
声望: 0

Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\ui\widget.py", line 290, in process_backtesting_finished_event
self.chart.set_data(df)
File "c:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\ui\widget.py", line 807, in set_data
hist, x = np.histogram(df["net_pnl"], bins="auto")
File "<__array_function__ internals>", line 6, in histogram
File "c:\vnstudio\lib\site-packages\numpy\lib\histograms.py", line 792, in histogram
bin_edges, uniform_bins = _get_bin_edges(a, bins, range, weights)
File "c:\vnstudio\lib\site-packages\numpy\lib\histograms.py", line 396, in _get_bin_edges
first_edge, last_edge = _get_outer_edges(a, range)
File "c:\vnstudio\lib\site-packages\numpy\lib\histograms.py", line 324, in _get_outer_edges
"autodetected range of [{}, {}] is not finite".format(first_edge, last_edge))
ValueError: autodetected range of [nan, nan] is not finite
请问是什么意思

Member
avatar
加入于:
帖子: 2115
声望: 140

应该是数据里有nan吧

© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3

沪公网安备 31011502017034号