mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
Merge branch 'develop' into release/3.2.3
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user