with_subroles

StringColumnView.with_subroles(subroles, append=True)

Returns a new column with new subroles.

Args:

subroles (str or List[str]): The subroles to be assigned.

append (bool, optional): Whether you want to append the

new subroles to the existing subroles.