def decomment(rf):
    """Remove comment content from CSV line.
    `rf` should be a file opened for reading.
    """
    for line in rf:
        content = line.split('#')[0].strip()
        if content:
            yield content
