df_int

This module helps transform pandas.DataFrame to Restructured Text List Table. It allows user to embed code block in the table.

two_point_hospital.df_int.convert_to_codeblock_python(value)[source]

将字符串转化为 CodeBlockPython 对象.

two_point_hospital.df_int.df_to_list_table(df, title='', code_column_and_transform_func=None)[source]

将 DataFrame 转化成 Rst 中的 List Table 对象. :type df: DataFrame :param df: :type title: str :param title: Title :type code_column_and_transform_func: dict :param code_column_and_transform_func: key: column name, value: None,

or a simple text transform function, should take a row as the single argument
Return type:ListTable