Create univariate analysis card with plugin

DavidB42
DavidB42 Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Registered Posts: 1 ✭✭✭
edited July 16 in Using Dataiku

Hi,

I am using a plugin to read an input dataset, filter rows based on a column, and generate an output dataset from the filtered values. I would also like the plugin to create a univariate analysis card, for all columns in the output dataset.

I found the following on Github https://github.com/dataiku/dataiku-api-client-python/pull/48

worksheet_settings.add_card({"type": 'correlation_matrix', "columns": [{"name": "Age", "type": "CONTINUOUS"} , {"name": "Fare", "type": "CONTINUOUS"} ], "heatmapParams": {}})

What is the corresponding command to create a univariate analysis? And without having to list all columns?

Thanks!

David


Operating system used: Windows 10

Tagged:

Answers

  • Emma
    Emma Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 52 Dataiker
    edited July 17

    Hey @DavidB42
    ,

    The simplest way to find the necessary parameters is to use an existing card from your statistics worksheet and copy the structure that you see, using:

    worksheet_settings.add_card({
    'type': 'univariate_header',
    'xColumns': [{'name': 'COL_NAME', 'type': 'CATEGORICAL'}]})

    In this case, because you asked about univariate cards the command is:

    yourcard.get_raw()

    Remember to save and run the worksheet after creation to ensure that it displays.

    Hope that helps!

    Emma

Setup Info
    Tags
      Help me…