def data(item=None, show_doc=False):
    """loads a datasaet (from in-modules datasets) in a dataframe data structure.

    Args:
        item (str)      : name of the dataset to load.
        show_doc (bool) : to show the dataset's documentation.

    Examples:

    >>> iris = data('iris')


    >>> data('titanic', show_doc=True)
        : returns the dataset's documentation.

    >>> data()
        : like help(), returns a dataframe [Item, Title]
        for a list of the available datasets.
    """

    if item:
        try:
            if show_doc:
                __print_item_docs(item)
                return

            df = __read_csv(item)
            return df
        except __HOLE__:
            find_similar(item)
    else:
        return __datasets_desc()
dataset/ETHPy150Open iamaziz/PyDataset/pydataset/__init__.py/data