Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
List to table issue
#1
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
Reply
#2
In this context what is a table?
Reply
#3
(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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  List Comprehension Issue johnywhy 5 544 Jan-14-2024, 07:58 AM
Last Post: Pedroski55
  store all variable values into list and insert to sql_summary table mg24 3 1,164 Sep-28-2022, 09:13 AM
Last Post: Larz60+
  Python List Issue Aggie64 5 1,631 Jun-30-2022, 09:15 PM
Last Post: Aggie64
  Calculator code issue using list kirt6405 4 2,292 Jun-11-2021, 10:13 PM
Last Post: topfox
  Creating table in MySQL db with decimal number issue dangermaus33 7 4,931 Nov-20-2020, 10:40 PM
Last Post: dangermaus33
  Issue accessing data from Dictionary/List in the right format LuisSatch 2 2,224 Jul-25-2020, 06:12 AM
Last Post: LuisSatch
  For List Loop Issue Galdain 2 2,055 Dec-31-2019, 04:53 AM
Last Post: Galdain
  Trying to print an uneven list to a even table Mike2607 6 2,922 Nov-19-2019, 06:14 AM
Last Post: perfringo
  IndexError: List index out of range issue Adem 1 3,544 Nov-01-2019, 10:47 PM
Last Post: ichabod801
  List/String seperation issue YoungGrassHopper 13 5,520 Sep-20-2019, 11:57 AM
Last Post: perfringo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020