data_pool_table
Module to interact with data pool tables.
This module contains class to interact with data pool tables in EMS data integration.
Typical usage example
DataPoolTable ¶
Bases: PoolTable
Data model table object to interact with data model table specific data integration endpoints.
from_transport
classmethod
¶
Creates high-level data pool table object from given PoolTable.
Parameters:
-
client
(
Client
) –Client to use to make API calls for given data pool table.
-
data_pool_id
(
str
) –Id of data pool where table is located
-
pool_table_transport
(
PoolTable
) –PoolTable object containing properties of data pool table.
Returns:
-
DataPoolTable
–A DataPoolTable object with properties from transport and given client.
get_columns ¶
Gets all table columns of given table.
Returns:
-
CelonisCollection[typing.Optional[PoolColumn]]
–A list containing all columns of table.
upsert ¶
Upserts data frame to existing table in data pool.
Parameters:
-
df
(
pd.DataFrame
) –DataFrame to push to existing table.
-
keys
(
typing.List[str]
) –Primary keys of table.
-
chunk_size
(
int
) –Number of rows to push in one chunk.
-
**kwargs
(
typing.Any
) –Additional parameters set for DataPushJob object.
Returns:
-
None
–The updated table object.
Raises:
-
PyCelonisTableDoesNotExistError
–Raised if table does not exist in data pool.
-
PyCelonisDataPushExecutionFailedError
–Raised when table creation fails.
append ¶
Appends data frame to existing table in data pool.
Parameters:
-
df
(
pd.DataFrame
) –DataFrame to push to existing table
-
chunk_size
(
int
) –Number of rows to push in one chunk
-
**kwargs
(
typing.Any
) –Additional parameters set for NewTaskInstanceTransport object.
Returns:
-
None
–The updated table object.
Raises:
-
PyCelonisTableDoesNotExistError
–Raised if table does not exist in data pool
-
PyCelonisDataPushExecutionFailedError
–Raised when table creation fails