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?
#1
Hello,

i have around 100 uniform data sets of employes that i would like to read and process in my code. Most of the data, like name or nationality can be used directly, other parameters like their actual cost for the company need to be derived from the data.
In the beginning, i used a dictionary of dictionary to deal with the data set. This turned out to be unreadable, awful code. Therefore i used a .yml file for storing the data and wrote a script that reads the .yml, creates a class object for every employe and passes a list of emplye objects to the actual code.
While this works out for me, it still looks kinda strange and off at times.
Is there a better way to store and process those data? I was thinking about using Sql lite or some data structure that panda offers.
Reply


Messages In This Thread
Is there a better data structure than classes for a set of employes? - by Schlangenversteher - Feb-26-2020, 06:45 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