cartoframes.dataset module¶
-
class
cartoframes.dataset.
Dataset
(table_name=None, schema=None, query=None, df=None, gdf=None, state=None, context=None)¶ Bases:
object
-
APPEND
= 'append'¶
-
DEFAULT_RETRY_TIMES
= 3¶
-
FAIL
= 'fail'¶
-
GEOM_TYPE_LINE
= 'line'¶
-
GEOM_TYPE_POINT
= 'point'¶
-
GEOM_TYPE_POLYGON
= 'polygon'¶
-
LINK
= 'link'¶
-
PRIVATE
= 'private'¶
-
PUBLIC
= 'public'¶
-
REPLACE
= 'replace'¶
-
STATE_LOCAL
= 'local'¶
-
STATE_REMOTE
= 'remote'¶
-
compute_geom_type
()¶ Compute the geometry type from the data
-
delete
()¶
-
download
(limit=None, decode_geom=False, retry_times=3)¶
-
exists
()¶ Checks to see if table exists
-
classmethod
from_dataframe
(df)¶
-
classmethod
from_geodataframe
(gdf)¶
-
classmethod
from_geojson
(geojson)¶
-
classmethod
from_query
(query, context=None)¶
-
classmethod
from_table
(table_name, context=None, schema=None)¶
-
get_table_column_names
(exclude=None)¶ Get column names and types from a table
-
get_table_columns
()¶ Get column names and types from a table or query result
-
upload
(with_lnglat=None, if_exists='fail', table_name=None, schema=None, context=None)¶
-
-
cartoframes.dataset.
get_columns
(context, query)¶
-
cartoframes.dataset.
get_query
(dataset)¶
-
cartoframes.dataset.
recursive_read
(context, query, retry_times=3)¶