with_subroles¶
-
View.
with_subroles
(names, subroles, append=True)[source]¶ Returns a new view with one or several new subroles on one or more columns.
- Args:
- names (str or List[str]):
The name or names of the column.
- 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.