Available container types
The Constructor Platform SDK offers these two container types:
- Dataset — containers that can store all types of objects.
- Dataframe — containers that are tables storing data.
Containers additionally act as context managers:
- You create or load a container and start a context.
- The container is committed to the data catalog when you exit the context.
To load a container from the data catalog, you can use the load function. Here's an example using a Dataframe:
| [Copy Code](javascript:void(0)) Python |
from research_sdk import DataStorageInterface, DataStorageType, Dataframe with DataStorageInterface.create(DataStorageType.Datacat) as storage: with Dataframe.load(storage=storage, object_id=frame_id) as frame: rows = frame.select() |