"""
Most relevant sources
===============================================================================

See :doc:`column indicators <column_indicators>` to obtain a `pandas.Dataframe` 
with the data.

>>> from techminer2 import *
>>> directory = "data/"
>>> file_name = "sphinx/_static/most_relevant_sources.html"

>>> most_relevant_sources(
...     directory=directory,
...     top_n=20,
... ).write_html(file_name)

.. raw:: html

    <iframe src="_static/most_relevant_sources.html" height="600px" width="100%" frameBorder="0"></iframe>

"""
from .cleveland_chart import cleveland_chart


def most_relevant_sources(directory="./", top_n=20):

    return cleveland_chart(
        column="iso_source_name",
        top_n=top_n,
        min_occ=None,
        max_occ=None,
        directory=directory,
        metric="num_documents",
        title="Most relevant sources",
    )

"""
Most relevant sources
===============================================================================

See :doc:`column indicators <column_indicators>` to obtain a `pandas.Dataframe` 
with the data.

>>> from techminer2 import *
>>> directory = "data/"
>>> file_name = "sphinx/_static/most_relevant_sources.html"

>>> most_relevant_sources(
...     directory=directory,
...     top_n=20,
... ).write_html(file_name)

.. raw:: html

    <iframe src="_static/most_relevant_sources.html" height="600px" width="100%" frameBorder="0"></iframe>

"""
from .cleveland_chart import cleveland_chart


def most_relevant_sources(directory="./", top_n=20):

    return cleveland_chart(
        column="iso_source_name",
        top_n=top_n,
        min_occ=None,
        max_occ=None,
        directory=directory,
        metric="num_documents",
        title="Most relevant sources",
    )

Most relevant sources ===============================================================================  See :doc:`column indicators <column_indicators>` to obtain a `pandas.Dataframe`  with the data.  >>> from techminer2 import * >>> directory = "data/" >>> file_name = "sphinx/_static/most_relevant_sources.html"  >>> most_relevant_sources( ...     directory=directory, ...     top_n=20, ... ).write_html(file_name)  .. raw:: html      <iframe src="_static/most_relevant_sources.html" height="600px" width="100%" frameBorder="0"></iframe>