I want to upload a file to s3 without writing the file on my local system, so I am using set_contents_from_string of boto library. I am able to upload this file back to s3.
But how to write an array to a csv file using boto library.
arrlist = [[2, 'jack'], [3, 'john'], [4, 'robert']]
file_name = "test.csv"
k = Key(bucket, file_name)
k.set_contents_from_string(arrlist)
Its not accepting array, any help how can I achieve this?