bach.DataFrame.set_variable
set_variable
(name, value, *, dtype=None)Return a copy of this DataFrame with the variable value updated.
Parameters
name
(str) – name of variable to updatevalue
(Any) – new value of variabledtype
(Optional[str]) – optional. If not set it will be derived from the value, if set we check that it matches the value. If dtype doesn’t match the value’s dtype, then an Exception is raised.
Returns
copy of this DataFrame, with the value updated.