This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pandas import DataFrame as pdf, Series | |
from tqdm.auto import tqdm | |
from random import sample, randint | |
from ast import literal_eval | |
class DataFrame(pdf): | |
"""DataFrame structure for loading ingredient lists from the Food.com dataset | |
Extends pandas.DataFrame | |
Implements preprocess(), collect_first_words() methods for parsing raw ingredient data | |
""" |