diff options
author | James Maslek <jmaslek11@gmail.com> | 2023-10-02 13:47:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-02 13:47:49 -0400 |
commit | 702f86067122ae7c595bbc0ebeb14987fc074f7b (patch) | |
tree | 1160a9b28b8fcf4243d9340a0229e16b6262b9d0 /openbb_terminal | |
parent | 020b1ac32c30480ae6f864f09fdf2c3da14a8989 (diff) | |
parent | cba0c7facffa5428733c12cd0fd941e1fc884a8f (diff) |
Merge pull request #5506 from OpenBB-finance/hotfix/fix-pylint-errors
hotfix/fix-pylint-errors: Fixes a couple of pylint errors
Diffstat (limited to 'openbb_terminal')
-rw-r--r-- | openbb_terminal/stocks/fundamental_analysis/av_model.py | 12 | ||||
-rw-r--r-- | openbb_terminal/stocks/options/tradier_model.py | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/openbb_terminal/stocks/fundamental_analysis/av_model.py b/openbb_terminal/stocks/fundamental_analysis/av_model.py index 3f9dccc1b5a..08fae05678b 100644 --- a/openbb_terminal/stocks/fundamental_analysis/av_model.py +++ b/openbb_terminal/stocks/fundamental_analysis/av_model.py @@ -724,17 +724,17 @@ def get_dupont(symbol: str) -> pd.DataFrame: ) return pd.DataFrame() - if not df_bs.index.equals(df_is.index): - console.print( - "The fiscal dates in the balance sheet do not correspond to the fiscal dates in the income statement." - ) - return pd.DataFrame() - # pylint: disable=no-member df_bs = df_bs.set_index("fiscalDateEnding") df_is = df_is.set_index("fiscalDateEnding") dupont_years = pd.DataFrame() + if len(df_bs) != len(df_is): + console.print( + "The fiscal dates in the balance sheet do not correspond to the fiscal dates in the income statement." + ) + return pd.DataFrame() + for i in range(len(df_bs)): ni = df_values(df_is, "netIncome", i, 1) pretax = df_values(df_is, "incomeBeforeTax", i, 1) diff --git a/openbb_terminal/stocks/options/tradier_model.py b/openbb_terminal/stocks/options/tradier_model.py index 90f96998584..6d88eb78eb0 100644 --- a/openbb_terminal/stocks/options/tradier_model.py +++ b/openbb_terminal/stocks/options/tradier_model.py @@ -393,9 +393,9 @@ def get_underlying_price(symbol: str) -> pd.Series: "root_symbols": "rootSymbols", } ) - underlying_price[ + underlying_price[ # pylint: disable=unsupported-assignment-operation "lastTradeTimestamp" - ] = ( # pylint: disable=unsupported-assignment-operation + ] = ( pd.to_datetime(underlying_price["lastTradeTimestamp"], unit="ms").tz_localize( "EST" ) |