heavyaiΒΆ

heavyai provides a python DB API 2.0-compliant HeavyDB interface (formerly OmniSci and MapD). In addition, it provides methods to get results in the Apache Arrow-based cudf GPU DataFrame format for efficient data interchange.

>>> from heavyai import connect
>>> con = connect(user="admin", password="HyperInteractive", host="localhost",
...               dbname="heavyai")
>>> df = con.select_ipc_gpu("SELECT depdelay, arrdelay"
...                         "FROM flights_2008_10k"
...                         "LIMIT 100")
>>> df.head()
  depdelay arrdelay
0       -2      -13
1       -1      -13
2       -3        1
3        4       -3
4       12        7