Umang-Bansal commited on
Commit
9956f18
·
verified ·
1 Parent(s): 2c8fa83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,9 +16,9 @@ def get_data_preview(file):
16
 
17
  def label_data(ranges):
18
  global global_data
19
- for start, end, label in ranges:
20
  global_data.loc[start:end, 'label'] = label
21
- return global_data.head()
22
 
23
  def preprocess_data():
24
  global global_data
 
16
 
17
  def label_data(ranges):
18
  global global_data
19
+ for start, end, label in ranges.values:
20
  global_data.loc[start:end, 'label'] = label
21
+ return global_data.tail()
22
 
23
  def preprocess_data():
24
  global global_data