<jupyter_start><jupyter_text>Sources<jupyter_code>from cartoframes.auth import set_default_credentials
from cartoframes.viz import Map, Layer, Source

set_default_credentials('cartovl')

Map(
    Layer(
        Source('populated_places')
    )
)<jupyter_output><empty_output><jupyter_text>Table NameCreate a new `Source` passing the name of your table in CARTO. It's not needed to use the `Source` class to create the source for the layer, it's automatically casted when sent as the first parameter<jupyter_code>Map(
    Layer('populated_places')
)<jupyter_output><empty_output><jupyter_text>SQL Query<jupyter_code>Map(Layer('SELECT * FROM populated_places LIMIT 10'))<jupyter_output><empty_output><jupyter_text>GeoJSON file<jupyter_code>Map(Layer('points.geojson'))<jupyter_output><empty_output><jupyter_text>Dataframe<jupyter_code>import pandas as pd

data = {'latitude': [0, 10, 20, 30], 'longitude': [0, 10, 20, 30]}
df = pd.DataFrame.from_dict(data)

Map(Layer(df))<jupyter_output><empty_output><jupyter_text>Dataframe from CARTO using Dataset<jupyter_code>from cartoframes.data import Dataset

ds = Dataset('populated_places')

df = ds.download(limit=10)

Map(Layer(df))<jupyter_output><empty_output><jupyter_text>Table from CARTO using Dataset<jupyter_code>from cartoframes.data import Dataset

ds = Dataset('populated_places')

Map(Layer(ds))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11304347826086956, 'fraction_numerical': 0.013043478260869565, 'mean_word_length': 8.657342657342657, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '7', 'dir': 'jupyter-structured-clean-dedup', 'id': '372543', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 523, 'n_tokens_neox': 494, 'n_words': 98, 'path': 'examples/02_sources/01_sources.ipynb', 'repo_name': 'CristianPachacama/cartoframes', 'size': '1380'}