Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -454,7 +454,7 @@ with news_analysis:
|
|
| 454 |
"""In this section, news events for each date in the data will be displayed along the features for that date"""
|
| 455 |
# Filter data for news events
|
| 456 |
news = events[events['Date'].between(start_date, end_date, inclusive='both')]
|
| 457 |
-
news = news[['Date', 'Raw_Headline', 'Bold_KW', '
|
| 458 |
|
| 459 |
# Extract only the date from the datetime
|
| 460 |
news['Date'] = news['Date'].dt.date
|
|
@@ -487,7 +487,7 @@ with news_analysis:
|
|
| 487 |
filtered_news = news[news['Date'] == date]
|
| 488 |
|
| 489 |
# Extract the details required
|
| 490 |
-
features = filtered_news['
|
| 491 |
headlines = filtered_news['Raw_Headline'].sum()
|
| 492 |
news_list = filtered_news['Raw_News'].sum()
|
| 493 |
sources = filtered_news['Sources'].sum()
|
|
|
|
| 454 |
"""In this section, news events for each date in the data will be displayed along the features for that date"""
|
| 455 |
# Filter data for news events
|
| 456 |
news = events[events['Date'].between(start_date, end_date, inclusive='both')]
|
| 457 |
+
news = news[['Date', 'Raw_Headline', 'Bold_KW', 'Feature', 'Raw_News', 'Sources', 'Urls']]
|
| 458 |
|
| 459 |
# Extract only the date from the datetime
|
| 460 |
news['Date'] = news['Date'].dt.date
|
|
|
|
| 487 |
filtered_news = news[news['Date'] == date]
|
| 488 |
|
| 489 |
# Extract the details required
|
| 490 |
+
features = filtered_news['Feature'].sum()
|
| 491 |
headlines = filtered_news['Raw_Headline'].sum()
|
| 492 |
news_list = filtered_news['Raw_News'].sum()
|
| 493 |
sources = filtered_news['Sources'].sum()
|