When reading fixed-width files using the read_fwf function in pandas (0.18.1) with Python (3.4.3), you can specify a comment character using the comment argument. I expected all lines starting with a comment character would be ignored. However, if you do not specify the first column in the file in any column in colspecs , the comment character will not be used.
import io, sys import pandas as pd sys.version
Is there any documentation specifically referencing this? A simple workaround is to include the first column and then delete it after, but I wanted to check if this was a mistake or a misunderstanding of the expected behavior.
source share