Spaces:
Sleeping
Sleeping
Commit ·
345bbc9
1
Parent(s): b0125cf
Update eda.py
Browse files
eda.py
CHANGED
|
@@ -24,7 +24,7 @@ def run():
|
|
| 24 |
labels={'x': 'Emotion', 'y': 'Count'},
|
| 25 |
title='Distribution of Emotions')
|
| 26 |
fig_emotions.update_traces(marker_line_width=1, marker_line_color='black')
|
| 27 |
-
fig_emotions.update_layout(xaxis_title='Emotions', yaxis_title='Count', width=
|
| 28 |
|
| 29 |
# comment distribution
|
| 30 |
fig_comment_length = px.histogram(eda,
|
|
@@ -33,7 +33,7 @@ def run():
|
|
| 33 |
marginal='box',
|
| 34 |
title='Distribution of Comment Length')
|
| 35 |
fig_comment_length.update_traces(marker_line_width=1, marker_line_color='black')
|
| 36 |
-
fig_comment_length.update_layout(xaxis_title='Length of Comment', yaxis_title='Count', width=
|
| 37 |
|
| 38 |
# word count distribution
|
| 39 |
fig_word_count = px.histogram(eda,
|
|
@@ -42,7 +42,7 @@ def run():
|
|
| 42 |
marginal='box',
|
| 43 |
title='Distribution of Word Count')
|
| 44 |
fig_word_count.update_traces(marker_line_width=1, marker_line_color='black')
|
| 45 |
-
fig_word_count.update_layout(xaxis_title='Word Count', yaxis_title='Count', width=
|
| 46 |
|
| 47 |
# Display the figures in Streamlit
|
| 48 |
st.plotly_chart(fig_emotions)
|
|
|
|
| 24 |
labels={'x': 'Emotion', 'y': 'Count'},
|
| 25 |
title='Distribution of Emotions')
|
| 26 |
fig_emotions.update_traces(marker_line_width=1, marker_line_color='black')
|
| 27 |
+
fig_emotions.update_layout(xaxis_title='Emotions', yaxis_title='Count', width=800)
|
| 28 |
|
| 29 |
# comment distribution
|
| 30 |
fig_comment_length = px.histogram(eda,
|
|
|
|
| 33 |
marginal='box',
|
| 34 |
title='Distribution of Comment Length')
|
| 35 |
fig_comment_length.update_traces(marker_line_width=1, marker_line_color='black')
|
| 36 |
+
fig_comment_length.update_layout(xaxis_title='Length of Comment', yaxis_title='Count', width=700, bargap=0)
|
| 37 |
|
| 38 |
# word count distribution
|
| 39 |
fig_word_count = px.histogram(eda,
|
|
|
|
| 42 |
marginal='box',
|
| 43 |
title='Distribution of Word Count')
|
| 44 |
fig_word_count.update_traces(marker_line_width=1, marker_line_color='black')
|
| 45 |
+
fig_word_count.update_layout(xaxis_title='Word Count', yaxis_title='Count', width=600)
|
| 46 |
|
| 47 |
# Display the figures in Streamlit
|
| 48 |
st.plotly_chart(fig_emotions)
|