plotly / dash-table-experiments

NO LONGER SUPPORTED - use https://github.com/plotly/dash-table instead
MIT License
174 stars 57 forks source link

dash-table-experiments outputs columns of dataframe but not rows #100

Open DavitGadyan opened 5 years ago

DavitGadyan commented 5 years ago

I run into issue of having columns but not rows' data displayed...

I get json data which I transformed into pandas dataframe.. then I converted it using this method

table.to_dict('records')

Nevertheless I get data for columns but not rows???

My function script as follows >>>

def update_datatable(input_value): temp = []

for x in scraperDb[input_value].find({}):
    temp.append(x)

data = json_util.dumps(temp)
table=pd.read_json(data)

return table.to_dict('records')

How can I display data also for rows???

DavitGadyan commented 5 years ago

I tried all values for table.to_dict('records') ..... str {‘dict’, ‘list’, ‘series’, ‘split’, ‘records’, ‘index’}

only if I have records it outputs columns..

How I need to change structure of data .. inside some of column values I have dict or dict with lists or other dicts...

Would appreciate some help