@@ -3626,28 +3626,6 @@ def get_income_statement(
36263626 # The rolling window is calculated for the rest of the income statement.
36273627 income_statement = self ._income_statement .T .rolling (trailing ).sum ().T
36283628
3629- # Ratios can't be simply added together and should be recalculated.
3630- income_statement .loc [:, "Gross Profit Ratio" , :] = (
3631- income_statement .loc [:, "Gross Profit" , :]
3632- / income_statement .loc [:, "Revenue" , :]
3633- ).to_numpy ()
3634- income_statement .loc [:, "EBITDA Ratio" , :] = (
3635- income_statement .loc [:, "EBITDA" , :]
3636- / income_statement .loc [:, "Revenue" , :]
3637- ).to_numpy ()
3638- income_statement .loc [:, "Operating Income Ratio" , :] = (
3639- income_statement .loc [:, "Operating Income" , :]
3640- / income_statement .loc [:, "Revenue" , :]
3641- ).to_numpy ()
3642- income_statement .loc [:, "Income Before Tax Ratio" , :] = (
3643- income_statement .loc [:, "Income Before Tax" , :]
3644- / income_statement .loc [:, "Revenue" , :]
3645- ).to_numpy ()
3646- income_statement .loc [:, "Net Income Ratio" , :] = (
3647- income_statement .loc [:, "Net Income" , :]
3648- / income_statement .loc [:, "Revenue" , :]
3649- ).to_numpy ()
3650-
36513629 # The Weighted Average Shares and Weighted Average Shares Diluted should
36523630 # not be summed up but rather kept equal to the current value.
36533631 income_statement .loc [weighted_average_shares .index ] = (
0 commit comments