Skip to content

Commit

Permalink
Improv: Improved certain table descriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
AAnzel committed Dec 7, 2021
1 parent 19e67da commit faf6a3b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Source/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,9 @@ def show_data_set(df):
def show_calculated_data_set(df, text_info):
with st.spinner('Calculating features and showing the data set'):
if len(df.columns.to_list()) > 50 or len(df.columns.to_list()) == 1:
st.markdown('First 50 entries and first 8 features (columns). '
+ '**' + text_info + '**')
st.markdown('**' + text_info + '** ' +
'First 50 entries and first 8 features (columns). ' +
'Each column represents one out of 100 dimensions.')
st.dataframe(df.iloc[:50, :8])

# TODO: Uncomment pd.describe when the bug is fixed in Pandas
Expand All @@ -699,7 +700,7 @@ def show_calculated_data_set(df, text_info):
# st.markdown('Summary statistics')
# st.dataframe(df.describe(datetime_is_numeric=True))
else:
st.markdown('First 100 entries ' + '**' + text_info + '**')
st.markdown('**' + text_info + '** + ''First 100 entries.')
st.dataframe(df.head(100))
# st.markdown('Summary statistics')
# st.dataframe(df.describe(datetime_is_numeric=True))
Expand Down

0 comments on commit faf6a3b

Please sign in to comment.