pygeoda.geoda

class pygeoda.geoda(gda_obj)[source]

A wrapper class of GeoDa class from libgeoda created from ESRI Shapefile

num_obs

The number of observations

Type

int

num_cols

The number of columns

Type

int

field_names

A list of field names

Type

tuple

field_types

A dict of field types

Type

dict

map_type

The map type (Point, Polygon, LineString)

Type

str

__init__(gda_obj)[source]

Constructor of geoda object.

Parameters

gda_obj (Object) – An object / pointer of GeoDa class

Methods

GetFieldNames()

Get the field names of all columns

GetFieldTypes()

Get the field types (integer, real, string) of all columns

GetIntegerCol(col_name)

Get the integer values from a column :param str: the name of selected column

GetMapType()

Get the map type

GetNumCols()

Get the number of columns

GetNumObs()

Get the number of observations

GetRealCol(col_name)

Get the real values from a column :param str: the name of selected column

GetStringCol(col_name)

Get the string values from a column :param str: the name of selected column

GetUndefinedVals(col_name)

Get the undefined flags from a column :param str: the name of selected column

__init__(gda_obj)

Constructor of geoda object.