code: def generate_table(self, dataframe, max_rows):
      return html.Table(
          [
              html.Thead(
                  html.Tr([html.Th(col) for col in dataframe.columns])
              ),
              html.Tbody(
                  [
                      html.Tr(
                          [
                              html.Td(dataframe.iloc[i][col])
                              for col in dataframe.columns
                          ]
                      )
                      for i in range(min(len(dataframe), max_rows))
                  ]
              ),
          ]
      )
  
imports: from imports import *
label_desc: Use image node_id 3 for calling the draw_dataframe obj's underlying member method code with example usage: obj.generate_table(dataframe, max_rows) and returns: html