How to save xarray data to csv

Chris Angelico rosuav at gmail.com
Mon Apr 16 14:01:00 EDT 2018


On Tue, Apr 17, 2018 at 3:50 AM, Rhodri James <rhodri at kynesim.co.uk> wrote:
> You don't say, but I assume you're using Python 2.x
>
> [snip]
>
>> getting this error - TypeError: a bytes-like object is required, not 'str'

Actually, based on this error, I would suspect Python 3.x. But you're
right that (a) the Python version should be stated for clarity
(there's a LOT of difference between Python 3.3 and Python 3.7), and
(b) the full traceback is very helpful.

ChrisA


More information about the Python-list mailing list