()
Initializes global dictionary that performs mapping between Pandas objects and SDC objects.

    To function correctly this function must be called after initialization of ``sdc_modules`` and ``pandas_modules``
    lists by :func:`init_sdc_structure` and :func:`init_pandas_structure`` functions respectively.
Initializes global dictionary that performs mapping between Pandas objects and SDC objects.
Initializes global dictionary that performs mapping between Pandas objects and SDC objects .
def init_pandas_sdc_dict():
    """
    Initializes global dictionary that performs mapping between Pandas objects and SDC objects.

    To function correctly this function must be called after initialization of ``sdc_modules`` and ``pandas_modules``
    lists by :func:`init_sdc_structure` and :func:`init_pandas_structure`` functions respectively.
    """

    def _map_sdc_to_pandas(sdc_obj):
        if isfunction(sdc_obj):
            doc = get_docstring(sdc_obj)

            # The very first section of Intel SDC documentation is expected to start with
            # the User Guide header followed by the name of respective Pandas API.
            # The following code extracts respective Pandas API
            title, text = split_title(doc)
            if is_sdc_user_guide_header((title, text)):
                pandas_name = extract_pandas_name_from(text)
                pandas_obj = get_obj(pandas_name)
                pandas_sdc_dict[pandas_obj] = sdc_obj
                pandas_sdc_dict[pandas_name] = sdc_obj
        return False

    global pandas_sdc_dict
    pandas_sdc_dict = {}

    traverse(sdc_modules, _map_sdc_to_pandas, True)
def init_pandas_sdc_dict ( ) : def _map_sdc_to_pandas ( sdc_obj ) : if isfunction ( sdc_obj ) : doc = get_docstring ( sdc_obj ) # The very first section of Intel SDC documentation is expected to start with # the User Guide header followed by the name of respective Pandas API. # The following code extracts respective Pandas API title , text = split_title ( doc ) if is_sdc_user_guide_header ( ( title , text ) ) : pandas_name = extract_pandas_name_from ( text ) pandas_obj = get_obj ( pandas_name ) pandas_sdc_dict [ pandas_obj ] = sdc_obj pandas_sdc_dict [ pandas_name ] = sdc_obj return False global pandas_sdc_dict pandas_sdc_dict = { } traverse ( sdc_modules , _map_sdc_to_pandas , True )