def combine_image_object(self):
    image_object_df = pd.read_csv(self.IMAGE_OBJECT_FILE_NAME)
    mood_data_df = pd.read_csv(self.TRAIN_DATA_AFTER_CLASSIFIC)
    try:
        mood_data_df.drop(['vector'], axis=1, inplace=True)
    except BaseException as e:
        print(e)
    image_object = image_object_df[['tid', 'vector']]
    print(image_object_df.shape, mood_data_df.shape)
    result = pd.merge(mood_data_df, image_object, on='tid', how='left')
    print(result.shape)
    result.to_csv(self.MOOD_DATA_AFTER_OBJECT)
def combine_image_object(self):
    image_object_df = pd.read_csv(self.IMAGE_OBJECT_FILE_NAME)
    mood_data_df = pd.read_csv(self.TRAIN_DATA_AFTER_CLASSIFIC)
    try:
        mood_data_df.drop(['vector'], axis=1, inplace=True)
    except BaseException as e:
        print(e)
    image_object = image_object_df[['tid', 'vector']]
    print(image_object_df.shape, mood_data_df.shape)
    result = pd.merge(mood_data_df, image_object, on='tid', how='left')
    print(result.shape)
    result.to_csv(self.MOOD_DATA_AFTER_OBJECT)