Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -95,7 +95,7 @@ if uploaded_file:
|
|
95 |
"Hemoglobin": hemoglobin,
|
96 |
"Other Notes": other_notes,
|
97 |
}
|
98 |
-
df = df.
|
99 |
df.to_csv(uploaded_file, index=False)
|
100 |
st.success("New visit entry added successfully!")
|
101 |
|
@@ -130,6 +130,6 @@ if uploaded_file:
|
|
130 |
"Hemoglobin": None,
|
131 |
"Other Notes": None,
|
132 |
}
|
133 |
-
df = df.
|
134 |
df.to_csv(uploaded_file, index=False)
|
135 |
st.success("New patient account created successfully!")
|
|
|
95 |
"Hemoglobin": hemoglobin,
|
96 |
"Other Notes": other_notes,
|
97 |
}
|
98 |
+
df = pd.concat([df, pd.DataFrame([new_entry])], ignore_index=True)
|
99 |
df.to_csv(uploaded_file, index=False)
|
100 |
st.success("New visit entry added successfully!")
|
101 |
|
|
|
130 |
"Hemoglobin": None,
|
131 |
"Other Notes": None,
|
132 |
}
|
133 |
+
df = pd.concat([df, pd.DataFrame([new_patient])], ignore_index=True)
|
134 |
df.to_csv(uploaded_file, index=False)
|
135 |
st.success("New patient account created successfully!")
|