pyfolio icon indicating copy to clipboard operation
pyfolio copied to clipboard

PEP8 and unify codebase

Open twiecki opened this issue 11 years ago • 5 comments

Use e.g. autopep8 to make the syntax correspond to pep8.

Also, the functions use different naming conventions, change all to use underscore_style rather than camelCase.

twiecki avatar Jun 08 '15 13:06 twiecki

@gusgordon This seems mostly done, no?

twiecki avatar Jun 15 '15 13:06 twiecki

Pretty much. There are some variable names that are still a bit questionable, though, like x_TS. I'll give those better names today then this can be closed.

gusgordon avatar Jun 15 '15 14:06 gusgordon

@justinlent Does it make sense to rename "algo_ts" to "df_cum_rets"? I think algo_ts is just the cumulative version of df_rets, no?

I think once those bt names get cleaned up and the above is sorted out this issue can be closed.

gusgordon avatar Jun 22 '15 20:06 gusgordon

@gusgordon Yeah, I like that recommendation ^^ to rename algo_ts to the more informative 'df_cum_rets'

Also, I just responded in the HC room about some ideas for renaming the bt_* variables

justinlent avatar Jun 23 '15 03:06 justinlent

+1

twiecki avatar Jun 23 '15 08:06 twiecki