def _trim_front(strings):
    trimmed = strings
    while len(strings) > 0 and all([x[0] == ' ' for x in trimmed]):
        trimmed = [x[1:] for x in trimmed]
    return trimmed
Trims zeros and decimal points
dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/_trim_front