python - Total number of records in a bulk of data based on attr. categories -
i have data contains 5 attributes x1, x2, x3, x4, x5. x1 binary cases, let (0 s,1 s). x2 (0 s, 1 s, , 2 s), x3 five-folds (1, 2, 3, 4, 5) , on.
how calculate total number of cases?
thank you, markus
i tried apply set theory , found cartesian product can solve intending do.
the variables sets. took number of unique values in each set , multiplied them. result correct.
the following link may helpful:
https://www.mathsisfun.com/sets/injective-surjective-bijective.html
Comments
Post a Comment