Download eda.py from grcvlrn/P2G7: direct link, hf CLI and curl.
- Browser
- Download file 879 Bytes
-
https://huggingface.co/spaces/grcvlrn/P2G7/resolve/main/eda.py
- Command line
-
hf download hf://spaces/grcvlrn/P2G7/eda.py
-
curl -L -o eda.py https://huggingface.co/spaces/grcvlrn/P2G7/resolve/main/eda.py
879 Bytes
| import streamlit as st | |
| import pandas as pd | |
| from PIL import Image | |
| def load_data(): | |
| return pd.read_csv('all-data.csv') | |
| def run(): | |
| # Title caption | |
| st.title('Welcome to Exploratory Data Analysis') | |
| # Sentiment Distibution | |
| st.title('Sentiment Overview') | |
| image = Image.open('sentiment.png') | |
| st.image(image, caption='Sentiment') | |
| # Show Insights | |
| with st.expander('Insights:'): | |
| st.caption('The data has 59% of neutral data, 28% positive data, and 12% negative data. This means that most of the financial news are neutrally relayed. Financial news are mostly factual or informative, lacking the strong emotional responses. Negative feedback are the minority, indicating that mostly financial news are accepted. The data will not be balanced because it is important for the analysis.') | |
| if __name__ == '__main__': | |
| run() |