It’s with a lot of pride that we’re releasing CARTOframes, a Python package for interacting with CARTO that’s built specifically with data scientists in mind.
CARTOframes allows data scientists to extract the power of CARTO without leaving their Python environment. It also speaks the language of some of the de facto standards of the data science community: Jupyter notebooks, pandas, matplotlib, and SQL/PostGIS. Because of this, CARTOframes easily ties in with the wider Python ecosystem.
We had the following goals in mind when creating CARTOframes:
Read from a CARTO dataset (or arbitrary query) into a pandas DataFrame
For any table in your CARTO account (or any SQL query), read it into a pandas DataFrame. This allows you to pull your CARTO dataset or query into the Python environment for analysis outside CARTO.
Send a DataFrame to CARTO as a table
This operation allows you to create a new table from a DataFrame.
Create interactive or static maps. If the map is interactive, you get an interactive map like you would see in Builder. For a static map, you get a map returned as a matplotlib image.
Interact with the Data Observatory
Search the Data Observatory for measures of interest and then get an augmented version of that dataset with the new measures.
pip install cartoframes
Of course this is just the beginning. Watch this space for more to come out of CARTOframes :)
Please fill out the below form and we'll be in touch real soon.