Main
View or edit on GitHub
This page is synchronized from trase/models/bolivia/soy/main.ipynb. Last modified on 2025-12-14 23:19 CET by Trase Admin.
Please view or edit the original file there; changes should be reflected here after a midnight build (CET time),
or manually triggering it with a GitHub action (link).
%configure_logging
from trase.tools.sps import SupplyChain
for year in [2018, 2019, 2020, 2021]:
supplychain = SupplyChain("bolivia/soy", year)
supplychain.preparation()
supplychain.load()
supplychain.run()
supplychain.export_results()
# supplychain.upload_results()
supplychain.flow_report_by_attribute("vol_tn", ["branch"])
a = supplychain.get("municipalities")
a["municipality"].str.contains("VELASCO")
df = supplychain.get("production")
df[df["municipality"].str.contains("VELASCO")]