text_extensions_for_pandas/io/watson/tables.py
def _make_body_cells_df(body_cells_response):
    """
    parses the body_cells portion of the watson response and creates the body_cells dataframe.
    :param body_cells_response: the "body cells" array as returned from the watson response

    :return: the completed body_cells dataframe
    """
    body_cells_df = util.make_dataframe(body_cells_response)
    if not "attributes.type" in body_cells_df.columns.to_list():
        body_cells_df["attributes.type"] = None
        body_cells_df["attributes.text"] = None
    body_cells_df = body_cells_df[
        ["text", "column_index_begin", "column_index_end", "row_index_begin", "row_index_end", "cell_id",
         "column_header_ids", "column_header_texts", "row_header_ids", "row_header_texts",
         "attributes.text", "attributes.type"]]
    return body_cells_df

    parses the body_cells portion of the watson response and creates the body_cells dataframe.
    :param body_cells_response: the "body cells" array as returned from the watson response

    :return: the completed body_cells dataframe
    
parses the body_cells portion of the watson response and creates the body_cells dataframe.
parses the body_cells portion of the watson response and creates the body_cells dataframe .
def _make_body_cells_df(body_cells_response):
    body_cells_df = util.make_dataframe(body_cells_response)
    if not "attributes.type" in body_cells_df.columns.to_list():
        body_cells_df["attributes.type"] = None
        body_cells_df["attributes.text"] = None
    body_cells_df = body_cells_df[
        ["text", "column_index_begin", "column_index_end", "row_index_begin", "row_index_end", "cell_id",
         "column_header_ids", "column_header_texts", "row_header_ids", "row_header_texts",
         "attributes.text", "attributes.type"]]
    return body_cells_df
def _make_body_cells_df ( body_cells_response ) : body_cells_df = util . make_dataframe ( body_cells_response ) if not "attributes.type" in body_cells_df . columns . to_list ( ) : body_cells_df [ "attributes.type" ] = None body_cells_df [ "attributes.text" ] = None body_cells_df = body_cells_df [ [ "text" , "column_index_begin" , "column_index_end" , "row_index_begin" , "row_index_end" , "cell_id" , "column_header_ids" , "column_header_texts" , "row_header_ids" , "row_header_texts" , "attributes.text" , "attributes.type" ] ] return body_cells_df
parses the body_cells portion of the watson response and creates the body_cells dataframe.
parses the body_cells portion of the watson response and creates the body_cells dataframe .
"""
    parses the body_cells portion of the watson response and creates the body_cells dataframe.
    :param body_cells_response: the "body cells" array as returned from the watson response

    :return: the completed body_cells dataframe
    """
the completed body_cells dataframe
the completed body_cells dataframe
body_cells_response
the "body cells" array as returned from the watson response
the " body cells " array as returned from the watson response