Count variable cardinality. Returns (new_variable(number), "Observation: ...").
(self, variable: Variable)
| 138 | return new_variable, rtn_str |
| 139 | |
| 140 | def count(self, variable: Variable): |
| 141 | """ |
| 142 | Count variable cardinality. Returns (new_variable(number), "Observation: ..."). |
| 143 | """ |
| 144 | rtn_str = f"Observation: variable ##, which is a number" |
| 145 | new_variable = Variable("type.int", f"(COUNT {variable.program})") |
| 146 | return new_variable, rtn_str |
| 147 | |
| 148 | def get_attributes(self, variable: Variable): |
| 149 | """ |
no test coverage detected