ColumnECSV#
- class astropy.io.misc.ecsv.ColumnECSV(name, datatype, subtype=None, unit=None, description=None, format=None, meta=None)[source]#
Bases:
objectClass representing attributes of a column in an ECSV header.
- Parameters:
- name
python:str The name of the column.
- datatype
python:str The data type of the column as specified in the ECSV header.
- subtype
python:strorpython:None, optional The subtype of the column, if applicable.
- unit
python:strorpython:None, optional The unit of the column values, if specified.
- description
python:strorpython:None, optional A description of the column.
- format
python:strorpython:None, optional The format string for the column values.
- meta
python:dictorpython:None, optional Additional metadata associated with the column.
- name
- Attributes:
- csv_np_type
python:str Numpy type string describing the column CSV data. In practice this is the same as the ECSV
datatypeexcept that “string” => “str”. This is provided to the engineconvert_np_type()method to generate the engine-specific type provided to the CSV reader. For instance, for pandas theint32type gets converted toInt32to read columns as a nullable int32.- dtype
numpy.dtype Numpy dtype in the final column data. This may be entirely different from
csv_np_typein some cases, in particular JSON-encoded fields.- shape
python:tupleofpython:int Shape of the final column data.
- csv_np_type
Attributes Summary
Numpy type string describing the column CSV data.
Numpy dtype in the final column data
Shape of the column data
Attributes Documentation
- datatype = <dataclasses._MISSING_TYPE object>#
- description = None#
- format = None#
- meta = None#
- name = <dataclasses._MISSING_TYPE object>#
- subtype = None#
- unit = None#