diff options
author | Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com> | 2024-02-14 16:56:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-14 15:56:38 +0000 |
commit | 7ceec3023427050afa8cd37a96fed8c721a14603 (patch) | |
tree | 67bac6aa65930171b5dc124403408b1e3ec6342b | |
parent | 2f01e954d149bbc8f6f5611a22dbae17c2ca8ae3 (diff) |
Fix CAPM example (#6075)
-rw-r--r-- | openbb_platform/extensions/quantitative/openbb_quantitative/quantitative_router.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbb_platform/extensions/quantitative/openbb_quantitative/quantitative_router.py b/openbb_platform/extensions/quantitative/openbb_quantitative/quantitative_router.py index 6f37b987f33..e455f38ea74 100644 --- a/openbb_platform/extensions/quantitative/openbb_quantitative/quantitative_router.py +++ b/openbb_platform/extensions/quantitative/openbb_quantitative/quantitative_router.py @@ -103,7 +103,7 @@ def capm(data: List[Data], target: str) -> OBBject[CAPMModel]: Examples -------- >>> from openbb import obb - >>> stock_data = obb.equity.price.historical(symbol="TSLA", start_date="2023-01-01", provider="fmp").to_df() + >>> stock_data = obb.equity.price.historical(symbol="TSLA", start_date="2023-01-01", provider="fmp").results >>> obb.quantitative.capm(data=stock_data, target="close") """ import statsmodels.api as sm # pylint: disable=import-outside-toplevel # type: ignore |