Open in Colab
GitHub
Client
Get a data row
Assign global keys
Clear global keys
Fundamentals
Create data rows
Data rows are created via methods from theDataset class. For complete details and additional examples of approaches for creating data rows, please see Dataset.
We recommend using created_data_rows() and upsert_data_rows() methods for large data row upload operations.
The only required argument when creating a data row is the row_data. However, Labelbox strongly recommends supplying each data row with a global key upon creation.
Export data rows
For a complete reference on how to export data rows, please visit the export overview documentation Export a single data row:Methods
Create and update an attachment
Please reference our attachment documentation for more information on supported attachment data types. For details on creating attachments in the same step as creating data rows, see Dataset.Get the winning label ID
For more details on what a “winning” label is and how it is chosen, see Consensus.Update data rows from a dataset
We recommend using theupsert_data_rows() method to update data rows.
When using this method to update data rows, you need to pass a key, which can reference either a global key or data row ID.
Include any fields you wish to update along with their new values.
update method is also available; however, for a large number of data row updates, we recommend using upsert_data_rows()
The update method only supports updates on global_key, row_data or external_id values.
Delete data rows
Deleting data rows cannot be undoneThese methods delete data rows along with all labels made on each data row. This action cannot be reverted without the assistance of Labelbox support.
Limit on bulk deleting data rows
Thelb.DataRow.bulk_delete() method can delete a maximum of 4,000 data rows per call.