msticpy/sectools/tilookup.py
def result_to_df(
        ioc_lookup: Tuple[bool, List[Tuple[str, LookupResult]]]
    ) -> pd.DataFrame:
        """
        Return DataFrame representation of IoC Lookup response.

        Parameters
        ----------
        ioc_lookup : Tuple[bool, List[Tuple[str, LookupResult]]]
            Output from `lookup_ioc`

        Returns
        -------
        pd.DataFrame
            The response as a DataFrame with a row for each
            provider response.

        """
        return (
            pd.DataFrame(
                {
                    r_item[0]: pd.Series(attr.asdict(r_item[1]))
                    for r_item in ioc_lookup[1]
                }
            )
            .T.rename(columns=LookupResult.column_map())
            .drop("SafeIoc", axis=1)
        )

        Return DataFrame representation of IoC Lookup response.

        Parameters
        ----------
        ioc_lookup : Tuple[bool, List[Tuple[str, LookupResult]]]
            Output from `lookup_ioc`

        Returns
        -------
        pd.DataFrame
            The response as a DataFrame with a row for each
            provider response.

        
Return DataFrame representation of IoC Lookup response.
Parameters



Returns

pd.DataFrame
The response as a DataFrame with a row for each
provider response.
Return DataFrame representation of IoC Lookup response . Parameters Returns pd . DataFrame The response as a DataFrame with a row for each provider response .
def result_to_df(
        ioc_lookup: Tuple[bool, List[Tuple[str, LookupResult]]]
    ) -> pd.DataFrame:
        return (
            pd.DataFrame(
                {
                    r_item[0]: pd.Series(attr.asdict(r_item[1]))
                    for r_item in ioc_lookup[1]
                }
            )
            .T.rename(columns=LookupResult.column_map())
            .drop("SafeIoc", axis=1)
        )
def result_to_df ( ioc_lookup : Tuple [ bool , List [ Tuple [ str , LookupResult ] ] ] ) -> pd . DataFrame : return ( pd . DataFrame ( { r_item [ 0 ] : pd . Series ( attr . asdict ( r_item [ 1 ] ) ) for r_item in ioc_lookup [ 1 ] } ) . T . rename ( columns = LookupResult . column_map ( ) ) . drop ( "SafeIoc" , axis = 1 ) )
Return DataFrame representation of IoC Lookup response.
Return DataFrame representation of IoC Lookup response .
"""
        Return DataFrame representation of IoC Lookup response.

        Parameters
        ----------
        ioc_lookup : Tuple[bool, List[Tuple[str, LookupResult]]]
            Output from `lookup_ioc`

        Returns
        -------
        pd.DataFrame
            The response as a DataFrame with a row for each
            provider response.

        """
ioc_lookup
Tuple[bool, List[Tuple[str, LookupResult]]]