{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Read data from a CARTO Table\n", "\n", "This example illustrates how to read data from a CARTO table.\n", "\n", "> 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')`\n", "\n", "_Note: You'll need [CARTO Account](https://carto.com/signup) credentials to reproduce this example._" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from cartoframes.auth import set_default_credentials\n", "\n", "set_default_credentials('cartoframes')" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | cartodb_id | \n", "the_geom | \n", "field_1 | \n", "name | \n", "address | \n", "revenue | \n", "
---|---|---|---|---|---|---|
0 | \n", "1 | \n", "POINT (-73.95901 40.67109) | \n", "0 | \n", "Franklin Ave & Eastern Pkwy | \n", "341 Eastern Pkwy,Brooklyn, NY 11238 | \n", "1321040.772 | \n", "
1 | \n", "2 | \n", "POINT (-73.96122 40.57796) | \n", "1 | \n", "607 Brighton Beach Ave | \n", "607 Brighton Beach Avenue,Brooklyn, NY 11235 | \n", "1268080.418 | \n", "
2 | \n", "3 | \n", "POINT (-73.98976 40.61912) | \n", "2 | \n", "65th St & 18th Ave | \n", "6423 18th Avenue,Brooklyn, NY 11204 | \n", "1248133.699 | \n", "
3 | \n", "4 | \n", "POINT (-74.02744 40.63152) | \n", "3 | \n", "Bay Ridge Pkwy & 3rd Ave | \n", "7419 3rd Avenue,Brooklyn, NY 11209 | \n", "1185702.676 | \n", "
4 | \n", "5 | \n", "POINT (-74.00098 40.59321) | \n", "4 | \n", "Caesar's Bay Shopping Center | \n", "8973 Bay Parkway,Brooklyn, NY 11214 | \n", "1148427.411 | \n", "