我正在尝试使用ascii.read扫描大量的表格数据文件。列标题似乎没有自一致的分隔符。每个列标题之间有2到7个空格。我最初怀疑我可以处理它们的选项卡,但事实似乎并非如此:将读取文件,但只返回非常无用的单列数据。这弄乱了分隔符,因为它认为这是两个列标题,而不是一个:
raw = (ascii.read('filename',delimi
码from astropy.io import fits# (comment: At this line I also tried Table.read() instead of ascii.read() as suggestedgeneric_converter(vals):
--> 916 return num