Line Break Pandas DataFrame

In pandas cell, the link break using ‘\n’ is not working as expected.
The dataframe is:
image

Code:
import streamlit as st
from st_aggrid import AgGrid
p = pd.DataFrame(data=['Good ’ + “\n” + ‘Night’, ‘ram’])
AgGrid(p)

I need to display this dataframe but will wrap text so that using “\n” Good and night appears in new line but same cell.

4 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.