Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
#
|
| 51 |
-
|
|
|
|
|
|
|
| 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
|