Danger You are looking at the documentation for an older version of the SDV! We are no longer supporting or maintaining this version of the software Click here to go to the new docs pages.
Danger
You are looking at the documentation for an older version of the SDV! We are no longer supporting or maintaining this version of the software
Click here to go to the new docs pages.
Table.
set_primary_key
Set the primary key of this table.
The field must exist and either be an integer or categorical field.
primary_key (str or list) – Name of the field(s) to be used as the new primary key.
ValueError – If the table or the field do not exist or if the field has an invalid type or subtype.