m7mdal7aj commited on
Commit
c86ce90
1 Parent(s): 4542f66

Update my_model/tabs/dataset_analysis.py

Browse files
Files changed (1) hide show
  1. my_model/tabs/dataset_analysis.py +4 -1
my_model/tabs/dataset_analysis.py CHANGED
@@ -3,6 +3,7 @@ import json
3
  from collections import Counter
4
  import contractions
5
  import csv
 
6
  import pandas as pd
7
  import altair as alt
8
  from typing import Tuple, List, Optional
@@ -323,7 +324,9 @@ def run_dataset_analyzer() -> None:
323
  # Display sample data
324
  with st.container():
325
  with st.expander("Show Dataset Samples"):
326
- st.write(train_data[:10])
 
 
327
 
328
 
329
 
 
3
  from collections import Counter
4
  import contractions
5
  import csv
6
+ import random
7
  import pandas as pd
8
  import altair as alt
9
  from typing import Tuple, List, Optional
 
324
  # Display sample data
325
  with st.container():
326
  with st.expander("Show Dataset Samples"):
327
+ n = random.randint(1,len(train_data)-10)
328
+ # Displaying 10 random samples.
329
+ st.write(train_data[n:n+10])
330
 
331
 
332