This content is also available at learn.palantir.com ↗ and is presented here for accessibility purposes.
📖 Task Introduction
Code Workbook allows you to write code in various languages to analyze your data. In this exercise, we'll write some basic PySpark code, which is a Spark library written in Python.
🔨 Task Instructions
Click the Projects & files Folder icon near the top of the Workspace Sidebar.
Navigate to /Foundry Training and Resources/Example Data/Aviation Ontology/.
Right-click on the flights dataset.
From the dropdown menu that appears, choose Actions.
Select Analyze in Code Workbook.
ℹ️ Depending on the configuration of your environment, you may be prompted to choose a folder to save your new file. If so, choose the sandbox folder you created in Introduction to Palantir Foundry, or create it now via these instructions if you haven't already.
ℹ️ Depending on the configuration of your environment, you may be prompted with a message about project scope as below. If you do, click the blue Import button. This configuration establishes a default setting to prevent unintentional cross-pollination of resources, such as datasets and code workbooks, across different projects.