Skip to content

Commit

Permalink
BUG Fix boostrap -> bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
twiecki committed Dec 30, 2015
1 parent 2b159f3 commit 9c01662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyfolio/timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ def perf_stats_bootstrap(returns, factor_returns=None):

stats = pd.DataFrame(columns=['mean', '5%', '95%'])

def do_boostrap(stat_func, *args):
def do_bootstrap(stat_func, *args):
stat_name = stat_func.__name__
bootstrap_values = calc_bootstrap(stat_func, *args)
bootstrap_stats = \
Expand All @@ -785,7 +785,7 @@ def do_boostrap(stat_func, *args):
stats.loc[stat_name, '95%'] = bootstrap_stats['95%']

for stat_func in SIMPLE_STAT_FUNCS:
do_boostrap(stat_func, returns)
do_bootstrap(stat_func, returns)

if factor_returns is not None:
for stat_func in FACTOR_STAT_FUNCS:
Expand Down

0 comments on commit 9c01662

Please sign in to comment.