BPt.Dataset.set_roles#

Dataset.set_roles(scopes_to_roles, inplace=False)[source]#

This method is used to set multiple roles across multiple scopes as specified by a passed dictionary with keys as scopes and values as the role to set for all columns corresponding to that scope. See Role for more information about how roles are used within BPt.

Parameters
scope_to_rolesdict of Scope to Role

A python dictionary with keys as Scope and their corresponding value’s as the Role in which those columns should take.

For example

scope_to_roles = dict()
scope_to_roles['col1'] = 'target'
scope_to_roles['col2'] = 'non input'
inplacebool, optional

If True, do operation inplace and return None.

default = False