def load(self, path: pathlib.Path):
    'Load stored data.'
    try:
        self.words = pd.read_csv(path.with_suffix('.csv'))
        with path.with_suffix('.json').open() as f:
            self.structure = json.loads(f.read())
        self.words.set_index(self.structure['index'], inplace=True)
    except FileNotFoundError as exception:
        raise FileNotFoundError('No word list found with the specified name.') from exception
Load stored data.
def load(self, path: pathlib.Path):
    
    try:
        self.words = pd.read_csv(path.with_suffix('.csv'))
        with path.with_suffix('.json').open() as f:
            self.structure = json.loads(f.read())
        self.words.set_index(self.structure['index'], inplace=True)
    except FileNotFoundError as exception:
        raise FileNotFoundError('No word list found with the specified name.') from exception