I was getting
KeyError: 0 on the out = df[['Name']].merge... line
KeyError: 0 on the out = df[['Name']].merge... line