def convert_float(col):
    """
    Convert floating point values. If it is not possible, it returns 0.
    
    This is useful for the TotalCharges columns, since it contains
    empty cells when it should be 0.
    """
    try:
        return float(col)
    except ValueError:
        return 0