Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Tennessee Mobility Data
|
| 2 |
+
|
| 3 |
+
This dataset contains the data files for the Tennessee Mobility Analysis project.
|
| 4 |
+
|
| 5 |
+
## Contents
|
| 6 |
+
|
| 7 |
+
### Geographic Boundaries
|
| 8 |
+
- **County Boundaries**: Tennessee county shapefiles (FIPS code 47)
|
| 9 |
+
- **HSA Boundaries**: Hospital Service Area boundaries for Tennessee
|
| 10 |
+
- **HRR Boundaries**: Hospital Referral Region boundaries for Tennessee
|
| 11 |
+
|
| 12 |
+
### Mobility Data
|
| 13 |
+
- **tn_weekly_mobility_2019.parquet**: SafeGraph weekly mobility data for Tennessee (2019)
|
| 14 |
+
- POI visit patterns
|
| 15 |
+
- Visitor counts
|
| 16 |
+
- Geographic information
|
| 17 |
+
|
| 18 |
+
### Demographic Data
|
| 19 |
+
- **cbg_geographic_data.csv**: Census Block Group demographic and geographic data
|
| 20 |
+
- **location-of-auto-businesses.csv**: Auto business locations in Tennessee
|
| 21 |
+
|
| 22 |
+
### Commuting Data
|
| 23 |
+
- **location_zones.pkl**: Commuting zone definitions
|
| 24 |
+
- **trajectories_count.csv**: Traffic trajectory data
|
| 25 |
+
|
| 26 |
+
### Additional Files
|
| 27 |
+
- RDS files: R data structures for county information
|
| 28 |
+
- Shapefiles: Complete sets including .shp, .dbf, .prj, .shx files
|
| 29 |
+
|
| 30 |
+
## Usage
|
| 31 |
+
|
| 32 |
+
This dataset is automatically used by the [Tennessee Mobility Space](https://huggingface.co/spaces/LeonceNsh/tennessee-mobility).
|
| 33 |
+
|
| 34 |
+
To use it in your own project:
|
| 35 |
+
|
| 36 |
+
```python
|
| 37 |
+
from huggingface_hub import hf_hub_download
|
| 38 |
+
|
| 39 |
+
# Download a specific file
|
| 40 |
+
file_path = hf_hub_download(
|
| 41 |
+
repo_id="LeonceNsh/tennessee-mobility-data",
|
| 42 |
+
filename="data/mobility/tn_weekly_mobility_2019.parquet",
|
| 43 |
+
repo_type="dataset"
|
| 44 |
+
)
|
| 45 |
+
|
| 46 |
+
# Load the data
|
| 47 |
+
import pandas as pd
|
| 48 |
+
df = pd.read_parquet(file_path)
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
## License
|
| 52 |
+
|
| 53 |
+
The data is provided for educational and research purposes.
|
| 54 |
+
|
| 55 |
+
## Citation
|
| 56 |
+
|
| 57 |
+
If you use this data, please cite:
|
| 58 |
+
- SafeGraph for mobility data
|
| 59 |
+
- US Census Bureau for demographic and geographic data
|