First let's import our requirements
from datetime import datetime
import vortexasdk as v
Now let's load a dataframe of a vessel breakdown by geography and status between 1st of January 2024 - 29th of Fabuary 2024 with a "country" layer breakdown.
You'll need to enter your Vortexa API key when prompted.
df = v.VoyagesGeographyBreakdown(
geography_property="cargo-origin",
second_breakdown="status",
).search(
time_min=datetime(2024, 1, 1),
time_max=datetime(2024, 2, 29, 23, 59),
breakdown_geography="country",
origins=["c4b606ff15bd9b86c37e4fbccf8b5f7e57890c6f675e7a250538e297b4c1303e"],
).to_df()
df.head()
That's it! You've successfully loaded data using the Vortexa SDK. Check out https://vortechsa.github.io/python-sdk/ for more examples