metric_forge.finance.polars_ext.IncomeStatement_Polars.gross_profit_margin#
- IncomeStatement_Polars.gross_profit_margin(
- revenue_column: str,
- cogs_column: str,
Calculate gross profit margin.
Parameters: - revenue_column (str): The column containing total revenue. - cogs_column (str): The column containing cost of goods sold (COGS).
Returns: - pl.Expr: The calculated gross profit margin.