Running D-Tale from an ipython notebook¶
Using a pandas.DataFrame or pandas.Series¶
The following is hopefully sufficient for most applications (feedback welcome!):
import dtale
dtale.show(df)
[1]:
import dtale
import pandas as pd
def build_data():
for i in range(100):
rec = dict(date=pd.Timestamp('20000101'), security_id=i, foo=i, bar=1.2345678)
for j in range(50):
rec[str(j)] = j
yield rec
df = pd.DataFrame(list(build_data())).set_index(['date','security_id'])
dtale.show(df)
2019-09-04 07:13:56,751 - INFO - D-Tale started at: http://aschonfeld:41233
[ ]: