Python analysis

Updated at:

Notebook supports writing and running Python code. You can use Python to implement your analysis logic, print results, and create charts and tables. This topic describes the Python analysis feature in analysis units.

Prerequisites

Use Python for analysis

  1. On the current page, click Python to add a Python analysis unit.

  2. Enter Python code in the input box.image

  3. Click Run. The system automatically starts the analysis.

  4. View the analysis results.

Displaying Python results

Log printing

You can use the appropriate Python syntax to print the required results or procedures.

Note

System logs are also generated at runtime. They are hidden by default. You can choose to display the system logs.

image

Creating tables

You can use the appropriate commands to create the required tables.

image

Creating charts

You can use the appropriate commands to create the required charts.

Note

You can click a chart to enlarge it.