semantique.processor.types.get_value_type#
- semantique.processor.types.get_value_type(x)[source]#
Determine the value type of an object.
A semantique value type describes what kind of data an array contains. It differs from the very technical, computer-oriented numpy dtype categorization, which contains e.g.
int
,float
, etc. Instead, the semantique value type describes data on a more general, statistical level. Currently it makes a distinction between five main value types:continuous
anddiscrete
for quantitative data andnominal
,ordinal
andbinary
for qualitative data. Additional value types exist for spatio-temporal data:datetime
for timestamps,coords
for spatial coordinate tuples, andgeometry
for spatial geometries stored ingeopandas.GeoDataFrame
objects.