Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +6 -6
src/streamlit_app.py
CHANGED
|
@@ -1149,12 +1149,12 @@ def fill_line_item_missing_fields_ui(df: pd.DataFrame, summary_total_discount_am
|
|
| 1149 |
)
|
| 1150 |
|
| 1151 |
def is_blank(v):
|
| 1152 |
-
|
| 1153 |
-
|
| 1154 |
-
|
| 1155 |
-
|
| 1156 |
-
|
| 1157 |
-
|
| 1158 |
|
| 1159 |
def is_missing_numeric(v):
|
| 1160 |
if v is None:
|
|
|
|
| 1149 |
)
|
| 1150 |
|
| 1151 |
def is_blank(v):
|
| 1152 |
+
if v is None:
|
| 1153 |
+
return True
|
| 1154 |
+
try:
|
| 1155 |
+
return pd.isna(v) or str(v).strip() == ""
|
| 1156 |
+
except Exception:
|
| 1157 |
+
return False
|
| 1158 |
|
| 1159 |
def is_missing_numeric(v):
|
| 1160 |
if v is None:
|