A Choropleth Visualization of my Travels Throughout the Years

Goal of the Notebook:

To gain experience with Plotly visualization software by generating an interactive Choropleth World Map. The colors of each country represents my overall rating of the trip or trips. Hovering over each country will show a variety of notes about each trip, including:

  • Country name
  • Rating
  • Cities visited
  • Year(s) visited
  • Comments about the trip
  • If I would return again

Required Libraries:

  • pandas
  • Plotly
  • Cufflinks

In [4]:

Loading Required Libraries and Reading the Data into Python

In [1]:
import pandas as pd
import plotly.plotly as py
import plotly.graph_objs as go 
import cufflinks as cf

from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot


country_df = pd.read_csv("Countries.csv", encoding='ISO-8859-1')