{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Nat Scott" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Research question/interests\n", "\n", "**Is there a correlation between political alignment & living in neighbourhoods with large quantities of LGBT people?** The obvious answer to this question is \"yes, they are going to mostly be democrats\" but anyone who's ever been around queer people will know that this question is quite a bit more nuanced than that, and this nuance is what we hope to capture in investigating this question.\n", "\n", "- The gaybourhoods data set does not include data on residents political alignments, however, there is a wealth of electoral data available freely online that we intend on incorporating into this project. The primary difficulty then will be developing a geographic \"compatibility layer\" between the data sets so that the data can be understood in the same context. To build this, we intend on working with the OpenStreetMap API to create an additional column representing observations position space in a more neutral way, such as their coordinates.\n", "- Alternatively, we've also considered working with an additional data set that links US zip codes to their longitude and lattitude positions. As such, incorporating this data would be as easy as merging the two tables.\n", "\n", "\n", "**Is there a correlation between geographical stratums & being LGBT?** This question is more abstract, and will serve as a preliminary exploration of the data in hopes of establishing two key details along the way that will shape the rest of the project: how do we quantify queerness, and how do we best represent it visually?\n", "\n", "- Once again, representing this data visually will require determining the coordinates associated with each observation.\n", "- The gaybourhoods data set defines a \"gaybourhood index\" which effectively measures how friendly a given neighbourhood is to queer people. Since this index is entirely subjective, we will need to closely evaluate it's usefulness for our project and investigate different ways to quantify \"queer-friendliness\"\n", "- In addition to the last point, since, of course, no matter what choice of observations we make, the measurement will still be subjective, answering this research question will come more so in the form of comparing and contrasting different measurements to see what they tell us.\n", "- Obviously, visualizing this among many aspects of the other research questions would involve projecting the data onto a map of the United States, so visualizing this research question would motivate many of the visualizations for other components of this project" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
GEOID10Tax_MjointMjoint_MFMjoint_SSMjoint_FFMjoint_MMTaxRate_SSTaxRate_FFTaxRate_MMCns_TotHH...FF_CnsFF_IndexMM_TaxMM_CnsMM_IndexSS_IndexSS_Index_WeightParade_WeightBars_WeightTOTINDEX
0900692120168943161370203.30188728.773585174.52830212551...1.8470996.72441529.58372118.70453348.28825455.01266939.4299951017.64705967.077054
194114508040361044170874205.51181133.464567172.04724416456...4.1615799.83404829.16316519.41530448.57846958.41251741.866815020.00000061.866815
2100115790516662497527107.77202116.75302291.01899829762...1.5310294.37077915.42833210.93208126.36041330.73119222.026394105.88235337.908747
310014351032292817420780.05698021.08262158.97435918786...2.4822936.0559399.9965515.94331815.93986921.99580815.7653611011.76470637.530067
494103266024172433420991.35338312.78195578.57142912728...0.8374313.00405813.3183864.96177918.28016521.28422415.2553371010.58823535.843573
\n", "

5 rows × 29 columns

\n", "
" ], "text/plain": [ " GEOID10 Tax_Mjoint Mjoint_MF Mjoint_SS Mjoint_FF Mjoint_MM \\\n", "0 90069 2120 1689 431 61 370 \n", "1 94114 5080 4036 1044 170 874 \n", "2 10011 5790 5166 624 97 527 \n", "3 10014 3510 3229 281 74 207 \n", "4 94103 2660 2417 243 34 209 \n", "\n", " TaxRate_SS TaxRate_FF TaxRate_MM Cns_TotHH ... FF_Cns FF_Index \\\n", "0 203.301887 28.773585 174.528302 12551 ... 1.847099 6.724415 \n", "1 205.511811 33.464567 172.047244 16456 ... 4.161579 9.834048 \n", "2 107.772021 16.753022 91.018998 29762 ... 1.531029 4.370779 \n", "3 80.056980 21.082621 58.974359 18786 ... 2.482293 6.055939 \n", "4 91.353383 12.781955 78.571429 12728 ... 0.837431 3.004058 \n", "\n", " MM_Tax MM_Cns MM_Index SS_Index SS_Index_Weight Parade_Weight \\\n", "0 29.583721 18.704533 48.288254 55.012669 39.429995 10 \n", "1 29.163165 19.415304 48.578469 58.412517 41.866815 0 \n", "2 15.428332 10.932081 26.360413 30.731192 22.026394 10 \n", "3 9.996551 5.943318 15.939869 21.995808 15.765361 10 \n", "4 13.318386 4.961779 18.280165 21.284224 15.255337 10 \n", "\n", " Bars_Weight TOTINDEX \n", "0 17.647059 67.077054 \n", "1 20.000000 61.866815 \n", "2 5.882353 37.908747 \n", "3 11.764706 37.530067 \n", "4 10.588235 35.843573 \n", "\n", "[5 rows x 29 columns]" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import pandas as pd\n", "\n", "gaybourhoods = pd.read_csv(\"../data/raw/gaybourhoods.csv\")\n", "gaybourhoods.head(5)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.9" } }, "nbformat": 4, "nbformat_minor": 4 }