reVeal.grid.run_normalization#

run_normalization(df, attribute, normalize_method, invert)[source]#

Execute a single characterization on an input grid.

Parameters:
  • df (geopandas.GeoDataFrame) – Input grid geodataframe

  • attribute (str) – Name of column in input GeoDataFrame to normalize

  • normalize_method (str) – Method to use for normalizing attribute.

  • invert (bool,optional) – If True, normalize with values inverted (i.e., low values will be closer to 1, and higher values closer to 0). Default is False, under which values are normalized with low values closer to 0 and high values closer to 1.

Returns:

pandas.DataFrame – Returns a pandas DataFrame with a “value” column, representing the output normalized values for the specified attribute. The index from the input df is also included.