pymapd
The pymapd client interface provides a python DB API 2.0-compliant OmniSci interface. In addition, it provides methods to get results in the Apache Arrow-based GDF format for efficient data interchange.
Documentation
See the GitHub pymapd repository for full documentation:
Examples
Create a Cursor and Execute a Query
Step 1: Create a connection
Step 2: Create a cursor
Step 3: Query database table of flight departure and arrival delay times
Step 4: Display number of rows returned
Step 5: Display the Description objects list
The list is a named tuple with attributes required by the specification. There is one entry per returned column, and we fill the name
, type_code
, and null_ok
attributes.
Step 6: Iterate over the cursor, returning a list of tuples of values
Select Data into a GpuDataFrame Provided by pygdf
Step 1: Create a connection to local OmniSci instance
Step 2: Query GpuDataFrame database table of flight departure and arrival delay times
Step 3: Display results
Last updated