This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Baylor | BYU | Cincinnati | Houston | Iowa State | Kansas | Kansas State | Oklahoma | Oklahoma State | TCU | Texas | Texas Tech | UCF | West Virginia | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Baylor | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | |
BYU | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | |
Cincinnati | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
Houston | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | |
Iowa State | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | |
Kansas | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | |
Kansas State | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | |
Oklahoma | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | |
Oklahoma State | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import io | |
import os | |
import os.path | |
import sys | |
import time | |
import dash | |
from dash.dependencies import Input, Output |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fig, ax = plt.subplots(figsize=(10, 8), tight_layout=True) | |
ax.set_title("SAM claims by county", fontsize=10) | |
dd.plot( | |
ax=ax, column="n", edgecolor="black", linewidth=.50, | |
cmap="rainbow", alpha=1, legend=True, | |
legend_kwds={"label": "number of claims", "orientation": "vertical", "shrink": .35}, | |
missing_kwds={"facecolor": "#FFFFFF", "edgecolor": "#000000", "linewidth": .25} | |
) | |
ax.axis("off") | |
plt.show() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a DataFrame that takes a dataset of 50k State - County - ZIp combinations | |
# to a table of ~3k reocrds keyed by County, with a list column of zipcodes. | |
ggck = dfz2c.groupby(["STATE", "FIPS", "County"], as_index=False)["ZIP"].apply(list) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sfThemeSelector = function() { | |
# -------------------------------------------------------------------------- | |
# Allow dynamic update of bootstrap theme. | |
# -------------------------------------------------------------------------- | |
div( | |
div( | |
selectInput( | |
"shinytheme-selector", "Select theme:", | |
c("default", shinythemes:::allThemes()), |
We can't make this file beautiful and searchable because it's too large.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN_YEARMONTH,BEGIN_DAY,BEGIN_TIME,END_YEARMONTH,END_DAY,END_TIME,EVENT_ID,STATE,STATE_FIPS,YEAR,MONTH_NAME,EVENT_TYPE,BEGIN_DATE_TIME,CZ_TIMEZONE,END_DATE_TIME,INJURIES_DIRECT,DEATHS_DIRECT,DAMAGE_PROPERTY,DAMAGE_CROPS,MAGNITUDE,MAGNITUDE_TYPE,BEGIN_LAT,BEGIN_LON | |
201612,27,500,201612,27,900,669700,MASSACHUSETTS,25,2016,December,Strong Wind,12/27/2016 5:00,EST-5,12/27/2016 9:00,0,0,0.10K,0.00K,41,EG,, | |
201612,27,200,201612,27,600,669703,MASSACHUSETTS,25,2016,December,Strong Wind,12/27/2016 2:00,EST-5,12/27/2016 6:00,0,0,0.10K,0.00K,42,MG,, | |
201612,27,200,201612,27,700,669707,MASSACHUSETTS,25,2016,December,Strong Wind,12/27/2016 2:00,EST-5,12/27/2016 7:00,0,0,0.10K,0.00K,49,MG,, | |
201612,27,300,201612,27,700,669708,MASSACHUSETTS,25,2016,December,Strong Wind,12/27/2016 3:00,EST-5,12/27/2016 7:00,0,0,0.10K,0.00K,41,EG,, | |
201612,18,1400,201612,18,1700,669667,RHODE ISLAND,44,2016,December,Strong Wind,12/18/2016 14:00,EST-5,12/18/2016 17:00,0,0,0.10K,0.00K,46,MG,, | |
201612,27,200,201612,27,600,669686,MASSACHUSETTS,25,20 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.