-
Notifications
You must be signed in to change notification settings - Fork 0
/
Home.py
33 lines (25 loc) · 925 Bytes
/
Home.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import streamlit as st
import pandas
st.set_page_config(layout="wide")
ecol, col1, col2, ecol4 = st.columns([0.1, 0.5, 0.5, 0.2])
with col1:
st.image("images/photo.png", width=300)
with col2:
st.title("Yohan Vinu")
content = """Hi, I'm Yohan. I'm a CS major at SRMIST, KTR.
Below you can find some of the apps I have built in Python. Feel free to contact me."""
st.info(content)
col3, empty_col, col4 = st.columns([1.5, 0.5, 1.5])
df = pandas.read_csv("data.csv", sep=";")
with col3:
for index, row in df[:10].iterrows():
st.header(row["title"])
st.write(row["description"])
st.image("images/"+row["image"])
st.write(f"[Source Code]({row['url']})")
with col4:
for index, row in df[10:].iterrows():
st.header(row["title"])
st.write(row["description"])
st.image("images/"+row["image"])
st.write(f"[Source Code]({row['url']})")