write_ecsv#
- astropy.io.misc.ecsv.write_ecsv(tbl, output, engine='io.ascii', **kwargs)[source]#
Thin wrapper around the
io.asciiECSV writer to write ECSV files.- Parameters:
- tbl
astropy.table.Table The table to write to ECSV format.
- output
python:stroros.PathLikeor python:file-like objectobject The output file path or file-like object to write the ECSV data to.
- engine
python:str, optional The engine to use for writing the CSV data. Default is “io.ascii”, which uses astropy to write the CSV data. Currently this is the only option.
- **kwargs
python:dict, optional Additional keyword arguments passed to the ECSV writer. These can include options like
delimiter,encoding, and others supported by theastropy.io.ascii.Ecsvwriter.
- tbl