I'm stuck with this problem. I followed many examples of code found here on SO an on official documentation pages, but what I get is:
Python 3.7.0 (default, Aug 22 2018, 20:50:05)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import csv
>>>
>>> float_list = [1.13, 0.25, 3.28]
>>>
>>> with open('some.csv', "wb") as file:
... writer = csv.writer(file, delimiter=',')
... writer.writerow(float_list)
...
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
TypeError: a bytes-like object is required, not 'str'
>>>
Same thing also with:
int_list=[1,2,3]
Some suggestions?