Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 566 Bytes

File metadata and controls

32 lines (28 loc) · 566 Bytes

ibis-pandas

Installation

pip install ibis-pandas

Getting started

>>> import ibis
>>> import pandas as pd
>>>
>>> df = pd.DataFrame(
...     [["a", 1, 2], ["b", 3, 4]],
...     columns=["one", "two", "three"],
...     index=[5, 6],
... )
>>> df
  one  two  three
5   a    1      2
6   b    3      4
>>> con = ibis.pandas.connect()
>>> t = con.create_table("t", df)
>>> t1 = t.select(two=t.two + 1, three=t.three * 3)
>>> t2 = t1.filter(t1.two > 3)
>>> t3 = t2.select(t2.two, t2.three)
>>> t3.execute()
   two  three
6    4     12