#!/usr/bin/env python # coding: utf-8 # ### Try out the VortexaSDK # First let's import our requirements # In[1]: 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. # In[2]: new_wisdom = [g.id for g in v.Vessels().search("NEW WISDOM").to_list()] # In[3]: 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() # In[ ]: 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