#!/usr/bin/env python # coding: utf-8 # ## Change CARTO table privacy # # This example illustrates how to change the privacy of a CARTO table. # # _Note: You'll need [CARTO Account](https://carto.com/signup) credentials to reproduce this example._ # In[1]: from cartoframes.auth import set_default_credentials set_default_credentials('creds.json') # In[2]: from cartoframes import update_privacy_table, describe_table update_privacy_table('my_table', 'private') describe_table('my_table')['privacy'] # In[3]: update_privacy_table('my_table', 'public') describe_table('my_table')['privacy']