Skip to content

Analyzing FEMA's National Flood Insurance Program (NFIP) Data With DuckDB.

License

Notifications You must be signed in to change notification settings

mebauer/duckdb-fema-nfip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Analyzing FEMA's National Flood Insurance Program (NFIP) Data With DuckDB

Author: Mark Bauer

hurricane-ida
NFIP claims ($) related to Hurricane Ida by county, normalized by county area. Yellow indicates higher claims, purple indicates lower.

1. Introduction

I've been enjoying DuckDB for the past few weeks, particularly how smooth the Python API feels. With its impressive speed and friendly SQL interface, analyzing moderately large datasets within a Jupyter Notebook is almost effortless. This project aims to demonstrate just how excited I am to use and to learn more about this incredible tool.

Given the substantial size of this dataset, it provided an opportunity to explore and utilize DuckDB, a high-performance analytical database. While this guide offers valuable insights, users are encouraged to supplement their understanding by referring to the official documentation provided on DuckDB's website.

2. Notebook

Explore how DuckDB can query 2.6M rows and 70 columns within a Jupyter Notebook in seconds: analysis.ipynb.

3. Data

OpenFEMA Dataset: FIMA NFIP Redacted Claims - v2:
The analysis presented here is solely focused on the FIMA NFIP Redacted Claims dataset, which fortunately is available in Parquet format. With more than 2M rows, this dataset provides detailed information about the National Flood Insurance Program (NFIP) claims transations and is redated to protect policy holders.

Useful Links:

Dataset Citation:
OpenFEMA Dataset: FIMA NFIP Redacted Claims - v2. Retrieved from https://www.fema.gov/openfema-data-page/fima-nfip-redacted-claims-v2 on May 9, 2024, 16:02 EST. This product uses the FEMA OpenFEMA API, but is not endorsed by FEMA. The Federal Government or FEMA cannot vouch for the data or analyses derived from these data after the data have been retrieved from the Agency's website(s).

OpenFEMA Terms and Conditions:
Please refer to the OpenFEMA Terms and Conditions for further information regarding the usage and access of OpenFEMA datasets.

4. Additional Resources

5. Say Hello!

Feel free to reach out.

Releases

No releases published

Packages

No packages published