IST 718 | LAB 3 (V4)

KENDRA OSBURN 1-25-20

In [1]:
import plotly
import plotly.graph_objects as go
In [8]:
import pandas as pd
counts = pd.read_csv('ncaa_state_counts.csv')
In [9]:
fig = go.Figure(data=go.Choropleth(
    locations=counts['abbrev'], 
    z = counts['num_teams'].astype(float), 
    locationmode = 'USA-states', 
    colorscale = 'Reds',
    colorbar_title = "Number of Teams",
))

fig.update_layout(
    title_text = 'Number of Teams in NCAA in D1 FBS',
    geo_scope='usa',
)

fig.show()
In [ ]: