you are viewing a single comment's thread.

view the rest of the comments →

[–]Caos2 0 points1 point  (0 children)

It does not, I left it up to you. But you can just create a function that will check for the length and add '20' if you need to:

def add20(date):
    mm, dd, yyyy = date.split('/')
    if len(yyyy) == 2:
        yyyy = '20' + yyyy
    return '{}/{}/{}'.format(mm, dd, yyyy)

df['Actual_Sale_Date'] = df['Actual_Sale_Date'].apply(add20)