Loading
/custom-emojis/emojis/contour-map.png
Templates
📚
Articles & Resources
📖
Guides & Support
🌵
CalcTree
🔢

Python Tables

If a Python parameter is an array of arrays, when you drag and drop it on the page, it will be realised as a table. This table is dynamically updated based on data produced by the Python source.


Example


The following Python variable:
array of arrays in Python

will become a table Python parameter on CalcTree:
Tabular_item 
1
2
10
20


Formatting table cells

In order to format your table data, you can leverage Python capabilities for producing formatted strings, for example:
formatting tabular data in Python

formatted_Tabular_item 
1.00
2.00
10.00
20.00


Table with different types of cells


You can create arrays with various types of elements in Python. That will create tables with different types of cells on CalcTree, for example:
arrays of arrays with various data types

Various_types 
1
small amount
10 kN
large quantity

Click on the 'Code source' on the right menu to see the table used in this guide for a more detailed examination.


Still have more questions?

Join the conversation on Slack below!