scistag.imagestag.pandas_renderer.PandasRenderer¶
- class PandasRenderer(df, framework=ImsFramework.PIL, show_index=False, width=None, style='blue_light', font_size='medium', font_family='Century Gothic, sans-serif', text_align='left')[source]¶
Bases:
objectHelper class to convert a Pandas dataframe to an image
Initializer :type df: pd.DataFrame :param df: The dataframe :param framework: The rendering framework. PIL by default. :type show_index: bool :param show_index: Shall the index be shown? :type width: str | None :param width: The base width. Automatic width by default :param style: The display style. See https://github.com/sbi-rviot/ph_table :param font_size: The font’s size :param font_family: The font family :param text_align: The horizontal text alignment of. left, center, right
Methods
Renders the table to an image :type html_options: dict | None :param html_options: The advanced options for a HTML renderer.
Attributes
__dict____doc____module____weakref__list of weak references to the object (if defined)