--- jupytext: text_representation: extension: .md format_name: myst format_version: 0.13 jupytext_version: 1.13.8 kernelspec: display_name: "Python 3" name: python3 --- (attribute-table)= # Attributes ```{code-cell} ipython3 :tags: ['remove-input', 'full-width'] import itables as itables from itables import init_notebook_mode import itables.options as opt import pandas as pd from IPython.core.display import HTML opt.maxBytes = 0 init_notebook_mode(all_interactive=True, connected=True) table = pd.read_csv('../attributes.csv').reset_index() core_type_dict = {'int' : 'integer','double':'float','string':'string','int_array':'list-of-integer-values','double_array':'list-of-double-values','xy':'table-xy-curve','xy_array':'list-of-tables','txy':'time-series','txy_stochastic':'stochastic-time-series'} for index, row in table.iterrows(): table.at[index, "Object type"] = f"""{row['Object type']}""" table.at[index, "Attribute name"] = f"""{row['Attribute name']}""" table.at[index, "Core data type"] = f"""{row['Core data type']}""" itables.show( table, dom='tlip', column_filters='header', columns=[ { 'name': '', 'className': 'dt-control', 'orderable': False, 'data': None, 'defaultContent': '', }, { 'name': 'Object type', 'className': 'dt-body-left' }, { 'name': 'Attribute name', 'className': 'dt-body-left' }, { 'name': 'Python data type', 'className': 'dt-body-left' }, { 'name': 'Core data type', 'className': 'dt-body-left' }, { 'name': 'unit', 'className': 'dt-body-left' }, { 'name': 'I/O', 'className': 'dt-body-left' }, { 'name': 'License', 'className': 'dt-body-left' }, { 'name': 'Version added', 'className': 'dt-body-left' }, { 'name': 'Description', 'visible': False } ] ) HTML('''''') ```