Updated on 2026-11-06 GMT+08:00

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.
Table 1 Python versions supported in different service scenarios

Service Scenario

Built-in Python Packages

Supported Python Versions

Python UDF

  • cloudpickle
  • msgpack
  • pyarrow
  • protobuf
  • pandas
  • numpy
  • redis
  • opentelemetry-api
  • opentelemetry-sdk
  • opentelemetry-exporter-otlp-proto-grpc

Python 3.10 and Python 3.11

Multimodal data processing

  • av (PyAV)
  • pillow
  • soundfile
  • decord
  • opencv-python-headless
  • numpy
  • scipy

Python 3.11

AI inference/Model service (UDF)

  • torch
  • torchvision
  • onnx
  • onnxruntime
  • torch_npu
  • onnxruntime-cann
  • vlm
  • yreserve
  • Ascend-cann-toolkit
  • kernels

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:

Table 2 Aura DataFrame SDK

API

Function

Session APIs

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.

Dataset APIs

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).

Table APIs

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).

I/O APIs

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.

UDF APIs

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.

AI APIs

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.