Python Forum
Adding Tables and Extracting Values from Tables
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding Tables and Extracting Values from Tables
#5
You could represent a table as a list of lists, or a dictionary of lists, or a numpy matrix, or a dataframe in pandas, or a class, or ... well, lots of options really. It depends on what you are trying to do and the source of the data you are dealing with.

I see you picked a dictionary. Keep in mind that the keys in a dictionary must be unique, so you cannot repeat rows/columns.
I am trying to help you, really, even if it doesn't always seem that way
Reply


Messages In This Thread
RE: Adding Tables and Extracting Values from Tables - by gruntfutuk - Sep-29-2018, 12:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Extracting tables and text above the table from a PDF to CSV DivAsh 3 2,530 Jan-18-2023, 07:39 AM
Last Post: perfringo
Question How does one clean a populated table in MySQL/MariaDB? Copying values across tables? BrandonKastning 2 1,587 Jan-17-2022, 05:46 AM
Last Post: BrandonKastning
  Pandas dataframe to join three tables using like condition among them sandeep_ganga 0 2,161 Nov-29-2019, 08:30 AM
Last Post: sandeep_ganga
  Bar Plot with Python ,matplotlib and sqlite3 tables gauravbhardwajee 0 4,981 Sep-25-2018, 06:17 PM
Last Post: gauravbhardwajee
  Match two tables to select exactly matching items klllmmm 1 2,553 Nov-25-2017, 05:42 PM
Last Post: heiner55
  Pandas df.read_html dropping duplicate tables in html : Urgent Guidance radioactive9 1 2,745 Aug-05-2017, 04:48 AM
Last Post: radioactive9

Forum Jump:

User Panel Messages

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