<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_table_from_dataframe( self, dataframe, table_name="", primary_key=None, add_primary_key_column=False, index_attrs=None, ):
 """ Create a table from a pandas.DataFrame instance. :param pandas.DataFrame dataframe: DataFrame instance to convert. :param str table_name: Table name to create. :param str primary_key: |primary_key| :param tuple index_attrs: |index_attrs| :Examples: :ref:`example-create-table-from-df` """


        self.__create_table_from_tabledata(
            TableData.from_dataframe(dataframe=dataframe, table_name=table_name),
            primary_key,
            add_primary_key_column,
            index_attrs,
        )