In [1]:
from cartoframes.auth import set_default_credentials
set_default_credentials('cartoframes')
In [2]:
from cartoframes.viz import Layer, size_category_style
Layer('roads', size_category_style('type'))
Out[2]:
In [3]:
Layer(
'roads',
size_category_style(
'type',
cat=['Major Highway', 'Secondary Highway', 'Track', 'Ferry'],
size_range=[5,3,2,1]
)
)
Out[3]: