Tiny Flows
View or edit on GitHub
This page is synchronized from trase/models/brazil/beef/Tiny Flows.ipynb. Last modified on 2026-03-21 22:30 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).
from trase.tools import sps
df = sps.get_pandas_df_once(
"brazil/beef/sei_pcs/v2.2.0/SEIPCS_BRAZIL_BEEF_2019.csv", dtype=str
).astype({"VOLUME_RAW": float})
df = df[df["VOLUME_RAW"] < 250]
print("Number of <250 flows:", len(df))
len(
df.drop(
columns=[
"VOLUME_RAW",
"VOLUME_PRODUCT",
"FOB",
"MUNICIPALITY",
"STATE_OF_PRODUCTION",
]
).drop_duplicates()
)
df[["MUNICIPALITY", "STATE_OF_PRODUCTION"]].drop_duplicates()