namebrandon / Sparkov_Data_Generation

Synthetic Credit Card Transaction Generator used in the Sparkov program.
MIT License
133 stars 62 forks source link

fix age computation, and re-use age instead of recalculating it #6

Closed streamnsight closed 2 years ago

streamnsight commented 2 years ago

fix the birthday calculations that are a bit flacky with the division by 365 on one end and 365.25 on the other. This leads to the wrong age being calculated for the profile lookup and associating the wrong profile to a customer. Also, it seemed easier to store the age to be sure to have the right one, rather than recompute it.