How to transfer the array to csv format

wwalker,

I have met a new issue related to convert data type, can you help to check it? thank you.