How do I create a series of tables like the one in this image?

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.

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