Dear all,
I have an issue with reading and writing csv files. In a first process, I produce a csv-file
- csv(al_f_active_pop, fname = '../../output/temp/al_f_active_pop.csv')
See the file in attachment
al_f_active_pop looks like this in the console
>>> al_f_active_pop
agegroup_work | | | | | | | | | | |
15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 | 55 | 60 | 65 | 66
37.17 | 196.25 | 295.65 | 312.12 | 305.00 | 327.52 | 332.00 | 300.48 | 226.72 | 96.20 | 4.11 | 1.97
so that appears correct.
Now the issue starts when I read the attached file back
>>> (load('../../output/temp/al_m_active_pop.csv', type = float)[:])
- reading C:\usr\midas\output\temp\al_m_active_pop.csv
agegroup_work | | | | | | | | | | | |
15 | 50.20 | 221.48 | 313.76 | 343.72 | 341.36 | 371.39 | 386.37 | 360.51 | 282.32 | 137.33 | 7.00 | 4.11
This is obviously not correct. What am I doing wrong?
Thanks
Gijs