https://www.reddit.com/r/DSP/s/Uu3w8z3yev
I’m running Streamlit locally and intend to have my team also use the app on their local. I have a need to show table data in the format of the image in the link. I read other questions on tables and came away confused. Please help.
ferdy
March 11, 2024, 3:55am
2
Create the table in markdown and style it to remove the borders.
Thank you, any sample code that you can reference to generate at runtime?
Hi @Akgarfield
Perhaps you can try using HTML and CSS to mimick the table from the reference paper:
import streamlit as st
# CSS for table styling
st.markdown("""
<style>
table {
border-collapse: collapse;
border-top: 2px solid #666;
border-bottom: 2px solid #666;
width: 100%;
}
</style>
""", unsafe_allow_html=True)
st.markdown("""
<table>
<tr>
<td>radar frequency</td>
<td>8.75 GHz</td>
</tr>
<tr>
<td>bandwith</td>
<td>200 MHz</td>
</tr>
<tr>
<td>ramp period</td>
<td>350 us</td>
</tr>
<tr>
<td>ramp frequency</td>
<td>286 kHz</td>
</tr>
</table>
""", unsafe_allow_html=True)
1 Like
system
Closed
September 8, 2024, 5:31am
5
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.