I get the following error when writing a geopandas dataframe to PostGIS in a loop operation (the full code is included at the end)
psycopg2.errors.InvalidParame