Skip to content

🌎 A data visualization project showing the top countries and diplomatic relations mentioned by Donald Trump in his presidential term from 2017 to 2020.

License

Notifications You must be signed in to change notification settings

czs108/Top-Countries-Mentioned-by-Donald-Trump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Top Countries Mentioned by Donald Trump

Python License

About The Project

Cover

This data visualization project shows the top countries and diplomatic relations mentioned by Donald Trump in his presidential term from 2017 to 2020. The related data are from his Twitter, speech transcripts and the State of the Union Address.

All processes are finished by Python. There is no third-party data platform involved.

Getting Started

Prerequisites

  • Install Python 3.11.

  • Install all dependencies.

    pip install -r requirements.txt

Running

python main.py

Datasets

The project contains three .csv datasets, all coming from Kaggle. They are in the data/origin directory.

Visualization

The statistics are represented by three charts. All charts are in the data/visualize directory.

  • Stacked Bar Chart

    stacked-bar-chart

  • Flow Map

    flow-map

  • Sankey Diagram

    sankey-diagram

Documents

See docs/wiki.md for the details.

Dependencies

License

Distributed under the MIT License. See LICENSE for more information.

About

🌎 A data visualization project showing the top countries and diplomatic relations mentioned by Donald Trump in his presidential term from 2017 to 2020.

Topics

Resources

License

Stars

Watchers

Forks

Languages