Can I display two data in two columns?

for example, I have got two data and want to show them in two columns, something like

<table>
  <tr>
    <td>st.write(data1)</td>
    <td>st.write(data2)</td>
  </tr>
</table>

in this way, I can do visual comparison between these two data more easily.

curious if that is possible now? thanks~

Iā€™m not sure if this helps, but when I have to do something like this I simply concat two dataframes.

import pandas as pd

df1 = pd.DataFrame(data1)
df2 = pd.DataFrame(data2)

st.write(pd.concat([df1, df2], axis=1))
2 Likes