readme_content = """
This application integrates FEMA disaster declaration data with U.S. Census population data to generate paired, timestamped CSV and visual outputs.
β Data Integration
- Reads FEMA Disaster Declarations (
FemaWebDisasterDeclarations.csv
) - Reads U.S. Census Data (
DECENNIALCD1182020.P1-2025-06-08T162550.csv
) - Combines them into an integrated dataset, aligned by state.
β Data Visualization
- Produces bar + line charts visualizing population and disaster counts.
- Saves visuals in
Sample Outputs/
, named with a unique timestamp.
β Data Export
- Saves integrated summary data to a CSV file, using the same timestamp as the image.
β Consistent Naming Convention
- Paired outputs are named like:
Population_and_Disaster_Declarations_YYYYMMDD_HHMMSS.png
Population_and_Disaster_Declarations_YYYYMMDD_HHMMSS.csv
βββ I2Py.py # Main script for data integration and visualization βββ DECENNIALCD1182020.P1-2025-06-08T162550.csv (My Sample data, you can get yours from https://data.census.gov/all?g=010XX00US$0400000 ) βββ FemaWebDisasterDeclarations.csv (My Sample data, you can get yours from https://www.fema.gov/openfema-data-page/fema-web-disaster-declarations-v1 ) βββ Sample Outputs/ β βββ Population_and_Disaster_Declarations_YYYYMMDD_HHMMSS.png β βββ Population_and_Disaster_Declarations_YYYYMMDD_HHMMSS.csv βββ README.md # This readme file
- Python 3.13 (or compatible Python 3.7+)
- Libraries:
- pandas
- matplotlib
Install dependencies via pip:
"""pip install pandas matplotlib"""
βοΈ How to Run
Run the script from the project directory:
bash
Copy
Edit
python I2Py.py
The script will:
Load the census and FEMA data
Integrate them by state
Print sample outputs to console
Generate and save:
A PNG image of the visualization
A CSV file summarizing the data
Both files will be saved in the Sample Outputs directory with a timestamp in the name.
π‘ Notes
The script uses a timestamp to avoid overwriting previous outputs.
If no data is present for some states, they will be excluded from the visualization and CSV export.
π Future Enhancements? (TBD)
Support for additional data sources (e.g., hazard severity, economic impact).
Enhanced interactive visualizations.
Automated updates for new disaster data.
Happy data exploration! π *Generated with the Assistance of ChatGPT, edited for consistency, content and cohesion.