DataFrame column types assertion
Passes if the specified DataFrame columns match the expected type strings.
df (DataFrame): The DataFrame to
check.
expected_types (Dict): | List
Column name -> expected type string map.
Expect_pass when types match; Expect_hold
on NA; Expect_stop on mismatch.
assert(expect_column_types(df, [id: "Int", name = "String"]))