def get_spark_column(psdf: DataFrame, label: Label) -> Column:
    scol = psdf._internal.spark_column_for(label)
    col_type = psdf._internal.spark_type_for(label)
    if isinstance(col_type, BooleanType):
        scol = scol.cast('integer')
    return scol
def get_spark_column(psdf: DataFrame, label: Label) -> Column:
    scol = psdf._internal.spark_column_for(label)
    col_type = psdf._internal.spark_type_for(label)
    if isinstance(col_type, BooleanType):
        scol = scol.cast('integer')
    return scol