def __init__(self):
    train_sentiment_files = sorted(glob.glob('../input/petfinder-adoption-prediction/train_sentiment/*.json'))
    test_sentiment_files = sorted(glob.glob('../input/petfinder-adoption-prediction/test_sentiment/*.json'))
    sentiment_files = (train_sentiment_files + test_sentiment_files)
    self.sentiment_files = pd.DataFrame(sentiment_files, columns=['sentiment_filename'])
    self.sentiment_files['PetID'] = self.sentiment_files['sentiment_filename'].apply((lambda x: x.split('/')[(- 1)].split('.')[0]))
    train_metadata_files = sorted(glob.glob('../input/petfinder-adoption-prediction/train_metadata/*.json'))
    test_metadata_files = sorted(glob.glob('../input/petfinder-adoption-prediction/test_metadata/*.json'))
    metadata_files = (train_metadata_files + test_metadata_files)
    self.metadata_files = pd.DataFrame(metadata_files, columns=['metadata_filename'])
    self.metadata_files['PetID'] = self.metadata_files['metadata_filename'].apply((lambda x: x.split('/')[(- 1)].split('-')[0]))
def __init__(self):
    train_sentiment_files = sorted(glob.glob('../input/petfinder-adoption-prediction/train_sentiment/*.json'))
    test_sentiment_files = sorted(glob.glob('../input/petfinder-adoption-prediction/test_sentiment/*.json'))
    sentiment_files = (train_sentiment_files + test_sentiment_files)
    self.sentiment_files = pd.DataFrame(sentiment_files, columns=['sentiment_filename'])
    self.sentiment_files['PetID'] = self.sentiment_files['sentiment_filename'].apply((lambda x: x.split('/')[(- 1)].split('.')[0]))
    train_metadata_files = sorted(glob.glob('../input/petfinder-adoption-prediction/train_metadata/*.json'))
    test_metadata_files = sorted(glob.glob('../input/petfinder-adoption-prediction/test_metadata/*.json'))
    metadata_files = (train_metadata_files + test_metadata_files)
    self.metadata_files = pd.DataFrame(metadata_files, columns=['metadata_filename'])
    self.metadata_files['PetID'] = self.metadata_files['metadata_filename'].apply((lambda x: x.split('/')[(- 1)].split('-')[0]))