Python Forum
List to table issue - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: List to table issue (/thread-35472.html)



List to table issue - robdineen - Nov-07-2021

I am having a problem converting a list to a table.

an example list i'm using is

[Asset({ 'class': 'us_equity',
'easy_to_borrow': False,
'exchange': 'OTC',
'fractionable': False,
'id': '62320577-5cc4-42cd-8a35-046aa514a6b6',
'marginable': False,
'name': 'PERNOD RICARD S A American Depositary Receipts - Sponsored',
'shortable': False,
'status': 'active',
'symbol': 'PRNDY',
'tradable': True}), Asset({ 'class': 'us_equity',
'easy_to_borrow': False,
'exchange': 'OTC',
'fractionable': False,
'id': 'bb43e272-6628-47e1-9a9f-f283736266ad',
'marginable': False,
'name': 'SIF HLDG N V ORDINARY SHARES (Netherlands)',
'shortable': False,
'status': 'active',
'symbol': 'SIFGF',
'tradable': True})]

so that will be 2 rows and 11 columns

What would be the best way to convert this to a table please


RE: List to table issue - Yoriz - Nov-07-2021

In this context what is a table?


RE: List to table issue - robdineen - Nov-07-2021

(Nov-07-2021, 09:25 PM)Yoriz Wrote: In this context what is a table?

as in a table that holds data, Columns and Rows. Or Pandas DataFrame.