[GRASS-dev] Write array to (point) attribute table
Pietro
peter.zamb at gmail.com
Thu Oct 1 08:59:09 PDT 2015
On Thu, Oct 1, 2015 at 10:01 AM, Michel Wortmann
<wortmann at pik-potsdam.de> wrote:
> Hi Paulo,
> I had the same problem some time ago. I am using pandas for a lot of things
> and discovered the quickest way to append a column to a vector table is
> using pandas' .to_sql dataframe method. Here is my full function for it:
To add a ne column on an existing vector map in pygrass: write:
{{{
if 'column_name' in vect.table.columns:
vect.table.columns.drop('column_name')
vect.table.columns.add('column_name', 'column_type')
}}}
More information about the grass-dev
mailing list