Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,9 +17,10 @@ def get_data_preview(file):
|
|
17 |
|
18 |
def label_data(ranges):
|
19 |
global global_data
|
20 |
-
for start, end, label in ranges:
|
21 |
global_data.loc[start:end, 'label'] = label
|
22 |
-
return global_data
|
|
|
23 |
|
24 |
def preprocess_data(data):
|
25 |
data.drop(columns=data.columns[0], axis=1, inplace=True)
|
|
|
17 |
|
18 |
def label_data(ranges):
|
19 |
global global_data
|
20 |
+
for start, end, label in ranges.values:
|
21 |
global_data.loc[start:end, 'label'] = label
|
22 |
+
return global_data
|
23 |
+
|
24 |
|
25 |
def preprocess_data(data):
|
26 |
data.drop(columns=data.columns[0], axis=1, inplace=True)
|