def __init__(self, *args, **kwargs):
        super(Visualization, self).__init__(*args, **kwargs)

        for attrib in ('data', 'scales'):
            if not getattr(self, attrib):
                setattr(self, attrib, KeyedList(attr_name='name'))

        for attrib in ('axes', 'marks'):
            if not getattr(self, attrib):
                setattr(self, attrib, KeyedList(attr_name='type'))

        # Legends don't get keyed.
        if not self.legends:
            self.legends = []
Check value is valid for scalar op
dataset/ETHPy150Open wrobstory/vincent/vincent/visualization.py/Visualization.__init__--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index._assert_can_do_op