#!/usr/bin/env python # coding: utf-8 # ## Read data from a CARTO Table # # This example illustrates how to read data from a CARTO table. # # > Use this when you need to see or modify the data locally. If you only need to visualize the data, just use the name of the dataset in the Layer: `Layer('dataset_name')` # # _Note: You'll need [CARTO Account](https://carto.com/signup) credentials to reproduce this example._ # In[1]: from cartoframes.auth import set_default_credentials set_default_credentials('cartoframes') # In[2]: from cartoframes import read_carto gdf = read_carto('starbucks_brooklyn') gdf.head() # In[3]: from cartoframes.viz import Layer Layer(gdf)