domino logo
Latest (5.8)
  • Overview
  • Domino Cloud
  • Domino Nexus
  • Code Assist
  • Get started
  • Work with data
  • Develop models
  • Scale out distributed computing
  • Register and govern models
  • Deploy models
  • Monitor models
  • Publish Apps
  • Projects
  • Collaborate
  • Workspaces
  • Jobs
  • Environments
  • Executions
  • Launchers
  • Environment variables
  • Secure credential store
  • Organizations
  • Domino API
  • Domino CLI
  • Troubleshooting
  • Get help
  • Additional resources
  • Send feedback
domino logo
About Domino
Domino Data LabKnowledge BaseData Science BlogTraining
>
User guide
>
Work with data
>
Code Assist data preparation
>
Chaining with Code Assist

Chaining with Code Assist

The Transformations widget can be used to chain together multiple operations.

For this tutorial we’ll use the Titanic data.

  1. Hover over the assistant icon icon. Select the Transformations item from the popup menu. Select the Groupby and aggregate option.

  2. Specify Pclass and Embarked as the columns to group by. Choose Fare as the column to aggregate. Select mean as the aggregator function. Press the Add Transformation button.

    jupyter transformation chaining aggregate
  3. The preview is updated with the summary data.

  4. Next we’re going to filter the rows. Specify Embarked as the columns to filter by. Choose != as the operator and Q as the value. Turn the as string toggle on. Press the Add Transformation button.

    jupyter transformation chaining filter
  5. The preview is updated with the filtered data. Finally select the Drop columns option and specify Embarked as the column to drop. Press the Add Transformation button.

  6. The preview is updated. Press the Insert Code button.

  7. The required code is inserted into the notebook and immediately executed.

    jupyter transformation chaining insert code
Domino Data Lab
Knowledge Base
Data Science Blog
Training
Copyright © 2023 Domino Data Lab. All rights reserved.