>>> dir(asciitable)
['AASTex', 'AASTexReader', 'AllType', 'BaseData', 'BaseHeader', 'BaseInputter', 'BaseOutputter', 'BaseReader', 'BaseSplitter', 'Basic', 'BasicReader', 'Cds', 'CdsReader', 'Column', 'CommentedHeader', 'CommentedHeaderReader', 'ContinuationLinesInputter', 'Daophot', 'DaophotReader', 'DefaultSplitter', 'DictLikeNumpy', 'FixedWidth', 'FixedWidthData', 'FixedWidthHeader', 'FixedWidthNoHeader', 'FixedWidthSplitter', 'FixedWidthTwoLine', 'FloatType', 'InconsistentTableError', 'IntType', 'Ipac', 'IpacReader', 'Keyword', 'Latex', 'LatexReader', 'Memory', 'MemoryReader', 'NoHeader', 'NoHeaderReader', 'NoType', 'NumType', 'NumpyOutputter', 'Rdb', 'RdbReader', 'StrType', 'Tab', 'TabReader', 'WhitespaceSplitter', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '__version__', 'basic', 'cds', 'convert_list', 'convert_numpy', 'core', 'daophot', 'fixedwidth', 'get_reader', 'get_writer', 'has_numpy', 'ipac', 'latex', 'latexdicts', 'memory', 'read', 'set_guess', 'ui', 'version', 'write']
>>> import collections
>>> import asciitable
>>> data = OrderedDict([('apple', [40,50,60,70]), ('banana', [3,1,2]), ('orange', [200]), ('pear', [8,8,90,7])])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'OrderedDict' is not defined
1. No property of ”Table“ in asciitable module:
2. code in READ.MD should be:
from asciitable import Table3. "name 'OrderedDict' is not defined", is it correct for me to run this command?