Intake driver for Civis platform
intake-civis is published on PyPI.
You can install it by running the following in your terminal:
pip install intake-civis
You can specify Civis schemas and tables using a YAML intake catalog:
sources: # An entry representing a catalog for an entire schema. postgres: driver: "civis_cat" args: database: "City of Los Angeles - Postgres" schema: "transporatation" # An entry representing a single table bike_trips: driver: "civis" args: database: "City of Los Angeles - Postgres" table: "transportation.bike_trips"
For more examples, see this demo notebook.
Both Redshift and Postgres support geospatial values.
We can tell the source to read in a table/query as a GeoDataFrame
by passing in a string or list of strings in the
You can also pass in a GeoPandas-compatible
crs argument to set the
coordinate reference system for the GeoDataFrame.
When more than one column is provided, the primary
geometry column for the GeoDataFrame is assumed to be the first in the list.
CivisCatalog object attempts to automatically determine the geometry columns
and coordinate reference systems from the database table metadata.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size intake_civis-0.1.0-py3-none-any.whl (9.5 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size intake-civis-0.1.0.tar.gz (8.7 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for intake_civis-0.1.0-py3-none-any.whl