pyfolio icon indicating copy to clipboard operation
pyfolio copied to clipboard

AttributeError: module 'pandas' has no attribute 'Float64Index'

Open Nurxat21 opened this issue 2 years ago • 0 comments

Problem Description

AttributeError: module 'pandas' has no attribute 'Float64Index' Please provide a minimal, self-contained, and reproducible example:

pf.create_full_tear_sheet(returns, positions=positions, transactions=transactions,
                          live_start_date='2009-10-22', round_trips=True)

Please provide the full traceback:

# I just create a strategy, and back test it, want to get create_full_tear_sheet of returns. 

Please provide any additional information below: File e:\desktop\python\3.9\lib\site-packages\pyfolio\timeseries.py:1141, in summarize_paths(samples, cone_std, starting_value) 1138 if isinstance(cone_std, (float, int)): 1139 cone_std = [cone_std] -> 1141 cone_bounds = pd.DataFrame(columns=pd.Float64Index([])) 1142 for num_std in cone_std: 1143 cone_bounds.loc[:, float(num_std)] = cum_mean + cum_std * num_std

Versions

  • Pyfolio version: just download from github
  • Python version: 3.9

Nurxat21 avatar Dec 09 '23 18:12 Nurxat21