metric_forge.finance.polars_ext.IncomeStatement_Polars.ebitda_margin#
- IncomeStatement_Polars.ebitda_margin(
- revenue_column: str,
- cogs_column: str,
- expenses_column: str,
- depreciation_column: str,
- amortization_column: str,
Calculate EBITDA margin.
Parameters: - revenue_column (str): The column containing total revenue. - cogs_column (str): The column containing cost of goods sold (COGS). - expenses_column (str): The column containing operating expenses. - depreciation_column (str): The column containing depreciation expense. - amortization_column (str): The column containing amortization expense.
Returns: - pl.Expr: The calculated EBITDA margin.