oxen.data_frame
DataFrame Objects
Examples
CRUD Operations
Index a data frame in a workspace.__init__
remote
-str
,RemoteRepo
, orWorkspace
The workspace or remote repo the data frame is in.path
-str
The path of the data frame file in the repository.host
-str
The host of the oxen-server. Defaults to “hub.oxen.ai”.branch
-Optional[str]
The branch of the remote repo. Defaults to None.scheme
-str
The scheme of the remote repo. Defaults to “https”.
workspace_url
size
page_size
total_pages
list_page
page_num
-int
The page number of the data frame to list. We default to page size of 100 for now.
insert_row
data
-dict
A dictionary representing a single row of data. The keys must match a subset of the columns in the data frame. If a column is not present in the dictionary, it will be set to an empty value.
where_sql_from_dict
select_sql_from_dict
get_embeddings
is_nearest_neighbors_enabled
enable_nearest_neighbors
query
nearest_neighbors_search
get_by
get_row
idx
-int
The index of the row to get.
get_row_by_id
id
-str
The id of the row to get.
update_row
id
-str
The id of the row to update.data
-dict
A dictionary representing a single row of data. The keys must match a subset of the columns in the data frame. If a column is not present in the dictionary, it will be set to an empty value.
delete_row
id
-str
The id of the row to delete.
restore
commit
message
-str
The message to commit the changes.branch
-str
The branch to commit the changes to. Defaults to the current branch.