Looking for all possible column headers for a script for Shipping Assets

I am trying to find all the possible column headers for a script but there doesn't seem to be any help finding what are the possible filters.

Using Codebook and taking one of their examples on shipping and want to return a different set of columns on the dataframe but within codebook examples-> 06 - > Shipping, you find the two examples and within there there is a line of code for vesseks arrving at port, I want to return that dataframe but with my own choice of columns, problem is there is not a list of what column headers to pick from.


image


The default in this is this "select = "RIC, AssetName, Latitude, Longitude, OriginPort, DestinationPort, LocationDestination, LocationETA, LocationDraft, HullType"


image


The TR. Syntax doesn’t work for this code. For example, I do not care about HullType nor the Latitude or Longitude. I would be interested however in other details such as vessel sub type. Please find out what other attributes I can return.


We have available tools - attached PDF but none is working

Eikon_API_Vessel_Info.pdf

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @jeremiemae.celajes

    Thank you for reaching out to us.

    The TR fields don't work with the discovery.search endpoint.

    You can list all fields in the search.Views.VESSEL_PHYSICAL_ASSETS by using the following code.

    response = search.metadata.Definition(
        view = search.Views.VESSEL_PHYSICAL_ASSETS  
    ).get_data()


    response.data.df

    1717565066274.png

    The sample code is also available on GitHub.

    For more information regarding this search API, please refer to the following article.

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.