Skip to content
This repository has been archived by the owner on Jun 22, 2019. It is now read-only.

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

Open
DavitGadyan opened this issue Nov 20, 2018 · 1 comment
Open

Comments

@DavitGadyan
Copy link

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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant