Python Forum
Is there a better data structure than classes for a set of employes?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there a better data structure than classes for a set of employes?
#5
Where do you get the data to calculate cost?
Do you have extra fields per employee in the yaml or just the name and nationality?
Also you can make the cost property (using @property decorator), instead of having overallcost property and resolveOverallCost method
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: Is there a better data structure than classes for a set of employes? - by buran - Feb-26-2020, 10:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Data structure question standenman 1 755 Jun-04-2023, 11:51 AM
Last Post: jefsummers
  Data saving structure JosefFilosopio 0 2,211 May-04-2019, 10:48 AM
Last Post: JosefFilosopio
  What data structure I need dervast 3 2,698 Apr-07-2019, 11:50 PM
Last Post: scidam
  Replacing values for specific columns in Panda data structure Padowan 1 14,772 Nov-27-2017, 08:21 PM
Last Post: Padowan

Forum Jump:

User Panel Messages

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