How to save xarray data to csv

shalu.ashu50 at gmail.com shalu.ashu50 at gmail.com
Mon Apr 16 22:27:00 EDT 2018


On Tuesday, 17 April 2018 02:01:19 UTC+8, Chris Angelico  wrote:
> 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.
Yes Chris, I am using 3.x only

 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