This example illustrates how to load data from a GeoPandas dataset with a CRS different than EPSG:4326
, the one that CARTOframes needs to visualize layers, and the one CARTO needs to upload data.
from cartoframes.viz import Layer
from geopandas import datasets, read_file
gdf = read_file(datasets.get_path('nybb'))
str(gdf.crs)
'epsg:2263'
gdf.to_crs(epsg=4326, inplace=True)
Layer(gdf)