Skip to content

Commit

Permalink
remove delete_by_datafame
Browse files Browse the repository at this point in the history
  • Loading branch information
scottwey committed Oct 26, 2023
1 parent 890a1c1 commit 4ce4945
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions python/starpoint/pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,27 +112,3 @@ def update_by_dataframe(
collection_name=collection_name,
)

def delete_by_dataframe(
self,
dataframe: pd.DataFrame,
collection_id: Optional[str] = None,
collection_name: Optional[str] = None,
embedding_column_name: str = EMBEDDING_COLUMN_NAME,
) -> Dict[Any, Any]:
_check_column_length(dataframe)
embedding_column_values = _get_column_value_from_dataframe(
dataframe,
embedding_column_name,
)

metadata_column_values = _get_aggregate_column_values_from_dataframe(
dataframe,
[embedding_column_name],
)

self.starpoint.column_delete(
embeddings=embedding_column_values,
document_metadatas=metadata_column_values,
collection_id=collection_id,
collection_name=collection_name,
)

0 comments on commit 4ce4945

Please sign in to comment.