Helper function for quickly creating a size category style. Use help(size_category_style)
to get more information.
from cartoframes.auth import set_default_credentials
set_default_credentials('cartoframes')
from cartoframes.viz import Layer, size_category_style
Layer('roads', size_category_style('type'))
Layer(
'roads',
size_category_style(
'type',
cat=['Major Highway', 'Secondary Highway', 'Track', 'Ferry'],
size_range=[5,3,2,1]
)
)