Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #15 from ubco-W2022T2-data301/Gavin-PM5
Browse files Browse the repository at this point in the history
PM5 Part 1
  • Loading branch information
theHDarian authored Apr 7, 2023
2 parents afb9e8c + 4c8d25b commit e6ea776
Show file tree
Hide file tree
Showing 10 changed files with 4,335 additions and 460 deletions.
18 changes: 18 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# Tableau dashboards shouldn't be treated as text or soruce code, don't diff them and treat them as binary
.twb binary linguist-generated
# Photos are truly binary and should not be modified.
*.png binary
*.jpg binary
#Treat csv geojson, and other data files files as files that don't need EOF lines
*.csv binary
*.geojson binary
*.cpg binary
*.dbf binary
*.prj binary
*.shp binary
*.shp.ea.iso.xml binary
*.shp.iso.xml binary
*.shx binary
*.zip binary
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Important

To run this code locally, make sure at a minium all the packages listed in [requirements.txt](requirements.txt) are installed using your package manager of choice (`pip`, `conda`, `poetry`, etc), on at least python 3.9 or higher. However do note that installing [geoplot](https://residentmario.github.io/geoplot) may require installing system dependencies, such as `libgeos-dev` on linux, and may require [pillow](https://pillow.readthedocs.io/en/stable/) to be installed separately. Furthermore, [pyarrow](https://arrow.apache.org/docs/python/index.html) and [pyogrio](https://pyogrio.readthedocs.io/en/latest/index.html) can optionally be installed to speedup I/O operations, especially reads of unprocessed data, and [numba](http://numba.pydata.org/) can also optionally be installed to speed up certain operations that can be vectorized.
To run this code locally, make sure at a minium all the packages listed in [requirements.txt](requirements.txt) are installed using your package manager of choice (`pip`, `conda`, `poetry`, etc), on at least python 3.9 or higher. However do note that installing [geoplot](https://residentmario.github.io/geoplot) may require installing system dependencies, such as `libgeos-dev` on linux, and may require [pillow](https://pillow.readthedocs.io/en/stable/) to be installed separately. Furthermore, [pyarrow](https://arrow.apache.org/docs/python/index.html) and [pyogrio](https://pyogrio.readthedocs.io/en/latest/index.html) can optionally be installed to speedup I/O operations, especially reads of unprocessed data, and [numba](http://numba.pydata.org/) can also optionally be installed to speed up certain operations that can be vectorized. [numexpr](https://github.com/pydata/numexpr) and [bottleneck](https://github.com/pydata/bottleneck) can also be installed if wished.

## Topics and Interests

Expand Down
909 changes: 467 additions & 442 deletions analysis/analysis1.ipynb

Large diffs are not rendered by default.

19 changes: 6 additions & 13 deletions analysis/analysis2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,15 @@
"metadata": {},
"outputs": [],
"source": [
"import sys \n",
"import pandas as pd\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import seaborn as sns\n",
"import geopandas as gpd\n",
"import re\n",
"import geoplot as gplt\n",
"import geoplot.crs as gcrs\n",
"from typing import TYPE_CHECKING\n",
"if TYPE_CHECKING:\n",
" from .code import project_functions2 as pf\n",
"else:\n",
" __import__(\"sys\").path.append(\"./code\")\n",
" import project_functions2 as pf\n",
" "
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd\n",
"import seaborn as sns\n",
"\n",
"import scripts.project_functions2 as pf"
]
},
{
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import geopandas as gpd
import geoplot as gplt
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns

# aqi = pd.concat(pd.read_csv(f"../data/raw/annual_aqi_by_cbsa_{year}.csv") for year in range(2011, 2023))

Expand Down
3,839 changes: 3,839 additions & 0 deletions dashboard/Dashboard.twb

Large diffs are not rendered by default.

Binary file added images/places-button-white-240x200-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e6ea776

Please sign in to comment.