P2G7 / eda.py
grcvlrn's picture
Deploy
7786168 verified
Raw History Blame Contribute Delete
879 Bytes
import streamlit as st
import pandas as pd
from PIL import Image
@st.cache_data
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()