Module pandas_profiling.report.presentation.flavours.widget.preview

Expand source code
from pandas_profiling.report.presentation.core.preview import Preview
from pandas_profiling.report.presentation.flavours.widget.sequence import WidgetSequence


class WidgetPreview(Preview):
    def render(self):
        if self.content["bottom"] is not None:
            items = [self.content["top"], self.content["bottom"]]
        else:
            items = [self.content["top"]]
        return WidgetSequence(items, sequence_type="variable").render()

Classes

class WidgetPreview (top, bottom=None, ignore=False, **kwargs)

Helper class that provides a standard way to create an ABC using inheritance.

Expand source code
class WidgetPreview(Preview):
    def render(self):
        if self.content["bottom"] is not None:
            items = [self.content["top"], self.content["bottom"]]
        else:
            items = [self.content["top"]]
        return WidgetSequence(items, sequence_type="variable").render()

Ancestors

Methods

def render(self)
Expand source code
def render(self):
    if self.content["bottom"] is not None:
        items = [self.content["top"], self.content["bottom"]]
    else:
        items = [self.content["top"]]
    return WidgetSequence(items, sequence_type="variable").render()