Aura DataFrame SDK Overview
Aura DataFrame SDK provides Pandas-like Python DataFrame development capabilities, enabling you to write data processing jobs using Python. Leveraging the powerful computing power of the Aura kernel, it offers easy-to-use and efficient data processing functions for data scientists, AI engineers, and other professionals.
Aura DataFrame SDK is built upon the open-source Ibis Python DataFrame framework, integrating the Ibis frontend framework with the Aura engine. You can compose data processing scripts using the familiar Ibis DataFrame API. The Ibis framework translates these Python APIs into executable SQL statements for the Aura engine, ensuring efficient execution of computational logic within the engine. The SDK supports Ibis APIs. For details, refer to Ibis official documentation.
The Aura DataFrame SDK supports the following environments:
- Python 3.11 is recommended.
- The Python version of the UDF runtime environment supports only the 3.10 and 3.11 series. Version 3.11.9 is recommended.
| Service Scenario | Built-in Python Packages | Supported Python Versions |
|---|---|---|
| Python UDF |
| Python 3.10 and Python 3.11 |
| Multimodal data processing |
| Python 3.11 |
| AI inference/Model service (UDF) |
| Python 3.11 |
If you need to manage objects and permissions during DataFrame development (for example, creating tables with special formats and configuring object authorization), see "Development Process Using Aura SQL" in the Aura Syntax Reference.
Notes and Constraints
The Aura DataFrame SDK supports only AuraJobV2 endpoints.
Aura DataFrame SDK Functions
The Aura DataFrame SDK provides the following types of APIs:
| API | Function |
|---|---|
| Establishes and manages sessions, serving as the entry point for using the SDK. This includes establishing connections (ai_lake.connect), configuring the UDF deployment workspace (set_function_staging_workspace), loading datasets (load_dataset), and executing SQL statements (sql). A session must be established via these APIs before any data operations. | |
| Performs data processing on datasets, which is the core of development. This includes column operations (select_columns, add_column, drop_columns, rename_columns), row filtering (filter, limit, take), aggregation statistics (aggregate, groupby, max/min/mean), data transformation (map, map_batches, flat_map, order_by, join), execution triggering (execute, show), and execution plan generation (explain_plan/explain_performance). | |
| Manages database tables, including creating a table (create_table), deleting a table (drop_table/delete_table), describing a table (describe_table), listing tables (list_tables), opening a table (open_table), as well as table CRUD operations (insert, update, delete), and column management (add_columns, drop_columns, alter_column_type, rename_column). | |
| Writes data to the lakehouse storage formats to achieve seamless integration with the data lakes. APIs such as write_iceberg, write_orc, and write_parquet are supported. | |
| Manages and uses UDFs, including creating functions (create_scalar_function, create_agg_function, and create_table_function), retrieving functions (get_function), listing functions (list_functions), and deleting functions (delete_function). Scalar UDFs, class UDFs, UDTFs and UDAFs are supported. | |
| Invokes large language model capabilities, including text generation (ai_generate), model registration (create_model), model listing (list_models), model details (describe_model), and model deletion (drop_model). Large model inference can be directly performed in DataFrames. |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot