train_likes_df.columns = train_likes_df.columns.str.strip()
print(train_likes_df.columns)
Index(['user_id', 'item_id', 'channel', 'time', 'test'], dtype='object')
Getting time information from string with pandas and datatime in Python