Module pandas_profiling.report.presentation.flavours.qt.variable
Expand source code
from pandas_profiling.report.presentation.core import Variable
from pandas_profiling.report.presentation.flavours.qt.sequence import QtSequence
class QtVariable(Variable):
def render(self):
if self.content["bottom"] is not None:
items = [self.content["top"], self.content["bottom"]]
else:
items = [self.content["top"]]
return QtSequence(items, sequence_type="list").render()
Classes
class QtVariable (top, bottom=None, ignore=False, **kwargs)
-
Helper class that provides a standard way to create an ABC using inheritance.
Expand source code
class QtVariable(Variable): def render(self): if self.content["bottom"] is not None: items = [self.content["top"], self.content["bottom"]] else: items = [self.content["top"]] return QtSequence(items, sequence_type="list").render()
Ancestors
- Variable
- ItemRenderer
- Renderable
- abc.ABC
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 QtSequence(items, sequence_type="list").render()