Python Forum
Hardest time getting DataFrame to populate Tree Widget
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hardest time getting DataFrame to populate Tree Widget
#3
(Oct-15-2018, 07:01 PM)nilamo Wrote:
(Oct-15-2018, 06:45 PM)WuchaDoin Wrote: imp_df.loc[each_rec]
Try printing that out inside your loop, so you can make sure it's actually what you expect it to be. It looks like the headers are being added to each row.

That is a stellar idea. It frustrates me that I overlooked that idea. I'll see what I get. Thank you very much.

You were right. It seems my headers are getting placed repeatedly. The data prints fine, but the headers are colliding with the data (I am assuming).

I removed the headers to see what it would do and sure enough, the headers don't affect the data. It seems the headers from the DataFrame are getting repeated as well as not falling in the right column. I just can't figure out what to add/edit.
Reply


Messages In This Thread
RE: Hardest time getting DataFrame to populate Tree Widget - by WuchaDoin - Oct-15-2018, 07:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] populate a QListWidget devilonline 1 1,652 Apr-10-2023, 02:52 AM
Last Post: deanhystad
  [PyQt] [Solved]Populate ComboBox with for loop? Extra 3 2,197 Jul-31-2022, 09:01 PM
Last Post: Extra
  Problems getting tk Combobox contents to populate properly dford 4 3,893 Jan-08-2022, 02:39 PM
Last Post: dford
  Auto populate dictionary with names/values of QT widgets cjh 1 2,993 Mar-23-2021, 02:56 PM
Last Post: deanhystad
  [PyQt] How to populate a treeview on a GUI with a dictionary mart79 1 8,318 Aug-05-2019, 01:30 PM
Last Post: Denni
  populate list with images and be able to select them ricardons 0 2,150 Jan-11-2019, 03:45 PM
Last Post: ricardons

Forum Jump:

User Panel Messages

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