KENDRA OSBURN 1-25-20
import plotly
import plotly.graph_objects as go
import pandas as pd
counts = pd.read_csv('ncaa_state_counts.csv')
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()