Streamlit table expand issue

I am showing dataset in stream lit with large data and length of data of some cells is high.
If I use dataframe to show it truncating the cell data in dataframe in the UI.
If I use table it showing all contents of cell, but when I try to expand it it not showing the top rows data up to some rows.

Please help on this.