featuretools.primitives.IsInGeoBox#
- class featuretools.primitives.IsInGeoBox(point1=(0, 0), point2=(0, 0))[source]#
Determines if coordinates are inside a box defined by two corner coordinate points.
- Description:
Coordinate values should be specified as (latitude, longitude) tuples. This primitive is unable to handle coordinates and boxes at the poles, and near +/- 180 degrees latitude.
- Parameters:
point1 (tuple(float, float)) – The coordinates of the first corner of the box. Defaults to (0, 0).
point2 (tuple(float, float)) – The coordinates of the diagonal corner of the box. Defaults to (0, 0).
Example
>>> is_in_geobox = IsInGeoBox((40.7128, -74.0060), (42.2436, -71.1677)) >>> is_in_geobox([(41.034, -72.254), (39.125, -87.345)]).tolist() [True, False]
Methods
__init__([point1, point2])flatten_nested_input_types(input_types)Flattens nested column schema inputs into a single list.
generate_name(base_feature_names)generate_names(base_feature_names)get_args_string()get_arguments()get_description(input_column_descriptions[, ...])get_filepath(filename)get_function()Attributes
base_ofbase_of_excludecommutativecompatibilityAdditional compatible libraries
default_valueDefault value this feature returns if no data found.
description_templateinput_typeswoodwork.ColumnSchema types of inputs
max_stack_depthnameName of the primitive
number_output_featuresNumber of columns in feature matrix associated with this feature
return_typeColumnSchema type of return
uses_calc_timeuses_full_dataframe