Load the Data

The census dataset is stored in the la_block_groups table of the database. You can load it into Python using a DBSpatialDataset to create an instance of SpatialDataFrame.

import oml
from oraclesai import SpatialDataFrame, DBSpatialDataset
 
block_groups = SpatialDataFrame.create(DBSpatialDataset(table='la_block_groups', schema='oml_user'))

The dataset contains information about different regions in the city of Los Angeles. Features such as median_income and house_value provide information about each region's income. Other features provide demographic information about gender, race, and age.