rodolphethinks1 commited on
Commit
0fdd412
·
verified ·
1 Parent(s): 075ec1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -47,8 +47,10 @@ def parse_content(html_content):
47
  # Function to update the dataframe
48
  def update_dataframe(html_content, dataframe):
49
  parsed_data = parse_content(html_content)
50
- # Append the new row to the dataframe
51
- dataframe = dataframe.append(parsed_data, ignore_index=True)
 
 
52
  return dataframe
53
 
54
  # Initialize an empty dataframe with 3 empty rows
 
47
  # Function to update the dataframe
48
  def update_dataframe(html_content, dataframe):
49
  parsed_data = parse_content(html_content)
50
+ # Create a new row as a DataFrame
51
+ new_row = pd.DataFrame([parsed_data])
52
+ # Concatenate the new row with the existing dataframe
53
+ dataframe = pd.concat([dataframe, new_row], ignore_index=True)
54
  return dataframe
55
 
56
  # Initialize an empty dataframe with 3 empty rows