ual / ual_model_workspace

Repo for building a clean UrbanSim model for the Bay Area
BSD 3-Clause "New" or "Revised" License
2 stars 4 forks source link

Data processing #13

Closed Arezoo-bz closed 6 years ago

Arezoo-bz commented 6 years ago

Is there any way to update an orca table, not just a column? Some critical steps in model making process such as data preprocessing, data transformation and feature engineering would be hard (inefficient) if the only way to update an orca table is by updating a single column.

smmaurer commented 6 years ago

Yes! I think the way I've seen this done is to re-register the dataframe with Orca, which replaces whatever was previously registered under that name. Something like this:

df = orca.get_table('street_trees').to_frame()
# make changes to the dataframe
orca.add_table('street_trees', df)

Here's the full Orca API reference: http://udst.github.io/orca/core.html#api

Arezoo-bz commented 6 years ago

Thank you!