PatZhang0214 commited on
Commit
ea4039a
·
1 Parent(s): fea5f60

Added README file

Browse files
Files changed (1) hide show
  1. README.md +84 -0
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Yelp Business Economic Indicators Dataset
2
+
3
+ ## Dataset Overview
4
+
5
+ This dataset combines business information from the **Yelp Open Dataset** with economic indicators for each business's county. The goal is to provide a structured dataset that can be used for predictive modeling, such as estimating the likelihood of a business remaining open or closed based on local economic conditions.
6
+
7
+ Each row corresponds to a single business from the Yelp dataset and includes:
8
+
9
+ - Business attributes (rating, open/closed status, location)
10
+ - County-level economic indicators from multiple official sources
11
+
12
+ ---
13
+
14
+ ## Sources
15
+
16
+ 1. **Yelp Open Dataset**
17
+ Yelp. *Yelp Open Dataset*. [https://www.yelp.com/dataset](https://www.yelp.com/dataset)
18
+ Provides business-level information including ratings, open/closed status, latitude/longitude, and basic location metadata.
19
+
20
+ 2. **Economic Indicators**
21
+
22
+ - **BLS Quarterly Census of Employment and Wages (QCEW)**
23
+ U.S. Bureau of Labor Statistics. [https://www.bls.gov/cew/](https://www.bls.gov/cew/)
24
+ Contains average weekly wages and other employment data at the county level.
25
+
26
+ - **FRED – Federal Reserve Economic Data**
27
+ Federal Reserve Bank of St. Louis. [https://fred.stlouisfed.org/](https://fred.stlouisfed.org/)
28
+ Provides per capita personal income (PCPI) at the county level.
29
+
30
+ - **U.S. Census Bureau SAIPE / ACS**
31
+ U.S. Census Bureau. [https://www.census.gov/programs-surveys/saipe.html](https://www.census.gov/programs-surveys/saipe.html)
32
+ Contains poverty rates, median household income, and unemployment rates at the county level.
33
+
34
+ ---
35
+
36
+ ## Dataset Columns
37
+
38
+ | Column | Description |
39
+ |--------|-------------|
40
+ | `business_id` | Unique Yelp business identifier |
41
+ | `rating` | Yelp star rating (1–5) |
42
+ | `is_open` | 1 if business is currently open, 0 if closed |
43
+ | `latitude` | Latitude of business location |
44
+ | `longitude` | Longitude of business location |
45
+ | `fips` | County FIPS code |
46
+ | `pcpi` | Per capita personal income (USD) |
47
+ | `poverty_rate` | Poverty rate (%) |
48
+ | `median_household_income` | Median household income (USD) |
49
+ | `unemployment_rate` | County unemployment rate (%) |
50
+ | `avg_weekly_wages` | Average weekly wage (USD) |
51
+
52
+ ---
53
+
54
+ ## Usage Notes
55
+
56
+ - Some rows may contain missing values; consider dropping or imputing them depending on your analysis.
57
+ - County-level economic indicators are mapped based on business latitude and longitude.
58
+ - The dataset is designed for predictive modeling and exploratory data analysis.
59
+
60
+ ---
61
+
62
+ ## License
63
+
64
+ This dataset is provided under the **CC BY 4.0 License**. Users must provide appropriate credit when using this dataset in research or applications.
65
+
66
+ - Yelp data terms: [https://www.yelp.com/dataset/terms](https://www.yelp.com/dataset/terms)
67
+ - Economic indicator sources are public domain / government sources.
68
+
69
+ ---
70
+
71
+ ## Example Usage
72
+
73
+ ```python
74
+ import pandas as pd
75
+ from datasets import load_dataset
76
+
77
+ # Load Parquet locally
78
+ df = pd.read_parquet("yelp_fred_merged.parquet")
79
+ print(df.head())
80
+
81
+ # Or load from Hugging Face
82
+ from datasets import load_dataset
83
+ dataset = load_dataset("your-username/business-risk-prediction-dataset")
84
+ df = dataset['train'].to_pandas()