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]
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_ofbase_of_excludecommutativedefault_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
stack_onstack_on_excludestack_on_selfuses_calc_timeuses_full_dataframe