:py:mod:`mlair.helpers.tables` ============================== .. py:module:: mlair.helpers.tables Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: mlair.helpers.tables.create_column_format_for_tex mlair.helpers.tables.save_to_tex mlair.helpers.tables.save_to_md .. py:function:: create_column_format_for_tex(df: pandas.DataFrame) -> str Creates column format for latex table based on the shape of a given DataFrame. Calculates number of columns and uses 'c' as column position. First element is set to 'l', last to 'r' .. py:function:: save_to_tex(path, filename, column_format, df, na_rep='---') .. py:function:: save_to_md(path, filename, df, mode='w', encoding='utf-8', tablefmt='github')