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

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:Python 100.0%