SPC Analytics ANALYZING ONLINE REVIEWS
Course data

The data.

Every file the exercises ask for lives in the book's companion repository, github.com/jeong-yeol/AOR_with_AI. It is public, and nothing here needs a download. Copy the line under a file, paste it into a Colab cell, and pandas reads it straight from the web.

Each line below is complete on its own. Put import pandas as pd in the cell above it and you are set.

Every file is synthetic. It was written for the book, and it is free to use, copy, and pass on for teaching and research.

The Maple City corpus

The city the book runs on. Most lessons start here.

maple_city_reviews.csv

11,010 reviews of 200 restaurants, 2019 to 2022.

Copy this line
pd.read_csv("https://raw.githubusercontent.com/jeong-yeol/AOR_with_AI/main/data/maple_city/maple_city_reviews.csv")

maple_city_businesses.csv

The 200 restaurants, with cuisine, neighborhood, and coordinates.

Copy this line
pd.read_csv("https://raw.githubusercontent.com/jeong-yeol/AOR_with_AI/main/data/maple_city/maple_city_businesses.csv")

Sample files

Small standalone sets. Each one is cut for a single chapter or exercise.

sample_hotel_reviews.csv

500 hotel reviews. This is the mini-project's data.

Copy this line
pd.read_csv("https://raw.githubusercontent.com/jeong-yeol/AOR_with_AI/main/data/samples/sample_hotel_reviews.csv")

sample_restaurant_reviews_1000.csv

1,000 restaurant reviews.

Copy this line
pd.read_csv("https://raw.githubusercontent.com/jeong-yeol/AOR_with_AI/main/data/samples/sample_restaurant_reviews_1000.csv")

sample_business_month_panel.csv

A compact panel example.

Copy this line
pd.read_csv("https://raw.githubusercontent.com/jeong-yeol/AOR_with_AI/main/data/samples/sample_business_month_panel.csv")

sample_churn_reviews.csv

Reviews labeled with churn.

Copy this line
pd.read_csv("https://raw.githubusercontent.com/jeong-yeol/AOR_with_AI/main/data/samples/sample_churn_reviews.csv")

sample_incident_reviews.csv

The changepoint and review bombing demo. Book chapter 8.

Copy this line
pd.read_csv("https://raw.githubusercontent.com/jeong-yeol/AOR_with_AI/main/data/samples/sample_incident_reviews.csv")

sample_spatial_reviews.csv

Reviews with coordinates.

Copy this line
pd.read_csv("https://raw.githubusercontent.com/jeong-yeol/AOR_with_AI/main/data/samples/sample_spatial_reviews.csv")

Derived tables

Analysis-ready tables, one per method chapter. Start from these when you do not want to build the features out of the raw reviews again.

features_review.csv

Per-review sentiment and aspect features. Book chapters 5 and 11.

Copy this line
pd.read_csv("https://raw.githubusercontent.com/jeong-yeol/AOR_with_AI/main/data/maple_city/derived/features_review.csv")

panel_recomputed.csv

The restaurant-month panel. Book chapter 6.

Copy this line
pd.read_csv("https://raw.githubusercontent.com/jeong-yeol/AOR_with_AI/main/data/maple_city/derived/panel_recomputed.csv")

ch7_panel.csv

The panel with the program indicator, for difference in differences. Book chapter 7.

Copy this line
pd.read_csv("https://raw.githubusercontent.com/jeong-yeol/AOR_with_AI/main/data/maple_city/derived/ch7_panel.csv")

ch8_monthly.csv

Monthly volume and sentiment series. Book chapter 8.

Copy this line
pd.read_csv("https://raw.githubusercontent.com/jeong-yeol/AOR_with_AI/main/data/maple_city/derived/ch8_monthly.csv")

ch9_business.csv

Per-restaurant table with coordinates and features. Book chapter 9.

Copy this line
pd.read_csv("https://raw.githubusercontent.com/jeong-yeol/AOR_with_AI/main/data/maple_city/derived/ch9_business.csv")

ch10_scores.csv

Construct scores for SEM. Book chapter 10.

Copy this line
pd.read_csv("https://raw.githubusercontent.com/jeong-yeol/AOR_with_AI/main/data/maple_city/derived/ch10_scores.csv")

ch10_scores_lda.csv

LDA based scores for the same constructs, for comparison. Book chapter 10.

Copy this line
pd.read_csv("https://raw.githubusercontent.com/jeong-yeol/AOR_with_AI/main/data/maple_city/derived/ch10_scores_lda.csv")

Notebooks and prompts

The same repository carries seven Colab notebooks, one per stage of the book, and the Gemini prompt library the lessons work from.