def validate_all(prefix, ignore_deprecated=False):
result = {}<EOL>seen = {}<EOL>api_doc_fnames = os.path.join(<EOL>BASE_PATH, '<STR_LIT>', '<STR_LIT:source>', '<STR_LIT>', '<STR_LIT>')<EOL>api_items = []<EOL>for api_doc_fname in glob.glob(api_doc_fnames):<EOL><INDENT>with open(api_doc_fname) as f:<EOL><INDENT>api_items += list(get_api_items(f))<EOL><DEDENT><DEDENT>for func_name, func_obj, section, subsection in api_items:<EOL><INDENT>if prefix and not func_name.startswith(prefix):<EOL><INDENT>continue<EOL><DEDENT>doc_info = validate_one(func_name)<EOL>if ignore_deprecated and doc_info['<STR_LIT>']:<EOL><INDENT>continue<EOL><DEDENT>result[func_name] = doc_info<EOL>shared_code_key = doc_info['<STR_LIT:file>'], doc_info['<STR_LIT>']<EOL>shared_code = seen.get(shared_code_key, '<STR_LIT>')<EOL>result[func_name].update({'<STR_LIT>': True,<EOL>'<STR_LIT>': section,<EOL>'<STR_LIT>': subsection,<EOL>'<STR_LIT>': shared_code})<EOL>seen[shared_code_key] = func_name<EOL><DEDENT>api_item_names = set(list(zip(*api_items))[<NUM_LIT:0>])<EOL>for class_ in (pandas.Series, pandas.DataFrame, pandas.Panel):<EOL><INDENT>for member in inspect.getmembers(class_):<EOL><INDENT>func_name = '<STR_LIT>'.format(class_.__name__, member[<NUM_LIT:0>])<EOL>if (not member[<NUM_LIT:0>].startswith('<STR_LIT:_>')<EOL>and func_name not in api_item_names):<EOL><INDENT>if prefix and not func_name.startswith(prefix):<EOL><INDENT>continue<EOL><DEDENT>doc_info = validate_one(func_name)<EOL>if ignore_deprecated and doc_info['<STR_LIT>']:<EOL><INDENT>continue<EOL><DEDENT>result[func_name] = doc_info<EOL>result[func_name]['<STR_LIT>'] = False<EOL><DEDENT><DEDENT><DEDENT>return result<EOL>
Execute the validation of all docstrings, and return a dict with the
results.

Parameters
----------
prefix : str or None
    If provided, only the docstrings that start with this pattern will be
    validated. If None, all docstrings will be validated.
ignore_deprecated: bool, default False
    If True, deprecated objects are ignored when validating docstrings.

Returns
-------
dict
    A dictionary with an item for every function/method... containing
    all the validation information.