@_wraps_with_cleaned_sig(method, 1)
def wrapped_method(dg, *args, **kwargs):
    caching.maybe_show_cached_st_function_warning(dg, method.__name__)
    delta_type = method.__name__
    last_index = None
    if ((delta_type in DELTAS_TYPES_THAT_MELT_DATAFRAMES) and (len(args) > 0)):
        data = args[0]
        if type_util.is_dataframe_compatible(data):
            data = type_util.convert_anything_to_df(data)
            if (data.index.size > 0):
                last_index = data.index[(- 1)]
            else:
                last_index = None

    def marshall_element(element):
        return method(dg, element, *args, **kwargs)
    return dg._enqueue_new_element_delta(marshall_element, delta_type, last_index)
@_wraps_with_cleaned_sig(method, 1)
def wrapped_method(dg, *args, **kwargs):
    caching.maybe_show_cached_st_function_warning(dg, method.__name__)
    delta_type = method.__name__
    last_index = None
    if ((delta_type in DELTAS_TYPES_THAT_MELT_DATAFRAMES) and (len(args) > 0)):
        data = args[0]
        if type_util.is_dataframe_compatible(data):
            data = type_util.convert_anything_to_df(data)
            if (data.index.size > 0):
                last_index = data.index[(- 1)]
            else:
                last_index = None

    def marshall_element(element):
        return method(dg, element, *args, **kwargs)
    return dg._enqueue_new_element_delta(marshall_element, delta_type, last_index)