Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
427bd1c
Update README.md
hazelvaq Sep 13, 2023
3a08bf0
added data
mariamkg00 Sep 13, 2023
4c7a3b4
Merge branch 'main' of https://github.com/annieradams/squirrel
mariamkg00 Sep 13, 2023
23b2678
made files and folders
annieradams Sep 13, 2023
896b835
Update README.md
hazelvaq Sep 13, 2023
9353fc3
made plots
annieradams Sep 13, 2023
62dc9f9
added plot
annieradams Sep 13, 2023
8fcca1a
added data
annieradams Sep 13, 2023
4e131ec
test
annieradams Sep 13, 2023
5ab402e
added folium graph
annieradams Sep 13, 2023
626e983
testing vanessa's git
Vanessa-Salgado Sep 13, 2023
a992d3f
removing test.txt
Vanessa-Salgado Sep 13, 2023
d317447
added squirrel legend
annieradams Sep 14, 2023
edb25ce
first part of tutorial
Vanessa-Salgado Sep 14, 2023
026b6e4
added earthquake data
mariamkg00 Sep 14, 2023
a5e878c
added my questions
mariamkg00 Sep 14, 2023
69b528d
added hyperlinks
hazelvaq Sep 14, 2023
2f8f85c
editted notebook
Vanessa-Salgado Sep 14, 2023
f127c6a
coordinates for UCSB
mariamkg00 Sep 14, 2023
c430006
potential use in environmental data science
hazelvaq Sep 14, 2023
fe1e3bb
adding getting started section
hazelvaq Sep 14, 2023
6e8e58d
getting started
hazelvaq Sep 14, 2023
2f00a47
change font color to black
hazelvaq Sep 14, 2023
d2a6e68
added earthquake notebook
annieradams Sep 14, 2023
60f1929
added notebook
annieradams Sep 14, 2023
4d3ba6d
added code
annieradams Sep 14, 2023
95b4ab8
added folium library
Vanessa-Salgado Sep 14, 2023
8329e9d
Added script commentary
mariamkg00 Sep 14, 2023
9db655d
Merge branch 'main' of https://github.com/annieradams/squirrel
mariamkg00 Sep 14, 2023
5936272
Update README.md
hazelvaq Sep 14, 2023
2132228
Update README.md
hazelvaq Sep 14, 2023
b34c167
Update README.md
hazelvaq Sep 14, 2023
846540a
Update README.md
hazelvaq Sep 14, 2023
d8b9308
Update README.md
hazelvaq Sep 14, 2023
bc500c9
Update README.md
hazelvaq Sep 14, 2023
3ed4da4
Update README.md
hazelvaq Sep 14, 2023
952383c
Update README.md
hazelvaq Sep 14, 2023
efe8ac0
Update README.md
hazelvaq Sep 14, 2023
219824e
Update README.md
hazelvaq Sep 14, 2023
ce1f3f7
Update README.md
hazelvaq Sep 14, 2023
1f69feb
Update README.md
hazelvaq Sep 14, 2023
df574ea
Update README.md
hazelvaq Sep 14, 2023
0d0cbbe
Update README.md
hazelvaq Sep 14, 2023
395b0e8
Update README.md
hazelvaq Sep 14, 2023
f891220
edited readme
mariamkg00 Sep 14, 2023
885ad8d
Update README.md
mariamkg00 Sep 14, 2023
335d46d
sb map
Vanessa-Salgado Sep 14, 2023
e09f9f1
sb map
Vanessa-Salgado Sep 14, 2023
42acc5d
Update README.md
mariamkg00 Sep 14, 2023
ba629e8
Update README.md
mariamkg00 Sep 14, 2023
2881388
added plots for earthquakes
annieradams Sep 14, 2023
d82b701
updates
annieradams Sep 14, 2023
b9879e0
changed file name
annieradams Sep 14, 2023
9e54e5c
Added beach spot
mariamkg00 Sep 14, 2023
6f8fb6d
Merge branch 'main' of https://github.com/annieradams/squirrel
mariamkg00 Sep 14, 2023
251d23f
added markercluster map
hazelvaq Sep 14, 2023
6bd5108
added comments
annieradams Sep 14, 2023
19c33f3
added comments
annieradams Sep 14, 2023
3a30380
added comments to cluster code
hazelvaq Sep 15, 2023
8ca94b8
added earthquake code into main notebook
hazelvaq Sep 15, 2023
fa7cf60
split up notebook cells
mariamkg00 Sep 15, 2023
f4afde8
EDA
Vanessa-Salgado Sep 15, 2023
f9d31a3
EDA
Vanessa-Salgado Sep 15, 2023
8028feb
added folium library
Vanessa-Salgado Sep 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 16 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,28 @@
# squirrel
An basic repository with an environment and .gitignore
# Folium Tutorial <img src="https://python-visualization.github.io/folium/latest/_images/folium_logo.png" alt="drawing" width="40"/>

## Central Park Squirrel Census
# EDS 217 Group Project

![squirrel!](https://imgs.6sqft.com/wp-content/uploads/2018/10/03124715/squirrel-Central-Park.jpg)
#### Contributors: [Annie Adams](https://github.com/annieradams), [Mariam Garcia](https://github.com/mariamkg00), [Vanessa Salgado](https://github.com/Vanessa-Salgado), [Hazel Vaquero](https://github.com/hazelvaq)

https://www.thesquirrelcensus.com
## Folium
For this project we explored Folium, a Python library that that combines data wrangling potential in Python and the mapping strengths of the Leaflet.js library. We used Folium to explore data vizualizations using Jupyter Notebooks. Folium was developed in order to enable easy data visualization with geospatial analysis. It helps make interactive geographic visualizations that can be shared as a website. Folium helps transform data in pandas into interactive Leaflet maps.

### Explore the data
This is a description and tutorial of the package Folium created as a group project for EDS 217.
### Central Park Squirrel Census
https://data.cityofnewyork.us/Environment/2018-Central-Park-Squirrel-Census-Squirrel-Data/vfnx-vebw

The survey data was originally collected and stored in to files available at this link:

[https://www.thesquirrelcensus.com/data](https://www.thesquirrelcensus.com/data)
### California Earthquakes 1769 - 2015 with magnitudes greater than 5

For this exercise, we will use an integrated `.csv` file that combines data and is a little more structured than the raw `.csv`. This file was downloaded from [kaggle.com](http://www.kaggle.com) at this link:
https://maps-cnra-cadoc.opendata.arcgis.com/datasets/cadoc::cgs-map-sheet-48-historic-earthquakes-1769-to-2015-california-magnitude-5-0-plus/explore?location=37.380031%2C-119.985577%2C7.27

[2018 survey data on Kaggle](https://www.kaggle.com/datasets/dominoweir/nyc-2018-squirrel-census)
This dataset was used to make a heatmap, and we narrowed the focus point to only be in California, as the data panned out to neighboring states. Each earthquake has their own unique 'Object ID', along with the coordinates in which the epicenter was found, and the magnitude.

The downloaded file is already added to the class repository in the `data/` folder as as `2018_Central_Park_Squirrel_Census_-_Squirrel_Data.csv`. You can copy this folder to your new repository on your local machine
## Citations
“CGS Map Sheet 48: Historic Earthquakes, 1769 to 2015 - California (Magnitude 5.0-Plus).” California Open Data, 11 Sept. 2023, data.ca.gov/dataset/cgs-map-sheet-48-historic-earthquakes-1769-to-2015-california-magnitude-5-0-plus.

### Setting up for some squirrely analyses:

1. Create a short name for your group and a new repository for this exercise. Clone the repo to your local machines.

1. Load the combined datafile (either using the url or from your repository's `../data` directory) using `pd.read_csv()`.

1. Use standard `df.info()`, `df.head()`, `df.describe()` to explore the data.

1. Read over the user guide here to understand what the various columns contain.

[Survey Data User Guide](https://www.dropbox.com/s/cs293zzz1li79nn/user-guide_data-sets_nyc-open-data-week-multi-park-squirrel-count.pdf?dl=0)

Additional information on the survey and stories are available here:

[https://www.thesquirrelcensus.com/data](https://www.thesquirrelcensus.com/data)

1. Work together to make a new `.ipynb` in your repo that contains an analysis and simple visualization of the data!
“Folium.” Folium - Folium 0.1.Dev1+g57e8eae Documentation, python-visualization.github.io/folium/latest/index.html.

Weir, Domino. “NYC Squirrel Census 2018.” Kaggle, 29 Aug. 2022, www.kaggle.com/datasets/dominoweir/nyc-2018-squirrel-census. Accessed 14 Sept. 2023.

Wells, Ryan. “Plotting Geographical Heatmaps with Python Folium.” Wellsr.Com, 19 Aug. 2022, wellsr.com/python/plotting-geographical-heatmaps-with-python-folium-module/.
81,864 changes: 81,864 additions & 0 deletions code/clusters.ipynb

Large diffs are not rendered by default.

5,425 changes: 5,425 additions & 0 deletions code/earthquake_exploratory.ipynb

Large diffs are not rendered by default.

145,281 changes: 145,281 additions & 0 deletions code/follium_exploratory.ipynb

Large diffs are not rendered by default.

112 changes: 112 additions & 0 deletions code/squirrel_explore.ipynb

Large diffs are not rendered by default.

3,024 changes: 3,024 additions & 0 deletions data/2018_Central_Park_Squirrel_Census_-_Squirrel_Data.csv

Large diffs are not rendered by default.

3,024 changes: 3,024 additions & 0 deletions data/2018_squirrel_data.csv

Large diffs are not rendered by default.

784 changes: 784 additions & 0 deletions data/Cali_earthquakes.csv

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ dependencies:
- plotly
- plotnine
- bokeh
- ipykernel
- ipykernel
- folium
1 change: 1 addition & 0 deletions geoplotlib
Submodule geoplotlib added at 83c39d