skrub.Expr.skb.get_data#
- Expr.skb.get_data()[source]#
Collect the values of the variables contained in the expression.
- Returns:
dict
mapping variable names to their valuesVariables for which no value was given do not appear in the result.
Examples
>>> import skrub >>> a = skrub.var('a', 0) >>> b = skrub.var('b', 1) >>> c = skrub.var('c') # note no value >>> e = a + b + c >>> e.skb.get_data() {'a': 0, 'b': 1}