Spaces:
Sleeping
Sleeping
Update pages/π_Stock_Analysis.py
Browse files
pages/π_Stock_Analysis.py
CHANGED
@@ -165,7 +165,7 @@ try:
|
|
165 |
st.subheader('Company Summary')
|
166 |
if 'longBusinessSummary' in stock_info:
|
167 |
LongBusinessSummary = stock_info['longBusinessSummary']
|
168 |
-
st.write(
|
169 |
else:
|
170 |
st.write("Company Summary information not available for this stock.")
|
171 |
|
@@ -212,14 +212,14 @@ try:
|
|
212 |
news_data_for_dataframe = []
|
213 |
for news_item in news_data:
|
214 |
news_title = news_item['title']
|
215 |
-
news_link = f"[Link]({news_item['link']})"
|
216 |
news_publisher = news_item['publisher']
|
217 |
news_provider_publish_time = pd.to_datetime(news_item['providerPublishTime'], unit='s')
|
218 |
news_type = news_item['type']
|
219 |
-
|
|
|
220 |
|
221 |
# Create a Pandas DataFrame
|
222 |
-
df = pd.DataFrame(news_data_for_dataframe, columns=["Title", "
|
223 |
|
224 |
# Display the DataFrame using Markdown without the index column
|
225 |
st.markdown(df.to_markdown(index=False), unsafe_allow_html=True)
|
|
|
165 |
st.subheader('Company Summary')
|
166 |
if 'longBusinessSummary' in stock_info:
|
167 |
LongBusinessSummary = stock_info['longBusinessSummary']
|
168 |
+
st.write({LongBusinessSummary})
|
169 |
else:
|
170 |
st.write("Company Summary information not available for this stock.")
|
171 |
|
|
|
212 |
news_data_for_dataframe = []
|
213 |
for news_item in news_data:
|
214 |
news_title = news_item['title']
|
|
|
215 |
news_publisher = news_item['publisher']
|
216 |
news_provider_publish_time = pd.to_datetime(news_item['providerPublishTime'], unit='s')
|
217 |
news_type = news_item['type']
|
218 |
+
news_link = f"[Link]({news_item['link']})"
|
219 |
+
news_data_for_dataframe.append([news_title, news_publisher, news_provider_publish_time, news_type, news_link])
|
220 |
|
221 |
# Create a Pandas DataFrame
|
222 |
+
df = pd.DataFrame(news_data_for_dataframe, columns=["Title", "Publisher", "Provider Publish Time", "Type", "Link"])
|
223 |
|
224 |
# Display the DataFrame using Markdown without the index column
|
225 |
st.markdown(df.to_markdown(index=False), unsafe_allow_html=True)
|