Hot answers tagged

5 votes

From Geodataframe to PostGIS

You shouldnt need dtype={'geom': Geometry(geometry_type='GEOMETRY', srid= 4326)}. Try without it and use .to_postgis: import geopandas as gpd from sqlalchemy import create_engine gdf = gpd.read_file(...
BERA's user avatar
  • 67.1k
2 votes

Create multiband raster in Python from X, Y

You're doing a lot of unnecessary looping. You can create your random values in a single array and you don't need a dataframe. import numpy as np import rasterio as rio from rasterio.transform import ...
user2856's user avatar
  • 63.9k
1 vote

Field Calculator If Statement

Adjust your code with the following code block def ifBlock(Parcel_Year_Built, Decade_Grouping): if (Parcel_Year_Built < '1960' and Parcel_Year_Built > '0'): return "59 and ...
foxhq's user avatar
  • 81

Only top scored, non community-wiki answers of a minimum length are eligible