This repository contains a Flask API and Python scripts for processing, filtering, and visualizing a dataset of films related to disability representation. It supports map-based visualization using Plotly and provides a REST API to query location data based on disability categories.
Make sure you have the following installed:
- Python 3.7+
- Flask
- Flask-CORS
- pandas
- plotly
- numpy
git clone https://github.com/yourusername/disability-film-visualizer.git
cd disability-film-visualizerpip install flask flask-cors pandas plotly numpypython app.pyFilter films by disability category and type.
{
"category": "Cognitive Disability",
"disability": ["Autism Spectrum Disorder", "Down Syndrome"]
}You can also use the following to get all films without filtering:
{
"category": "All categories",
"disability": "All disabilities"
}curl -X POST http://localhost:5011/locations/ \
-H "Content-Type: application/json" \
-d '{"category": "All categories", "disability": "All disabilities"}'Generates a scatter map of shooting locations from the dataset.
python scatter.pymovie_scatter_map_shooting_locations_final.html
An interactive HTML map using Plotly with customized hover details and styling.
Creates a density-based heatmap of movie shooting locations, weighted by the year of release.
python new_heatmap.pymovie_heatmap.html
A dark-themed interactive heatmap visualizing geographic clustering of shooting locations.