Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -60,11 +60,16 @@ if analysis_run:
|
|
60 |
elif text_input:
|
61 |
content = text_input
|
62 |
|
63 |
-
# Veriyi işleme
|
64 |
result = re.split(r'[ \n]+', content)
|
65 |
notes_result = result[first_step::increase_amount]
|
|
|
|
|
|
|
66 |
notes_result = [x for x in notes_result if x != '∅' and x != "NA"]
|
67 |
-
|
|
|
|
|
68 |
notes_result = np.array(notes_result)
|
69 |
|
70 |
# İstatistikler
|
|
|
60 |
elif text_input:
|
61 |
content = text_input
|
62 |
|
63 |
+
# Veriyi işleme: strip ve kaçış dizilerini temizle
|
64 |
result = re.split(r'[ \n]+', content)
|
65 |
notes_result = result[first_step::increase_amount]
|
66 |
+
|
67 |
+
# Her veriye strip uygula ve kaçış dizilerini çıkar
|
68 |
+
notes_result = [re.sub(r'\\[^\n]*', '', x.strip()) for x in notes_result]
|
69 |
notes_result = [x for x in notes_result if x != '∅' and x != "NA"]
|
70 |
+
|
71 |
+
# float dönüşümü için veriye strip ve temizleme
|
72 |
+
notes_result = list(map(lambda x: float(x) if x else 0.0, notes_result))
|
73 |
notes_result = np.array(notes_result)
|
74 |
|
75 |
# İstatistikler
|