In [1]:
from cartoframes.auth import set_default_credentials
from cartoframes.viz import Layer, color_bins_style, default_popup_element
set_default_credentials('cartoframes')
In [2]:
Layer(
'eng_wales_pop',
color_bins_style('pop_sq_km'),
popup_hover=[
default_popup_element(title='Population per square km', format=',.3r')
]
)
Out[2]: