Very very very new to python here, so I have a basic question: I have a function that outputs generators. I need to loop over them and output to a csv.
for i in library.function(bounding box):
open a file handle, then write to the handle:
with open('foo.csv', 'w') as f: for i in data.function(x,y,z): f.write(i)
You may need to serialize
i to a string if
i is an Object that does not implement