(cls, fn, args, full_signature=True)
return f"{_get_bold_text(fn.__name__)}({args_vals}):"
Get the signature for the original pandas method with actual values

        :param cls: the pandas class
        :param fn: The pandas method
        :param args: The arguments used when it was applied
        :return: string representation of the signature for the applied pandas method
Get the signature for the original pandas method with actual values
Get the signature for the original pandas method with actual values
def get_signature_repr(cls, fn, args, full_signature=True):
    """ Get the signature for the original pandas method with actual values

        :param cls: the pandas class
        :param fn: The pandas method
        :param args: The arguments used when it was applied
        :return: string representation of the signature for the applied pandas method
    """

    _raise_on_bad_class(cls)

    def _get_bold_text(text):
        return f"\033[1m{text}\033[0m"

    def _get_orig_func_params():
        return [
            param_value if full_signature else param_name
            for param_name, param_value in signature(
                get_pandas_func(cls, fn)
            ).parameters.items()
            if param_name not in ("kwargs", "self")
        ]

    def _get_param_value(param_with_default, arg_value):
        res = str(param_with_default)
        if arg_value is not None:
            param_name = res.split("=")[0]
            arg_value = (
                f'"{arg_value}"' if isinstance(arg_value, str) else arg_value
            )
            res = (
                param_name
                if isinstance(arg_value, pd.DataFrame)
                or isinstance(arg_value, pd.Series)
                else f"{param_name}={arg_value}"
            )
        return res

    zip_func = itertools.zip_longest if full_signature else zip
    orig_func_params = _get_orig_func_params()
    args_vals = ", ".join(
        _get_param_value(param_with_default, arg_value)
        for param_with_default, arg_value in zip_func(orig_func_params, args)
    )
    return f"{_get_bold_text(fn.__name__)}({args_vals}):"
def get_signature_repr ( cls , fn , args , full_signature = True ) : _raise_on_bad_class ( cls ) def _get_bold_text ( text ) : return f"\033[1m{text}\033[0m" def _get_orig_func_params ( ) : return [ param_value if full_signature else param_name for param_name , param_value in signature ( get_pandas_func ( cls , fn ) ) . parameters . items ( ) if param_name not in ( "kwargs" , "self" ) ] def _get_param_value ( param_with_default , arg_value ) : res = str ( param_with_default ) if arg_value is not None : param_name = res . split ( "=" ) [ 0 ] arg_value = ( f'"{arg_value}"' if isinstance ( arg_value , str ) else arg_value ) res = ( param_name if isinstance ( arg_value , pd . DataFrame ) or isinstance ( arg_value , pd . Series ) else f"{param_name}={arg_value}" ) return res zip_func = itertools . zip_longest if full_signature else zip orig_func_params = _get_orig_func_params ( ) args_vals = ", " . join ( _get_param_value ( param_with_default , arg_value ) for param_with_default , arg_value in zip_func ( orig_func_params , args ) ) return f"{_get_bold_text(fn.__name__)}({args_vals}):"