astropy:docs

FastCommentedHeader

class astropy.io.ascii.FastCommentedHeader(**kwargs)[source] [edit on github]

Bases: astropy.io.ascii.FastBasic

A faster version of the CommentedHeader reader, which looks for column names in a commented line. header_start denotes the index of the header line among all commented lines and is 0 by default.

Methods Summary

read(table) Read input data (file-like object, filename, list of strings, or single string) into a Table and return the result.
write(table, output) Override the default writing behavior in FastBasic so that column names are commented.

Methods Documentation

read(table)[source] [edit on github]

Read input data (file-like object, filename, list of strings, or single string) into a Table and return the result.

write(table, output)[source] [edit on github]

Override the default writing behavior in FastBasic so that column names are commented.

Page Contents