Spaces:
Runtime error
Runtime error
pi194046
commited on
Commit
•
cd7536f
1
Parent(s):
9eb73e2
resolving split issue
Browse files
app.py
CHANGED
@@ -215,11 +215,12 @@ with tab3:
|
|
215 |
|
216 |
# Convert the list of dictionaries to a DataFrame
|
217 |
df = pd.DataFrame(data)
|
|
|
218 |
df["page_content"]=df["page_content"].str.split(' ##### ', 1).str[1].str.strip()
|
219 |
df = df["page_content"]
|
220 |
|
221 |
# Display the DataFrame in Streamlit as an interactive dataframe
|
222 |
-
#
|
223 |
|
224 |
|
225 |
# Alternatively, display it as a static table
|
|
|
215 |
|
216 |
# Convert the list of dictionaries to a DataFrame
|
217 |
df = pd.DataFrame(data)
|
218 |
+
st.dataframe(df)
|
219 |
df["page_content"]=df["page_content"].str.split(' ##### ', 1).str[1].str.strip()
|
220 |
df = df["page_content"]
|
221 |
|
222 |
# Display the DataFrame in Streamlit as an interactive dataframe
|
223 |
+
#
|
224 |
|
225 |
|
226 |
# Alternatively, display it as a static table
|