Skip to content

Commit

Permalink
share of sum measure in enum
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestoarbitrio committed Mar 22, 2021
1 parent db40c7e commit a40d4f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cr/cube/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class MEASURE(enum.Enum):
COL_INDEX = "col_index"
COL_PERCENT = "col_percent"
MEAN = "mean"
SHARE_SUM = "share_sum"
SUM = "sum"
TABLE_STDERR = "table_stderr"
UNWEIGHTED_COUNT = "count_unweighted"
Expand All @@ -92,4 +93,6 @@ class CUBE_MEASURE(enum.Enum):
VALID_COUNT_UNWEIGHTED = "valid_count_unweighted"


NUMERIC_MEASURES = frozenset((CUBE_MEASURE.SUM, CUBE_MEASURE.MEAN, CUBE_MEASURE.STDDEV))
NUMERIC_MEASURES = frozenset(
(CUBE_MEASURE.SUM, CUBE_MEASURE.MEAN, CUBE_MEASURE.STDDEV, MEASURE.SHARE_SUM)
)

0 comments on commit a40d4f8

Please sign in to comment.