1import streamlit as st
2import pandas as pd
3
4st.title("우리 동네 기온")
5df = pd.read_csv("data.txt")
6print("불러온 행:", len(df))
7
8month = st.slider("월 선택", 1, 12, 9)
9view = df[df.month <= month]
10st.bar_chart(view, x="month", y="temp")
11st.write(f"{month}월 평균 {view.temp.mean():.1f}°C")