Spaces:
Sleeping
Sleeping
Update pages/Data Collection.py
Browse files- pages/Data Collection.py +45 -1
pages/Data Collection.py
CHANGED
|
@@ -1960,6 +1960,21 @@ elif st.session_state.current_page == "explore_csv":
|
|
| 1960 |
print(df)
|
| 1961 |
""", language="python")
|
| 1962 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1963 |
|
| 1964 |
#--------------------------------------------------------- Json --------------------------------------------------------------------------------
|
| 1965 |
|
|
@@ -2109,6 +2124,22 @@ elif st.session_state.current_page == "explore_xml":
|
|
| 2109 |
data.to_xml('attribute_structure.xml', index=False, root_name='items', row_name='item', attr_cols=['name', 'price', 'category'])
|
| 2110 |
""", language="python")
|
| 2111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2112 |
#--------------------------------------------------------- HTML --------------------------------------------------------------------------------
|
| 2113 |
|
| 2114 |
|
|
@@ -2174,4 +2205,17 @@ elif st.session_state.current_page == "explore_html":
|
|
| 2174 |
""", language="python")
|
| 2175 |
|
| 2176 |
|
| 2177 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1960 |
print(df)
|
| 1961 |
""", language="python")
|
| 1962 |
|
| 1963 |
+
col1, col2 = st.columns(2)
|
| 1964 |
+
|
| 1965 |
+
with col1:
|
| 1966 |
+
st.markdown("""
|
| 1967 |
+
<a href="https://colab.research.google.com/drive/1fwKrcdVlZDT-iozan7OT7SyLFFILx9a6?usp=sharing" target="_blank">
|
| 1968 |
+
<button style="background-color: #4CAF50; color: white; padding: 10px; font-size: 16px; border: none; cursor: pointer;">
|
| 1969 |
+
Open Google Colab File
|
| 1970 |
+
</button>
|
| 1971 |
+
</a>
|
| 1972 |
+
""", unsafe_allow_html=True)
|
| 1973 |
+
|
| 1974 |
+
with col2:
|
| 1975 |
+
if st.button("⬅️ Back to Previous Page"):
|
| 1976 |
+
st.session_state.current_page = "main"
|
| 1977 |
+
|
| 1978 |
|
| 1979 |
#--------------------------------------------------------- Json --------------------------------------------------------------------------------
|
| 1980 |
|
|
|
|
| 2124 |
data.to_xml('attribute_structure.xml', index=False, root_name='items', row_name='item', attr_cols=['name', 'price', 'category'])
|
| 2125 |
""", language="python")
|
| 2126 |
|
| 2127 |
+
|
| 2128 |
+
col1, col2 = st.columns(2)
|
| 2129 |
+
|
| 2130 |
+
with col1:
|
| 2131 |
+
st.markdown("""
|
| 2132 |
+
<a href="https://colab.research.google.com/drive/1HnbPeyrcQ5C6oHhrshBisJZbUxxMEvjD?usp=sharing" target="_blank">
|
| 2133 |
+
<button style="background-color: #4CAF50; color: white; padding: 10px; font-size: 16px; border: none; cursor: pointer;">
|
| 2134 |
+
Open Google Colab File
|
| 2135 |
+
</button>
|
| 2136 |
+
</a>
|
| 2137 |
+
""", unsafe_allow_html=True)
|
| 2138 |
+
|
| 2139 |
+
with col2:
|
| 2140 |
+
if st.button("⬅️ Back to Previous Page"):
|
| 2141 |
+
st.session_state.current_page = "main"
|
| 2142 |
+
|
| 2143 |
#--------------------------------------------------------- HTML --------------------------------------------------------------------------------
|
| 2144 |
|
| 2145 |
|
|
|
|
| 2205 |
""", language="python")
|
| 2206 |
|
| 2207 |
|
| 2208 |
+
col1, col2 = st.columns(2)
|
| 2209 |
+
|
| 2210 |
+
with col1:
|
| 2211 |
+
st.markdown("""
|
| 2212 |
+
<a href="https://colab.research.google.com/drive/1oQniP5t1sdk5r17dVNZkRGIhe4jCe4yR?usp=sharing" target="_blank">
|
| 2213 |
+
<button style="background-color: #4CAF50; color: white; padding: 10px; font-size: 16px; border: none; cursor: pointer;">
|
| 2214 |
+
Open Google Colab File
|
| 2215 |
+
</button>
|
| 2216 |
+
</a>
|
| 2217 |
+
""", unsafe_allow_html=True)
|
| 2218 |
+
|
| 2219 |
+
with col2:
|
| 2220 |
+
if st.button("⬅️ Back to Previous Page"):
|
| 2221 |
+
st.session_state.current_page = "main"
|