Skip to content

Commit

Permalink
doc update for dataset upsert (#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
nankolena authored Oct 7, 2024
1 parent 7192a03 commit ed27f50
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kolena/dataset/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,10 @@ def upload_dataset(
within a dataset. When unspecified, a suitable value is inferred from the columns of the provided `df`. Note
that `id_fields` must be hashable.
:param commit_tags: Optionally specify a list of tags to associate with the dataset commit.
:param append_only: If True, the existing datapoint in the dataset will not be modified,
and only new datapoints from the input dataframe will be added. If False, all datapoints in the dataset will
be replaced by the ones in the input dataframe
:param append_only: If `False`, all datapoints in the dataset will be replaced by the ones in the input dataframe,
and existing datapoints absent from the input dataframe will be removed from the dataset. If `True`, new
datapoints from the input dataframe will be added, and existing datapoints will be modified if present in the
input dataframe, but no datapoints will be deleted from the datasets. This behaves like an `UPSERT` operation.
"""
_upload_dataset(name, df, id_fields=id_fields, commit_tags=commit_tags, append_only=append_only)

Expand Down

0 comments on commit ed27f50

Please sign in to comment.