def getLastSWL(waterlevels):
    """
    A function to extract the datetime and level of the most recent waterlevel on record for that hole
    """
    # Sort all waterlevels by date
    waterlevels = waterlevels.sort_values(['Date'])
    # Extract the last water level
    last_waterlevel = waterlevels['Depth'].iloc[-1]
    # Extract the last timestamp
    last_wl_datetime = waterlevels['Date'].iloc[-1]
    return last_waterlevel, last_wl_datetime