Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Dash print dataframe with multiple line in one cell

$
0
0

Hello,

Currently I have a pandas dataframe :

df = pd.DataFrame({
    "date": ["20210613", "20210614", "20210615"],
    "user": ["A\nB", "C", "D"],
    "machine" : [1, 0, 3]
})

image

I wonder if there is any way to print a table like this:

image

no matter using dcc.Textarea or dash_table.DataTable is OK.

Currently I still can not figure out a good way to achieve this, many thanks.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles