This example illustrates how to upload local data to a CARTO account.
Note: You'll need CARTO Account credentials to reproduce this example.
In [1]:
from cartoframes.auth import set_default_credentials
set_default_credentials('creds.json')
In [2]:
from geopandas import read_file
gdf = read_file('http://libs.cartocdn.com/cartoframes/files/sustainable_palm_oil_production_mills.geojson')
gdf.head()
Out[2]:
In [3]:
from cartoframes import to_carto
to_carto(gdf, 'sustainable_palm_oil_production_mills', if_exists='replace')