Sequential Metadata API
This guide will walk you through creating the metadata using the Python API.
Metadata Creation, Updates & Inspection
Use the SingleTableMetadata
object to create your metadata, modify and inspect it.
See Single Table API for more details.
Sequence Specific Metadata
You can optionally include additional metadata related to your sequences. These methods are available on the SingleTableMetadata
object.
set_sequence_key
Use this function to set the sequence key of your table. Any existing sequence keys will be removed.
Parameters
(required)
column_name
: The column name of the sequence key. The column name must already be defined in the metadata and it must be an ID or another PII sdtype.
Output (None)
metadata.set_sequence_key(column_name='Patient ID')
set_sequence_index
Use this function to set the sequence index of your table. Any existing sequence indices will be removed.
Parameters
(required)
column_name
: The column name of the sequence index. The column name must already be defined in the metadata. It must be either a numerical or datetime column.
Output (None)
metadata.set_sequence_index(column_name='Time')
Last updated