featuretools.primitives.IsInGeoBox#

class featuretools.primitives.IsInGeoBox(point1=(0, 0), point2=(0, 0))[source]#

确定坐标是否在由两个角点定义的矩形框内.

描述:

坐标值应指定为(纬度,经度)元组.此原语无法处理位于极点附近以及纬度接近 +/- 180 度的坐标和矩形框.

Parameters:
  • point1 (tuple(float, float)) – 矩形框第一个角点的坐标.默认为 (0, 0).

  • point2 (tuple(float, float)) – 矩形框对角线角点的坐标.默认为 (0, 0).

Examples

>>> 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]
__init__(point1=(0, 0), point2=(0, 0))[source]#

Methods

__init__([point1, point2])

flatten_nested_input_types(input_types)

将嵌套的列模式输入展平成一个列表.

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_of

base_of_exclude

commutative

default_value

Default value this feature returns if no data found.

description_template

input_types

woodwork.ColumnSchema types of inputs

max_stack_depth

name

Name of the primitive

number_output_features

Number of columns in feature matrix associated with this feature

return_type

ColumnSchema type of return

stack_on

stack_on_exclude

stack_on_self

uses_calc_time

uses_full_dataframe