Skip to main content
Used to create a Graph view in which rows/nodes are placed geographically, rather than according to their (non-geographical) similarity.

Usage

The following example shows how the step can be used in a recipe.

Examples

  • Example 1
  • Signature
The following configuration transforms geographical coordinates into x and y points in the graph:
layout_coordinates(ds.latitude, ds.longitude) -> (ds.x, ds.y)

Inputs & Outputs

The following are the inputs expected by the step and the outputs it produces. These are generally columns (ds.first_name), datasets (ds or ds[["first_name", "last_name"]]) or models (referenced by name e.g. "churn-clf").
latitude
column[number]
required
Numerical column with the latitude value.
longitude
column[number]
required
Numerical column with the longitude value.
x
column
required
Numerical column with the x position in the graph.
y
column
required
Numerical column with the y position in the graph.

Configuration

The following parameters can be used to configure the behaviour of the step by including them in a json object as the last “input” to the step, i.e. step(..., {"param": "value", ...}) -> (output).

Parameters

method
string
default:"webmercator"
A method to use to convert the coordinates to x, y positions.Values must be one of the following:
  • webmercator
  • spherical
  • wgs84
I