Module pandas_profiling.report.presentation.flavours.widget.variable

Expand source code
from ipywidgets import widgets

from pandas_profiling.report.presentation.core import Variable


class WidgetVariable(Variable):
    def render(self):
        # TODO: use `ignore` param
        items = [self.content["top"].render()]
        if self.content["bottom"] is not None:
            items.append(self.content["bottom"].render())

        return widgets.VBox(items)

Classes

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

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

Expand source code
class WidgetVariable(Variable):
    def render(self):
        # TODO: use `ignore` param
        items = [self.content["top"].render()]
        if self.content["bottom"] is not None:
            items.append(self.content["bottom"].render())

        return widgets.VBox(items)

Ancestors

Methods

def render(self)
Expand source code
def render(self):
    # TODO: use `ignore` param
    items = [self.content["top"].render()]
    if self.content["bottom"] is not None:
        items.append(self.content["bottom"].render())

    return widgets.VBox(items)