graviti.operation.frame
#
Definitions of different operations on a DataFrame.
Module Contents#
Classes#
This class defines the basic method of the operation on a DataFrame. |
|
This class defines the operation that add data to a DataFrame. |
|
This class defines the operation that updates the data of a DataFrame. |
- class graviti.operation.frame.DataFrameOperation[source]#
This class defines the basic method of the operation on a DataFrame.
- abstract do(self, access_key, url, owner, dataset, *, draft_number, sheet, jobs)[source]#
Execute the OpenAPI create sheet.
- Parameters
access_key (str) – User’s access key.
url (str) – The URL of the graviti website.
owner (str) – The owner of the dataset.
dataset (str) – Name of the dataset, unique for a user.
draft_number (int) – The draft number.
sheet (str) – The sheet name.
jobs (int) – The number of the max workers in multi-thread operation.
- Raises
NotImplementedError – The method of the base class should not be called.
- Return type
None
- class graviti.operation.frame.AddData(data)[source]#
Bases:
DataFrameOperation
This class defines the operation that add data to a DataFrame.
- Parameters
data (graviti.dataframe.DataFrame) – The data to be added.
- do(self, access_key, url, owner, dataset, *, draft_number, sheet, jobs)[source]#
Execute the OpenAPI add data.
- Parameters
access_key (str) – User’s access key.
url (str) – The URL of the graviti website.
owner (str) – The owner of the dataset.
dataset (str) – Name of the dataset, unique for a user.
draft_number (int) – The draft number.
sheet (str) – The sheet name.
jobs (int) – The number of the max workers in multi-thread operation.
- Return type
None
- class graviti.operation.frame.UpdateData(data)[source]#
Bases:
DataFrameOperation
This class defines the operation that updates the data of a DataFrame.
- Parameters
data (graviti.dataframe.DataFrame) – The data for updating.
- do(self, access_key, url, owner, dataset, *, draft_number, sheet, jobs)[source]#
Execute the OpenAPI add data.
- Parameters
access_key (str) – User’s access key.
url (str) – The URL of the graviti website.
owner (str) – The owner of the dataset.
dataset (str) – Name of the dataset, unique for a user.
draft_number (int) – The draft number.
sheet (str) – The sheet name.
jobs (int) – The number of the max workers in multi-thread operation.
- Return type
None