获得 Business Analyst 许可后可用。
描述
Creates a segmentation profile with an existing customer layer.
使用方法
-
The Customer Layer parameter value must be a point feature class.
A customer profile is a summary of segments that have been assigned to a point.
Each point is assigned to a standard geography that contain households or population counts for each segment, depending on the segmentation system you are using.
Each geography can contain households or population belonging to one or more segments. As a result, each point can be assigned to more than one segment.
The segment count for each point is based on the number of segments and count for each point. If there is a single segment, the count will be one for each point. However, if there are multiple segments, the count for each segment will be proportionally calculated.
语法
GenerateCustomerProfile(in_customers_layer, in_segmentation_base, out_profile, {in_volume_field})
参数 | 说明 | 数据类型 |
in_customers_layer | The input point feature class that represents existing customers. | Feature Layer |
in_segmentation_base | The segmentation base for the profile being created. Available options are provided by the segmentation dataset in use. | String |
out_profile | The name of the segmentation profile file to be created. | File |
in_volume_field (可选) | The field containing volume information from which the profile can optionally be created. For example, you can create a profile using the sales for each customer. | Field |
代码示例
The following Python window script demonstrates how to use the GenerateCustomerProfile tool.
import arcpy
arcpy.ba.GenerateCustomerProfile(r"C:\Project1.gdb\Customers", "Total Adult Population", "\Documents\ArcGIS\Projects\Project1.gdb\CustomerSegmentation")
许可信息
- Basic: 需要 Business Analyst
- Standard: 需要 Business Analyst
- Advanced: 需要 Business Analyst