metric_forge.finance.polars_ext.IncomeStatement_Polars.earnings_per_share#

IncomeStatement_Polars.earnings_per_share(
revenue_column: str,
cogs_column: str,
expenses_column: str,
shares_outstanding_column: str,
) Expr[source]#

Calculate earnings per share (EPS).

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. - shares_outstanding_column (str): The column containing the number of outstanding shares.

Returns: - pl.Expr: The calculated earnings per share.