metric_forge.finance.polars_ext.IncomeStatement_Polars.net_profit_margin#
- IncomeStatement_Polars.net_profit_margin(
- revenue_column: str,
- cogs_column: str,
- expenses_column: str,
Calculate net profit 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.
Returns: - pl.Expr: The calculated net profit margin.