Summary
I am trying to print a dataframe containing Arabic tweets, but almost all text is being hidden on the periphery.
Steps to reproduce
Code snippet:
st.title('Clusters')
for idx, cluster in enumerate(clusters_tweets):
df = pd.DataFrame(cluster, columns=['id', 'tweet'])
with st.expander(label=f'Cluster {idx+1}'):
st.write(df)
clusters_tweets
is a list of lists, with each sublist containing 2-tuples of tweet and tweet ID.
Expected behavior:
I want each tweet to be displayed in its normal position in the cell.
Actual behavior:
The tweets are being shifted to the left, resulting in only a few words (if not none of them) appearing.
I want to display the tweets of each cluster in a neat way. Note that the tweets could be multiline tweets.
Debug info
- Streamlit version: 1.11.0
- Python version: 3.9.15
- Using Conda
- OS version: Windows 11
- Browser version: Google Chrome | Version 107.0.5304.122