txt = io.String(
    """location   date              temp
                   NY         2014-02-01        60
                   NY         2014-02-02        40
                   LA         2014-01-28        70
                   LA         2014-02-02        80"""
    )
Python dataframe add a column that selects prev date's data