Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ venv.bak/

# mypy
.mypy_cache/

# System files
.DS_Store
Binary file added C4N-Scooter-Analysis_2019-10-18.pdf
Binary file not shown.
Binary file added most_popular_scooter.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions scooter-in-sq-mile/Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
jupyter = "*"
numpy = "*"
pandas = "*"
geopandas = "*"
matplotlib = "*"
requests = "*"
folium = "*"
dateime = "*"
pytz = "*"
sqlite3 = "*"

[requires]
python_version = "3.7"
630 changes: 630 additions & 0 deletions scooter-in-sq-mile/Pipfile.lock

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions scooter-in-sq-mile/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Scooter Report Card
The goal of this analysis was to find places where scooter densities might be out of compliance.

## File Structure
The [jupyter] notebook (.ipynb) is both a place to run / develop code and a report of the results.

`Pipfile` and `Pipfile.lock` control the pythn dependencies (via [pipenv]).
This is helps you ensure you have everything you need to run the code.

The other files are artifacts that derive from the notebook.

## Usage
The first time, you may need to install the python dependencies with:
```
pipenv install
```
This will only work if you have [pipenv] installed.
Or you can use your own python package manager to install the requirements in the `Pipfile`.

To start the notebook, run:
```
pipenv run jupyter notebook scooter-report-card.ipynb
```

Whenever you make changes to the notebook, please download a python (.py) version of it.
This is more useful in source control since it just show the code (without formatting or results).
If you don't want to click and drag to move it from your downloads, you can run:
```
pipenv run jupyter nbconvert --to py *.ipynb
```

[jupyter]: https://jupyter.org/index.html
[pipenv]: https://pipenv-fork.readthedocs.io/en/latest/
5 changes: 5 additions & 0 deletions scooter-in-sq-mile/council_districts.geojson

Large diffs are not rendered by default.

167 changes: 167 additions & 0 deletions scooter-in-sq-mile/davidson_county_census_tracts.geojson

Large diffs are not rendered by default.

2,206 changes: 2,206 additions & 0 deletions scooter-in-sq-mile/out_of_bounds.csv

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions scooter-in-sq-mile/out_of_bounds_birds.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
id,count,selected_datetime,polygon
2019-10-02 11:08:31,353,2019-10-02 11:08:31,"POLYGON ((-86.78604610178662 36.15170514829094, -86.76812189821338 36.15170514829094, -86.76812189821338 36.16617685170906, -86.78604610178662 36.16617685170906, -86.78604610178662 36.15170514829094))"
2019-10-02 11:08:31,343,2019-10-02 11:08:31,"POLYGON ((-86.78625612247659 36.15188614829093, -86.76833187752341 36.15188614829093, -86.76833187752341 36.16635785170907, -86.78625612247659 36.16635785170907, -86.78625612247659 36.15188614829093))"
Loading