Using the Python SDK
The Athina Python SDK provides a simple interface to update cells in your datasets:Parameters
dataset_id
(str): The ID of the dataset to update cells in.cells
(List[Dict]): A list of cells to update, where each cell is a dictionary containing:row_no
(int): The row number (1-based indexing) of the cell to update.column_name
(str): The name of the column containing the cell to update.value
(Any): The new value for the specified cell.
Return Value
The method returns a dictionary with the API response, typically containing a success message.Error Handling
If the API call fails, aCustomException
is raised with details about the error.
Direct API Calls
You can also update cells by making a direct API call:Request Format
- Method: PUT
- URL:
http://api.athina.ai/api/v1/dataset_v2/<DATASET_ID>/cells
- Headers:
athina-api-key
: Your Athina API keyContent-Type
: application/json
- Body: