First let's import our requirements
from datetime import datetime
import vortexasdk as v
Now let's look at the tonne miles of the New Wisdom vessel over 2018.
You'll need to enter your Vortexa API key when prompted.
new_wisdom = [g.id for g in v.Vessels().search("NEW WISDOM").to_list()]
df = v.TonneMilesBreakdown().search(
unit='b',
breakdown_frequency='month',
filter_vessels=new_wisdom,
filter_time_min=datetime(2018, 1, 1),
filter_time_max=datetime(2018, 12, 31)
).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