sleepless.utils.utils_fig_table_df#
Concatenate and save a list of figure or table.
Functions
|
Create a dataframe from a list of Samples and for a list of attributes, if "age" is in attribute, a new column "ageGroup" is added to the dataframe which assign an ageGroup to the patient. |
|
Create Rst table from pandas.DataFrame. |
|
|
|
- sleepless.utils.utils_fig_table_df.create_df(subset, attributes, bins)[source]#
Create a dataframe from a list of Samples and for a list of attributes, if “age” is in attribute, a new column “ageGroup” is added to the dataframe which assign an ageGroup to the patient.
For the creation of “ageGroup” column bins has to be a list of int which define the different categories of age.
- sleepless.utils.utils_fig_table_df.make_rst_tabulate(name, table, min_column_width=0)[source]#
Create Rst table from pandas.DataFrame.