quantopian / alphalens

Performance analysis of predictive (alpha) stock factors
http://quantopian.github.io/alphalens
Apache License 2.0
3.2k stars 1.12k forks source link

Add option return_fig and show #346

Open xgdgsc opened 4 years ago

xgdgsc commented 4 years ago

option for create functions are return_tf which stands for return table (in dict) and figure (in list), added return_fig in plot functions to return fig or tables, added show to allow suppress showing the plot in this mode. The create functions should be pretty usable. The plot functions are not fully tested by myself.

https://github.com/quantopian/alphalens/issues/342

twiecki commented 4 years ago

@xgdgsc Thanks, seems like tests are failing.

xgdgsc commented 4 years ago

I see log like:

The command "conda create -q -n testenv --yes python=$TRAVIS_PYTHON_VERSION ipython flake8 numpy scipy nose matplotlib pandas=$PANDAS_VERSION statsmodels seaborn" failed and exited with 1 during .

don' t know how to fix that.

twiecki commented 4 years ago

Oh yeah, that's unrelated to your changes.

On Fri, Aug 30, 2019 at 11:37 AM xgdgsc notifications@github.com wrote:

I see log like:

The command "conda create -q -n testenv --yes python=$TRAVIS_PYTHON_VERSION ipython flake8 numpy scipy nose matplotlib pandas=$PANDAS_VERSION statsmodels seaborn" failed and exited with 1 during .

don' t know how to fix that.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/quantopian/alphalens/pull/346?email_source=notifications&email_token=AAFETGERCBKAE27CLFDFE6TQHDS4RA5CNFSM4IP5XKNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5REW4A#issuecomment-526535536, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFETGHXCLAKPKJSLT6XEC3QHDS4RANCNFSM4IP5XKNA .