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.

3 Likes

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