netflypsb commited on
Commit
3dd320c
·
verified ·
1 Parent(s): f631d2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -95,7 +95,7 @@ if uploaded_file:
95
  "Hemoglobin": hemoglobin,
96
  "Other Notes": other_notes,
97
  }
98
- df = df.append(new_entry, ignore_index=True)
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.append(new_patient, ignore_index=True)
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!")