Skip to content

Instantly share code, notes, and snippets.

@astrowonk
astrowonk / nchs_fips.csv
Created February 8, 2023 22:19
NCSH County Codes to FIPS
View nchs_fips.csv
nchs_code fipsco countyname statename
1001 1001 Autauga Alabama
1002 1003 Baldwin Alabama
1003 1005 Barbour Alabama
1004 1007 Bibb Alabama
1005 1009 Blount Alabama
1006 1011 Bullock Alabama
1007 1013 Butler Alabama
1008 1015 Calhoun Alabama
1009 1017 Chambers Alabama
@astrowonk
astrowonk / analyze_backblaze.py
Created November 29, 2020 19:03
Python script to parse and analyze Backblaze Hard Drive Reliability Data raw csv files
View analyze_backblaze.py
import dask.dataframe as dd
import numpy as np
import pandas as pd
import os
import argparse
from dask.diagnostics import ProgressBar
ProgressBar().register()
#requires dask, pandas, numpy.