Course Content
Identifying Fake News
Swipe to show menu
True News and Fake News
We will now start working on our project. The final goal of our analysis is to predict whether the given news is fake or true. You will handle text data and build ML (Machine Learning) algorithms.
Task
Swipe to show code editor
- Read the CSV files containing fake news and true news into their respective DataFrames.
- Set the values of the target column
'class'
to0
for thefake_news
DataFrame and to1
for thetrue_news
DataFrame. - Use the appropriate function to merge these two DataFrames.
- Display the first 5 rows of the resulting DataFrame using the appropriate method.
Mark tasks as Completed
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 2
AVAILABLE TO ULTIMATE ONLY