In [ ]:
%%python
import pandas as pd
from beakerx.object import beakerx
df = pd.read_csv('../../resources/data/interest-rates-small.csv')
df = df.set_index('time')
beakerx.rates = df

Display pandas in python:


In [ ]:
%%python
beakerx.rates

In [ ]:
// expected result of displaying pandas in python
Image("../../resources/img/groovy/autoPandas/cell1_case1.png")

Display pandas in groovy:


In [ ]:
beakerx.rates

In [ ]:
// expected result of displaying pandas in groovy
Image("../../resources/img/groovy/autoPandas/cell1_case2.png")

In [ ]:
%%python
from beakerx import *
import pandas as pd
import numpy as np
a = pd.DataFrame(data=np.zeros((5,5)), columns=['c'+str(i) for i in range(5)], dtype='int64')
a = a.set_index('c0',append=True)
beakerx.rates = a

Display pandas in python:


In [ ]:
%%python
beakerx.rates

In [ ]:
// expected result of displaying pandas in python
Image("../../resources/img/groovy/autoPandas/cell3_case1.png")

Display pandas in groovy:


In [ ]:
beakerx.rates

In [ ]:
// expected result of displaying pandas in groovy
Image("../../resources/img/groovy/autoPandas/cell3_case2.png")

In [ ]: