def dtype_to_field_type(ty):
    """Simple converter that translates Pandas column types to data types for
    Draco.
    """
    if ty in ["float64", "int64"]:
        return "number"
    elif ty in ["bool"]:
        return "boolean"
    elif ty in ["object"]:
        return "string"
    elif ty in ["datetime64[ns]"]:
        return "datetime"
    else:
        raise ValueError(f"unsupported type {ty}")