def is_empty_line(text):
    return len(text) == 0 or text.isspace()
return a new Index of the values set with the mask
dataset/ETHPy150Open xolox/python-humanfriendly/humanfriendly/text.py/is_empty_line--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index.putmask