-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat] 데이터 분석 인터페이스 구현 #20
Conversation
이전에는 첨부 파일이 없으면 아무 내용도 출력되지 않았습니다. 이제는 첨부 파일이 없을 때 디폴트로 `train.csv`에 대한 분석을 출력합니다.
미리 만들어뒀고 세부 기능 구현은 아직입니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생 많으셨습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
기능 별로 차근차근 구현하려고 노력한게 보여 좋습니다!
analysis_dashboard.py
Outdated
st.write(f"Row at index {int(index_input)}:") | ||
st.write(row_data) | ||
else: | ||
st.error("Invalid index. Please try again.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
소소한 팁인데 다음과 같이 코드를 바꾸면 어떨까요?
if not st.button("Retrieve by Index") or not (0 <= index_input < len(df)):
st.error("Invalid index. Please try again.")
...
혹은 index_input 선언 이후 바로 검사를 진행해도 좋을 것 같습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -98,8 +134,7 @@ def filter_data_by_column(df: pd.DataFrame): | |||
elif access_method == "Filter by Column": | |||
filter_data_by_column(df) | |||
|
|||
# TODO: 수능 문제 형태로 출력 | |||
pass | |||
display_question_format(df) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
중간 중간 모듈화 좋습니다!! 추후에 streamlit 기능 관련 모듈 구조 어떻게 잡을지 논의해도 좋을 듯 싶어요.
test.csv에 answer 행이 없어서 KeyError가 발생하는 문제가 있었습니다. 문제가 되는 부분을 조건문 처리하여 수정했습니다. 나중에 로직을 개선할 여지가 있다고 생각됩니다.
📝 Summary
Streamlit으로 구현된 데이터 분석 인터페이스입니다.
현재 구현된 기능
✅ Checklist
📄 Description
데이터 개요 탭
df.info()와 df.head()의 출력값을 확인할 수 있습니다.
데이터 탐색 탭
전체 데이터셋을 확인할 수 있는 화면이 있습니다.
화면 안에서 ctrl + F로 키워드 검색이 가능합니다.
오른쪽 위에 있는 버튼으로 csv 파일을 다운로드할 수 있습니다.
인덱스를 통한 데이터 접근, Column에 포함된 값을 통한 데이터 필터링 기능을 제공합니다.
인덱스를 입력하면, 해당 인덱스의 데이터를 수능 형식으로 출력하는 기능을 제공합니다.
데이터 분포 탭
아직 기능 미구현 상태입니다.
추후에 추가될 예정입니다.
💡 Notice (Optional)
requirements.txt
에streamlit
과streamlit-option-menu
가 추가되었습니다.노션에 대략적인 코드 해설을 올려놓았습니다.
필요하신 분들은 참고하시면 될 것 같습니다.
🔗 Related Issue(s)
close #13