text_extensions_for_pandas/io/watson/tables.py
def _generate_is_numeric_table(exploded_df, rows, cols):
    """
    creates a 1:1 relation of the constructed dataframe, with boolean values as to whether or not a particular element
    in the dataframe is of a numeric datatype.
    :param exploded_df: the exploded form of the dataframe. Must contain the attributes.type field
    :param rows: list of column names in the exploded / shredded dataframe that indicate row headers
    :param cols: list of column names in the exploded / shredded dataframe that indicate column headers
    :return: the _is_numeric table; a 1-1 recreation of the original reconstructed table, with boolean values as to
            whether or not each cell is numeric or not as opposed to that cell's value
    """
    list_of_numeric_labels = ["Number", "Percentage"]
    exploded_df['attributes.type'] = exploded_df['attributes.type'].apply(
        lambda a: a[0] if pd.api.types.is_list_like(a) and len(a) != 0 else a if type(a) == str else "None")

    numerics = make_table_from_exploded_df(exploded_df, rows, cols, value_col="attributes.type")
    numeric_cells = numerics == list_of_numeric_labels[0]
    for label in list_of_numeric_labels[1:]:
        numeric_cells = numeric_cells | (numerics == label)
    return numeric_cells

    creates a 1:1 relation of the constructed dataframe, with boolean values as to whether or not a particular element
    in the dataframe is of a numeric datatype.
    :param exploded_df: the exploded form of the dataframe. Must contain the attributes.type field
    :param rows: list of column names in the exploded / shredded dataframe that indicate row headers
    :param cols: list of column names in the exploded / shredded dataframe that indicate column headers
    :return: the _is_numeric table; a 1-1 recreation of the original reconstructed table, with boolean values as to
            whether or not each cell is numeric or not as opposed to that cell's value
    
creates a 1:1 relation of the constructed dataframe, with boolean values as to whether or not a particular element
in the dataframe is of a numeric datatype.
creates a 1 : 1 relation of the constructed dataframe with boolean values as to whether or not a particular element in the dataframe is of a numeric datatype .
def _generate_is_numeric_table(exploded_df, rows, cols):
    list_of_numeric_labels = ["Number", "Percentage"]
    exploded_df['attributes.type'] = exploded_df['attributes.type'].apply(
        lambda a: a[0] if pd.api.types.is_list_like(a) and len(a) != 0 else a if type(a) == str else "None")
    numerics = make_table_from_exploded_df(exploded_df, rows, cols, value_col="attributes.type")
    numeric_cells = numerics == list_of_numeric_labels[0]
    for label in list_of_numeric_labels[1:]:
        numeric_cells = numeric_cells | (numerics == label)
    return numeric_cells
def _generate_is_numeric_table ( exploded_df , rows , cols ) : list_of_numeric_labels = [ "Number" , "Percentage" ] exploded_df [ 'attributes.type' ] = exploded_df [ 'attributes.type' ] . apply ( lambda a : a [ 0 ] if pd . api . types . is_list_like ( a ) and len ( a ) != 0 else a if type ( a ) == str else "None" ) numerics = make_table_from_exploded_df ( exploded_df , rows , cols , value_col = "attributes.type" ) numeric_cells = numerics == list_of_numeric_labels [ 0 ] for label in list_of_numeric_labels [ 1 : ] : numeric_cells = numeric_cells | ( numerics == label ) return numeric_cells
creates a 1:1 relation of the constructed dataframe, with boolean values as to whether or not a particular element
in the dataframe is of a numeric datatype.
creates a 1 : 1 relation of the constructed dataframe with boolean values as to whether or not a particular element in the dataframe is of a numeric datatype .
"""
    creates a 1:1 relation of the constructed dataframe, with boolean values as to whether or not a particular element
    in the dataframe is of a numeric datatype.
    :param exploded_df: the exploded form of the dataframe. Must contain the attributes.type field
    :param rows: list of column names in the exploded / shredded dataframe that indicate row headers
    :param cols: list of column names in the exploded / shredded dataframe that indicate column headers
    :return: the _is_numeric table; a 1-1 recreation of the original reconstructed table, with boolean values as to
            whether or not each cell is numeric or not as opposed to that cell's value
    """
the _is_numeric table; a 1-1 recreation of the original reconstructed table, with boolean values as to
whether or not each cell is numeric or not as opposed to that cell's value
the _is_numeric table ; a 1 - 1 recreation of the original reconstructed table with boolean values as to whether or not each cell is numeric or not as opposed to that cell ' s value
exploded_df
the exploded form of the dataframe. Must contain the attributes.type field
the exploded form of the dataframe . Must contain the attributes . type field
rows
list of column names in the exploded / shredded dataframe that indicate row headers
list of column names in the exploded / shredded dataframe that indicate row headers
cols
list of column names in the exploded / shredded dataframe that indicate column headers
list of column names in the exploded / shredded dataframe that indicate column headers