In [1]:
import karps as ks
import karps.functions as f
from karps.display import show_phase
In [2]:
df = ks.dataframe([(1,)], schema="ee")
In [3]:
df.ee
Out[3]:
In [4]:
c = f.collect(df.ee + df.ee)
c
Out[4]:
In [5]:
c.op_extra
Out[5]:
In [6]:
m = f.max(df.ee)
In [7]:
m2 = m + m
In [8]:
df.ee + m
Out[8]:
In [9]:
df2 = (df.ee + m).as_dataframe()
In [10]:
df2.op_extra
Out[10]:
In [11]:
df2.parents
Out[11]:
In [12]:
m2.op_extra
Out[12]:
In [13]:
col1 = df.ee + df.ee
c = f.max(col1)
c
Out[13]:
In [14]:
s = ks.session("test2")
comp = s.compute(c)
In [15]:
show_phase(comp, "final")
In [16]:
comp.values()
Out[16]:
In [ ]: