CARTOframes

A Python package for integrating CARTO maps, analysis, and data services into data science workflows.

Quickstart

Introduction

Hi! Glad to see you made it to the Quickstart guide! In this guide you are introduced to how CARTOframes can be used by data scientists in spatial analysis workflows. Using simulated Starbucks revenue data, this guide walks through some common steps a data scientist takes to answer the following question: which stores are performing better than others?

Before you get started, we encourage you to have CARTOframes installed so you can get a feel for the library by using it:

1
pip install --pre cartoframes

For additional ways to install CARTOframes, check out the Installation Guide.

Spatial analysis scenario

Let’s say you are a data scientist working for Starbucks and you want to better understand why some stores in Brooklyn, New York, perform better than others.

To begin, let’s outline a workflow:

  • Get and explore your company’s data
  • Create areas of influence for your stores
  • Enrich your data with demographic data
  • And finally, share the results of your analysis with your team

Let’s get started!

Get and explore your company’s data

Use this dataset to start your exploration. It contains information about the location of Starbucks and each store’s annual revenue.

As a first exploratory step, read it into a Jupyter Notebook using pandas.

1
2
3
4
import pandas as pd

stores_df = pd.read_csv('../files/starbucks_brooklyn.csv')
stores_df.head()
name address revenue
0 Franklin Ave & Eastern Pkwy 341 Eastern Pkwy,Brooklyn, NY 11238 1321040.772
1 607 Brighton Beach Ave 607 Brighton Beach Avenue,Brooklyn, NY 11235 1268080.418
2 65th St & 18th Ave 6423 18th Avenue,Brooklyn, NY 11204 1248133.699
3 Bay Ridge Pkwy & 3rd Ave 7419 3rd Avenue,Brooklyn, NY 11209 1185702.676
4 Caesar's Bay Shopping Center 8973 Bay Parkway,Brooklyn, NY 11214 1148427.411

To display your stores as points on a map, you first have to convert the address column into geometries. This process is called geocoding and CARTO provides a straightforward way to do it (you can learn more about it in the Location Data Services guide).

In order to geocode, you have to set your CARTO credentials. If you aren’t sure about your API key, check the Authentication guide to learn how to get it. In case you want to see the geocoded result, without being logged in, you can get it here.

Note: If you don’t have an account yet, you can get a trial, or a free account if you are a student, by signing up here.

1
2
3
from cartoframes.auth import set_default_credentials

set_default_credentials('creds.json')

Now that your credentials are set, we are ready to geocode the dataframe. The resulting data will be a CartoDataFrame, a dataframe that integrates with CARTO services that extends on the functionality of GeoDataFrames. CARTOframes is built on top of GeoPandas to guarantee compatibility between both libraries, and all GeoDataFrame operations are available.

1
2
3
4
from cartoframes.data.services import Geocoding

stores_cdf, _ = Geocoding().geocode(stores_df, street='address')
stores_cdf.head()
the_geom name address revenue gc_status_rel carto_geocode_hash
0 POINT (-73.95901 40.67109) Franklin Ave & Eastern Pkwy 341 Eastern Pkwy,Brooklyn, NY 11238 1321040.772 0.91 9212e0e908d8c64d07c6a94827322397
1 POINT (-73.96122 40.57796) 607 Brighton Beach Ave 607 Brighton Beach Avenue,Brooklyn, NY 11235 1268080.418 0.97 b1bbfe2893914a350193969a682dc1f5
2 POINT (-73.98976 40.61912) 65th St & 18th Ave 6423 18th Avenue,Brooklyn, NY 11204 1248133.699 0.95 e47cf7b16d6c9b53c63e86a0418add1d
3 POINT (-74.02744 40.63152) Bay Ridge Pkwy & 3rd Ave 7419 3rd Avenue,Brooklyn, NY 11209 1185702.676 0.95 2f21749c02f73116892eb3b6fd5d5738
4 POINT (-74.00098 40.59321) Caesar's Bay Shopping Center 8973 Bay Parkway,Brooklyn, NY 11214 1148427.411 0.95 134c23973313802448365db6235783f9

Done! Now that the stores are geocoded, you will notice a new column named geometry has been added. This column stores the geographic location of each store and it’s used to plot each location on the map.

You can quickly visualize your geocoded dataframe using the Map and Layer classes. Check out the Visualization guide to learn more about the visualization capabilities inside of CARTOframes.

1
2
3
from cartoframes.viz import Map, Layer

Map(Layer(stores_cdf))

Great! You have a map!

With the stores plotted on the map, you now have a better sense about where each one is. To continue your exploration, you want to know which stores earn the most yearly revenue. To do this, you can use the size_continuous_layer visualization layer:

1
2
3
from cartoframes.viz.helpers import size_continuous_layer

Map(size_continuous_layer(stores_cdf, 'revenue', 'Annual Revenue ($)'))

Good job! By using the size continuous visualization layer you can see right away where the stores with higher revenue are. By default, visualization layers also provide a popup with the mapped value and an appropriate legend.

Create your areas of influence

Similar to geocoding, there is a straightforward method for creating isochrones to define areas of influence around each store. Isochrones are concentric polygons that display equally calculated levels over a given surface area measured by time.

For this analysis, let’s create isochrones for each store that cover the area within a 15 minute walk.

To do this you will use the Isolines data service:

1
2
3
4
from cartoframes.data.services import Isolines

isochrones_cdf, _ = Isolines().isochrones(stores_cdf, [15*60], mode='walk')
isochrones_cdf.head()
source_id data_range lower_data_range the_geom range_label
0 0 900 0 MULTIPOLYGON (((-73.95933 40.68012, -73.96074 ... 15 min.
1 1 900 0 MULTIPOLYGON (((-73.96187 40.58632, -73.96288 ... 15 min.
2 2 900 0 MULTIPOLYGON (((-73.99081 40.62694, -73.99169 ... 15 min.
3 3 900 0 MULTIPOLYGON (((-74.02850 40.64063, -74.02881 ... 15 min.
4 4 900 0 MULTIPOLYGON (((-74.00110 40.60186, -74.00249 ... 15 min.
1
2
3
4
5
map = Map([
    Layer(isochrones_cdf),
    Layer(stores_cdf)]
)
map

There they are! To learn more about creating isochrones and isodistances check out the Location Data Services guide.

Note: You will see how to publish a map in the last section. If you already want to publish this map, you can do it by calling map.publish('starbucks_isochrones', password=None).

Enrich your data with demographic data

Now that you have the area of influence calculated for each store, let’s take a look at how to augment the result with population information to help better understand a store’s average revenue per person.

Note: To be able to use the Enrichment functions you need an enterprise CARTO account with Data Observatory 2.0 enabled. Contact your CSM or contact us at sales@carto.com for more information.

First, let’s find the demographic variable we need. We will use the Catalog class that can be filter by country and category. In our case, we have to look for USA demographics datasets. Let’s see which public ones are available.

1
2
3
4
from cartoframes.data.observatory import Catalog

datasets_df = Catalog().country('usa').category('demographics').datasets.to_dataframe()
datasets_df[datasets_df['is_public_data'] == True]
available_in category_id category_name country_id data_source_id description geography_description geography_id geography_name id ... lang name provider_id provider_name slug summary_json temporal_aggregation time_coverage update_frequency version
0 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_b... Census Block Groups (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Block Groups level (20... usa_acs USA American Community Survey acs_sociodemogr_b758e778 {'counts': {'rows': 220333, 'cells': 36354945,... 5yrs [2013-01-01,2018-01-01) None 20132017
8 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at States level (2009) usa_acs USA American Community Survey acs_sociodemogr_97b40c3b {'counts': {'rows': 51, 'cells': 12852, 'null_... yearly [2009-01-01,2010-01-01) None 2009
9 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at States level (2011) usa_acs USA American Community Survey acs_sociodemogr_8074b548 {'counts': {'rows': 52, 'cells': 13104, 'null_... yearly [2011-01-01,2012-01-01) None 2011
10 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at States level (2014) usa_acs USA American Community Survey acs_sociodemogr_f01e41c7 {'counts': {'rows': 52, 'cells': 13208, 'null_... yearly [2014-01-01,2015-01-01) None 2014
11 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at States level (2012) usa_acs USA American Community Survey acs_sociodemogr_197de4f2 {'counts': {'rows': 52, 'cells': 13104, 'null_... yearly [2012-01-01,2013-01-01) None 2012
12 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at States level (2017) usa_acs USA American Community Survey acs_sociodemogr_6917107d {'counts': {'rows': 52, 'cells': 13104, 'null_... yearly [2017-01-01,2018-01-01) None 2017
13 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at States level (2013) usa_acs USA American Community Survey acs_sociodemogr_6e7ad464 {'counts': {'rows': 52, 'cells': 13104, 'null_... yearly [2013-01-01,2014-01-01) None 2013
14 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_b... Census Block Groups (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Block Groups level (20... usa_acs USA American Community Survey acs_sociodemogr_31d9e865 {'counts': {'rows': 220333, 'cells': 36354945,... 5yrs [2009-01-01,2014-01-01) None 20092013
15 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_b... Census Block Groups (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Block Groups level (20... usa_acs USA American Community Survey acs_sociodemogr_69f1cc12 {'counts': {'rows': 220333, 'cells': 36795611,... 5yrs [2010-01-01,2015-01-01) None 20102014
16 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Census Tracts (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Tracts level (2006 - 2... usa_acs USA American Community Survey acs_sociodemogr_d4b2cf03 {'counts': {'rows': 74002, 'cells': 17464472, ... 5yrs [2006-01-01,2011-01-01) None 20062010
18 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at Counties level (2013) usa_acs USA American Community Survey acs_sociodemogr_beb27e5f {'counts': {'rows': 828, 'cells': 208656, 'nul... yearly [2013-01-01,2014-01-01) None 2013
19 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at Counties level (2014) usa_acs USA American Community Survey acs_sociodemogr_20d6ebfc {'counts': {'rows': 828, 'cells': 210312, 'nul... yearly [2014-01-01,2015-01-01) None 2014
20 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at Counties level (2015) usa_acs USA American Community Survey acs_sociodemogr_57d1db6a {'counts': {'rows': 830, 'cells': 205840, 'nul... yearly [2015-01-01,2016-01-01) None 2015
21 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at Counties level (2016) usa_acs USA American Community Survey acs_sociodemogr_ced88ad0 {'counts': {'rows': 831, 'cells': 204426, 'nul... yearly [2016-01-01,2017-01-01) None 2016
22 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at Counties level (2017) usa_acs USA American Community Survey acs_sociodemogr_b9dfba46 {'counts': {'rows': 837, 'cells': 210924, 'nul... yearly [2017-01-01,2018-01-01) None 2017
23 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at Counties level (2018) usa_acs USA American Community Survey acs_sociodemogr_2960a7d7 {'counts': {'rows': 838, 'cells': 211176, 'nul... yearly [2018-01-01,2019-01-01) None 2018
26 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at States level (2006 - 2010) usa_acs USA American Community Survey acs_sociodemogr_1b4fe990 {'counts': {'rows': 52, 'cells': 12272, 'null_... 5yrs [2006-01-01,2011-01-01) None 20062010
27 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at States level (2007 - 2011) usa_acs USA American Community Survey acs_sociodemogr_5128f0b6 {'counts': {'rows': 52, 'cells': 13104, 'null_... 5yrs [2007-01-01,2012-01-01) None 20072011
28 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at States level (2008 - 2012) usa_acs USA American Community Survey acs_sociodemogr_4a7136dd {'counts': {'rows': 52, 'cells': 13104, 'null_... 5yrs [2008-01-01,2013-01-01) None 20082012
29 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at States level (2009 - 2013) usa_acs USA American Community Survey acs_sociodemogr_162ffb {'counts': {'rows': 52, 'cells': 13104, 'null_... 5yrs [2009-01-01,2014-01-01) None 20092013
30 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at States level (2010 - 2014) usa_acs USA American Community Survey acs_sociodemogr_583e0b8c {'counts': {'rows': 52, 'cells': 13208, 'null_... 5yrs [2010-01-01,2015-01-01) None 20102014
31 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at States level (2011 - 2015) usa_acs USA American Community Survey acs_sociodemogr_125912aa {'counts': {'rows': 52, 'cells': 12896, 'null_... 5yrs [2011-01-01,2016-01-01) None 20112015
32 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at States level (2012 - 2016) usa_acs USA American Community Survey acs_sociodemogr_ccf039c0 {'counts': {'rows': 52, 'cells': 12792, 'null_... 5yrs [2012-01-01,2017-01-01) None 20122016
33 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at States level (2013 - 2017) usa_acs USA American Community Survey acs_sociodemogr_869720e6 {'counts': {'rows': 52, 'cells': 13104, 'null_... 5yrs [2013-01-01,2018-01-01) None 20132017
34 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at States level (2007) usa_acs USA American Community Survey acs_sociodemogr_700c213c {'counts': {'rows': 51, 'cells': 12852, 'null_... yearly [2007-01-01,2008-01-01) None 2007
35 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at States level (2008) usa_acs USA American Community Survey acs_sociodemogr_e0b33cad {'counts': {'rows': 51, 'cells': 12852, 'null_... yearly [2008-01-01,2009-01-01) None 2008
36 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at States level (2010) usa_acs USA American Community Survey acs_sociodemogr_f77385de {'counts': {'rows': 52, 'cells': 12844, 'null_... yearly [2010-01-01,2011-01-01) None 2010
37 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at States level (2018) usa_acs USA American Community Survey acs_sociodemogr_f9a80dec {'counts': {'rows': 52, 'cells': 13104, 'null_... yearly [2018-01-01,2019-01-01) None 2018
38 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_z... 5-digit Zip Code Tabluation Areas (2015) - sho... carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at 5-digit Zip Code Tabluation A... usa_acs USA American Community Survey acs_sociodemogr_844c94b6 {'counts': {'rows': 33120, 'cells': 8346240, '... 5yrs [2007-01-01,2012-01-01) None 20072011
39 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_b... Census Block Groups (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Block Groups level (20... usa_acs USA American Community Survey acs_sociodemogr_60e73728 {'counts': {'rows': 220333, 'cells': 36354945,... 5yrs [2007-01-01,2012-01-01) None 20072011
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
43 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Census Tracts (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Tracts level (2007 - 2... usa_acs USA American Community Survey acs_sociodemogr_9ed5d625 {'counts': {'rows': 74001, 'cells': 18648252, ... 5yrs [2007-01-01,2012-01-01) None 20072011
44 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Census Tracts (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Tracts level (2008 - 2... usa_acs USA American Community Survey acs_sociodemogr_858c104e {'counts': {'rows': 74001, 'cells': 18648252, ... 5yrs [2008-01-01,2013-01-01) None 20082012
45 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Census Tracts (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Tracts level (2009 - 2... usa_acs USA American Community Survey acs_sociodemogr_cfeb0968 {'counts': {'rows': 74001, 'cells': 18648252, ... 5yrs [2009-01-01,2014-01-01) None 20092013
46 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Census Tracts (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Tracts level (2010 - 2... usa_acs USA American Community Survey acs_sociodemogr_97c32d1f {'counts': {'rows': 74001, 'cells': 18796254, ... 5yrs [2010-01-01,2015-01-01) None 20102014
47 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Census Tracts (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Tracts level (2011 - 2... usa_acs USA American Community Survey acs_sociodemogr_dda43439 {'counts': {'rows': 74001, 'cells': 18352248, ... 5yrs [2011-01-01,2016-01-01) None 20112015
48 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Census Tracts (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Tracts level (2012 - 2... usa_acs USA American Community Survey acs_sociodemogr_30d1f53 {'counts': {'rows': 74001, 'cells': 17908242, ... 5yrs [2012-01-01,2017-01-01) None 20122016
49 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Census Tracts (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Tracts level (2013 - 2... usa_acs USA American Community Survey acs_sociodemogr_496a0675 {'counts': {'rows': 74001, 'cells': 18648252, ... 5yrs [2013-01-01,2018-01-01) None 20132017
50 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Counties level (2006 - 2010) usa_acs USA American Community Survey acs_sociodemogr_11fe9c96 {'counts': {'rows': 3221, 'cells': 760156, 'nu... 5yrs [2006-01-01,2011-01-01) None 20062010
51 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Counties level (2007 - 2011) usa_acs USA American Community Survey acs_sociodemogr_5b9985b0 {'counts': {'rows': 3221, 'cells': 811692, 'nu... 5yrs [2007-01-01,2012-01-01) None 20072011
52 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Counties level (2008 - 2012) usa_acs USA American Community Survey acs_sociodemogr_40c043db {'counts': {'rows': 3221, 'cells': 811692, 'nu... 5yrs [2008-01-01,2013-01-01) None 20082012
53 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Counties level (2009 - 2013) usa_acs USA American Community Survey acs_sociodemogr_aa75afd {'counts': {'rows': 3221, 'cells': 811692, 'nu... 5yrs [2009-01-01,2014-01-01) None 20092013
54 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Counties level (2010 - 2014) usa_acs USA American Community Survey acs_sociodemogr_528f7e8a {'counts': {'rows': 3220, 'cells': 817880, 'nu... 5yrs [2010-01-01,2015-01-01) None 20102014
55 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Counties level (2011 - 2015) usa_acs USA American Community Survey acs_sociodemogr_18e867ac {'counts': {'rows': 3220, 'cells': 798560, 'nu... 5yrs [2011-01-01,2016-01-01) None 20112015
56 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Counties level (2012 - 2016) usa_acs USA American Community Survey acs_sociodemogr_c6414cc6 {'counts': {'rows': 3220, 'cells': 779240, 'nu... 5yrs [2012-01-01,2017-01-01) None 20122016
57 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Counties level (2013 - 2017) usa_acs USA American Community Survey acs_sociodemogr_8c2655e0 {'counts': {'rows': 3220, 'cells': 811440, 'nu... 5yrs [2013-01-01,2018-01-01) None 20132017
58 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at Counties level (2007) usa_acs USA American Community Survey acs_sociodemogr_a0c48b07 {'counts': {'rows': 788, 'cells': 198576, 'nul... yearly [2007-01-01,2008-01-01) None 2007
59 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at Counties level (2008) usa_acs USA American Community Survey acs_sociodemogr_307b9696 {'counts': {'rows': 790, 'cells': 199080, 'nul... yearly [2008-01-01,2009-01-01) None 2008
60 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at Counties level (2009) usa_acs USA American Community Survey acs_sociodemogr_477ca600 {'counts': {'rows': 792, 'cells': 199584, 'nul... yearly [2009-01-01,2010-01-01) None 2009
61 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at Counties level (2010) usa_acs USA American Community Survey acs_sociodemogr_27bb2fe5 {'counts': {'rows': 818, 'cells': 202046, 'nul... yearly [2010-01-01,2011-01-01) None 2010
62 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at Counties level (2011) usa_acs USA American Community Survey acs_sociodemogr_50bc1f73 {'counts': {'rows': 822, 'cells': 207144, 'nul... yearly [2011-01-01,2012-01-01) None 2011
63 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_c... Counties (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at Counties level (2012) usa_acs USA American Community Survey acs_sociodemogr_c9b54ec9 {'counts': {'rows': 825, 'cells': 207900, 'nul... yearly [2012-01-01,2013-01-01) None 2012
64 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_b... Census Block Groups (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Block Groups level (20... usa_acs USA American Community Survey acs_sociodemogr_2a802e0e {'counts': {'rows': 220334, 'cells': 32829766,... 5yrs [2006-01-01,2011-01-01) None 20062010
65 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at States level (2015) usa_acs USA American Community Survey acs_sociodemogr_87197151 {'counts': {'rows': 52, 'cells': 12896, 'null_... yearly [2015-01-01,2016-01-01) None 2015
66 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_s... States (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 1-yr ACS data at States level (2016) usa_acs USA American Community Survey acs_sociodemogr_1e1020eb {'counts': {'rows': 52, 'cells': 12792, 'null_... yearly [2016-01-01,2017-01-01) None 2016
67 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_z... 5-digit Zip Code Tabluation Areas (2015) - sho... carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at 5-digit Zip Code Tabluation A... usa_acs USA American Community Survey acs_sociodemogr_9f1552dd {'counts': {'rows': 33120, 'cells': 8346240, '... 5yrs [2008-01-01,2013-01-01) None 20082012
68 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_z... 5-digit Zip Code Tabluation Areas (2015) - sho... carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at 5-digit Zip Code Tabluation A... usa_acs USA American Community Survey acs_sociodemogr_d5724bfb {'counts': {'rows': 33120, 'cells': 8346240, '... 5yrs [2009-01-01,2014-01-01) None 20092013
69 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_z... 5-digit Zip Code Tabluation Areas (2015) - sho... carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at 5-digit Zip Code Tabluation A... usa_acs USA American Community Survey acs_sociodemogr_8d5a6f8c {'counts': {'rows': 33120, 'cells': 8412480, '... 5yrs [2010-01-01,2015-01-01) None 20102014
70 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_z... 5-digit Zip Code Tabluation Areas (2015) - sho... carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at 5-digit Zip Code Tabluation A... usa_acs USA American Community Survey acs_sociodemogr_c73d76aa {'counts': {'rows': 33120, 'cells': 8213760, '... 5yrs [2011-01-01,2016-01-01) None 20112015
73 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_z... 5-digit Zip Code Tabluation Areas (2015) - sho... carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at 5-digit Zip Code Tabluation A... usa_acs USA American Community Survey acs_sociodemogr_19945dc0 {'counts': {'rows': 33120, 'cells': 8015040, '... 5yrs [2012-01-01,2017-01-01) None 20122016
74 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_z... 5-digit Zip Code Tabluation Areas (2015) - sho... carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at 5-digit Zip Code Tabluation A... usa_acs USA American Community Survey acs_sociodemogr_53f344e6 {'counts': {'rows': 33120, 'cells': 8346240, '... 5yrs [2013-01-01,2018-01-01) None 20132017

This time, choose the block groups from ACS and check which datasets are available.

1
datasets_df[datasets_df['id'].str.contains('blockgroup') & (datasets_df['provider_id'] == 'usa_acs')]
available_in category_id category_name country_id data_source_id description geography_description geography_id geography_name id ... lang name provider_id provider_name slug summary_json temporal_aggregation time_coverage update_frequency version
0 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_b... Census Block Groups (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Block Groups level (20... usa_acs USA American Community Survey acs_sociodemogr_b758e778 {'counts': {'rows': 220333, 'cells': 36354945,... 5yrs [2013-01-01,2018-01-01) None 20132017
14 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_b... Census Block Groups (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Block Groups level (20... usa_acs USA American Community Survey acs_sociodemogr_31d9e865 {'counts': {'rows': 220333, 'cells': 36354945,... 5yrs [2009-01-01,2014-01-01) None 20092013
15 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_b... Census Block Groups (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Block Groups level (20... usa_acs USA American Community Survey acs_sociodemogr_69f1cc12 {'counts': {'rows': 220333, 'cells': 36795611,... 5yrs [2010-01-01,2015-01-01) None 20102014
39 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_b... Census Block Groups (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Block Groups level (20... usa_acs USA American Community Survey acs_sociodemogr_60e73728 {'counts': {'rows': 220333, 'cells': 36354945,... 5yrs [2007-01-01,2012-01-01) None 20072011
40 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_b... Census Block Groups (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Block Groups level (20... usa_acs USA American Community Survey acs_sociodemogr_7bbef143 {'counts': {'rows': 220333, 'cells': 36354945,... 5yrs [2008-01-01,2013-01-01) None 20082012
41 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_b... Census Block Groups (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Block Groups level (20... usa_acs USA American Community Survey acs_sociodemogr_2396d534 {'counts': {'rows': 220333, 'cells': 36795611,... 5yrs [2011-01-01,2016-01-01) None 20112015
42 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_b... Census Block Groups (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Block Groups level (20... usa_acs USA American Community Survey acs_sociodemogr_fd3ffe5e {'counts': {'rows': 220333, 'cells': 36354945,... 5yrs [2012-01-01,2017-01-01) None 20122016
64 [bq] demographics Demographics usa sociodemographics The American Community Survey (ACS) is an ongo... Shoreline clipped TIGER/Line boundaries. More ... carto-do-public-data.usa_carto.geography_usa_b... Census Block Groups (2015) - shoreline clipped carto-do-public-data.usa_acs.demographics_soci... ... eng 5-yr ACS data at Census Block Groups level (20... usa_acs USA American Community Survey acs_sociodemogr_2a802e0e {'counts': {'rows': 220334, 'cells': 32829766,... 5yrs [2006-01-01,2011-01-01) None 20062010

Nice! Let’s take the first one that has aggregated data from 2013 to 2018 and check which of its variables have data about the total population.

1
2
3
4
5
from cartoframes.data.observatory import Dataset

dataset = Dataset.get('acs_sociodemogr_b758e778')
variables_df = dataset.variables.to_dataframe()
variables_df[variables_df['description'].str.contains('total population', case=False, na=False)]
agg_method column_name dataset_id db_type description id name slug starred summary_json variable_group_id
116 AVG income_per_capita carto-do-public-data.usa_acs.demographics_soci... FLOAT Per Capita Income in the past 12 Months. Per c... carto-do-public-data.usa_acs.demographics_soci... income_per_capita income_per_capi_8a9352e0 None {'head': [10843, 81947, 19377, 12284, 27244, 3... None
131 SUM total_pop carto-do-public-data.usa_acs.demographics_soci... FLOAT Total Population. The total number of all peop... carto-do-public-data.usa_acs.demographics_soci... total_pop total_pop_3cf008b3 None {'head': [283, 721, 421, 720, 472, 220, 387, 1... None

We can see the variable that contains the total population is the one with the slug total_pop_3cf008b3. Now we are ready to enrich our areas of influence with that variable.

1
2
3
4
5
6
7
from cartoframes.data.observatory import Variable
from cartoframes.data.observatory import Enrichment

variable = Variable.get('total_pop_3cf008b3')

isochrones_cdf = Enrichment().enrich_polygons(isochrones_cdf, [variable])
isochrones_cdf.head()
source_id data_range lower_data_range the_geom range_label sum_total_pop
0 0 900 0 MULTIPOLYGON (((-73.95933 40.68012, -73.96074 ... 15 min. 1238.535539
1 1 900 0 MULTIPOLYGON (((-73.96187 40.58632, -73.96288 ... 15 min. 1527.769729
2 2 900 0 MULTIPOLYGON (((-73.99081 40.62694, -73.99169 ... 15 min. 1406.725940
3 3 900 0 MULTIPOLYGON (((-74.02850 40.64063, -74.02881 ... 15 min. 1201.498338
4 4 900 0 MULTIPOLYGON (((-74.00110 40.60186, -74.00249 ... 15 min. 1414.493341

Great! Let’s see the result on a map:

1
2
3
from cartoframes.viz.helpers import color_continuous_layer

Map(color_continuous_layer(isochrones_cdf, 'sum_total_pop', 'Population'))

We can see that the area of influence of the store on the right, is the one with the highest population. Let’s go a bit further and calculate and visualize the average revenue per person.

1
2
stores_cdf['rev_pop'] = stores_cdf['revenue']/isochrones_cdf['sum_total_pop']
Map(size_continuous_layer(stores_cdf, 'rev_pop', 'Revenue per person ($)'))

As we can see, the store in the center is the one that has lower revenue per person. This insight will help us to focus on them in further analyses.

To learn more about discovering the data you want, check out the data discovery guide. To learn more about enriching your data check out the data enrichment guide.

Publish and share your results

The final step in the workflow is to share this interactive map with your colleagues so they can explore the information on their own. Let’s do it!

First, let’s upload the data to CARTO to see how we can visualize CARTO tables and how it helps you to publish your maps. To upload your data, you just need to call to_carto from your CartoDataFrames:

1
2
stores_cdf.to_carto('starbucks_stores', if_exists='replace')
isochrones_cdf.to_carto('starbucks_isochrones', if_exists='replace')

Now, let’s visualize them and add widgets to them so people are able to see some graphs of the information and filter it. To do this, we only have to add widget=True to the visualization layers.

1
2
3
4
5
result_map = Map([
    color_continuous_layer('starbucks_isochrones', 'sum_total_pop', 'Population', stroke_width=0, opacity=0.7),
    size_continuous_layer('starbucks_stores', 'rev_pop', 'Revenue per person ($)', stroke_color='white', widget=True)
])
result_map

Cool! Now that you have a small dashboard to play with, let’s publish it on CARTO so you are able to share it with anyone. To do this, you just need to call the publish method from the Map class:

1
result_map.publish('starbucks_analysis', password=None)
{'id': '63a2cd89-a413-4b20-9cd9-e253cdc875a3',
 'url': 'https://cartoframes.carto.com/kuviz/63a2cd89-a413-4b20-9cd9-e253cdc875a3',
 'name': 'starbucks_analysis',
 'privacy': 'link'}

Conclusion

Congratulations! You have finished this guide and have a sense about how CARTOframes can speed up your workflow. To continue learning, you can check out a specific Guide, the Reference to know everything about a class or a method or check the Examples to see CARTOframes in action.