K2ODING

  • python

Streamlit 3

Streamlit 스트림릿에서 버튼 처리하는 방법 st.button

from os import write import streamlit as st import pandas as pd def main(): df = pd.read_csv('data/iris.csv') if st.button('데이터 보기'): st.dataframe(df) if __name__ == '__main__' : main()

Streamlit 2022.01.07

Streamlit 실행하는 방법 streamlit run {your app}.py

실행하기 $ streamlit run {your app}.py You can now view your Streamlit app in your browser. Local URL: http://localhost:8501 Network URL: http://{your_network}:8501 Streamlit은 8501 포트에 앱이 실행된다. 일단 지금 아무 것도 없는 상황에서는 우측 상단 버튼만 있는 페이지를 볼 수 있다. Streamlit 불러오기 import streamlit as st Streamlit은 st 라는 alias로 불러온다. 소스에 변경이 생길 경우 경우 상단에 알림이 뜬다. Rerun 을 해주도록 하자. https://wonyoungseo.medium.com/kr-%ED%8C%8C%EC%..

Streamlit 2022.01.07

Streamlit 스트림릿에서 라디오 버튼 처리하는 방법

st.dataframe(df) status = st.radio('정렬을 선택하세요', ['오름차순정렬','내림차순정렬']) if status == '오름차순정렬' : st.dataframe( df.sort_values('petal_length') ) elif status == '내림차순정렬' : st.dataframe( df.sort_values('petal_length',ascending=False))

Streamlit 2022.01.07
이전
1
다음
더보기
프로필사진

K2ODING

  • 분류 전체보기 (85)
    • Python (47)
      • Python_Training (7)
    • Object_Detection (6)
    • MySQL_Workbench (18)
    • API 서버개발 (10)
    • Streamlit (3)
    • Financial Independence Reti.. (0)
      • economy (0)

Tag

break, MySQL 유저생성, Python, object detection, API, loop, Def, Tensor Flow,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/08   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바