Customer Profiling (Business Analyst)

概要

Profiles demographic attributes of customer data based on a selected demographic or custom data layer.

Learn more about how Customer Profiling works

使用法

構文

CustomerProfiling_ba (CustomerLayer, InputBoundaryLayer, InputGeographyLevel, InputFieldsToProfile, InputProspectingFillingOptions, InputFillingVariance, OutputDMQFilePath, {UseSelectedFeatures})
パラメータ説明データ タイプ
CustomerLayer

The input feature layer containing customer points.

Feature Layer
InputBoundaryLayer

The input feature layer that determines the extent at which the analysis will query and return results from the geography level layer.

Feature Layer
InputGeographyLevel

The input feature class that contains the data to be used in the demographic query.

Feature Layer
InputFieldsToProfile
[InputFieldsToProfile,...]

The selected attributes (commonly demographic data) that will be used to define your profile from the geography level.

Field
InputProspectingFillingOptions

The value ranges for the fields to profile.

  • FLOOR_VALUEThe value range to be profiled will be set at this value or greater.
  • CEILING_VALUEThe value range to be profiled will be set at less than this value.
  • BOTHThe value range to be profiled will be set between the values set here.
String
InputFillingVariance

Sets the percentages by which the filling options will be read, for example, plus or minus 20 percent.

Double
OutputDMQFilePath

The output file that stores the defined parameters (the definition query).

This file is used as an input for the Customer Prospecting By Demographic Data tool.

String
UseSelectedFeatures
(オプション)

Defines which customers are used to generate the customer profile.

  • TRUEGenerates a customer profile on selected customers.
  • FALSEGenerates a customer profile on all customers. This is the default.
Boolean

コード サンプル

CustomerProfiling Example (Stand-alone Script)
# Name: CustomerProfiling.py
# Description: Creates a profile of customers in San Francisco based on current year total households.
# Author: ESRI

# Import system modules
import arcview
import arcpy

arcpy.ImportToolbox("C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
 
try:
# Acquire extension license 
arcpy.CheckOutExtension("Business")
 
# Define the parameters for the Customer Profiling tool
CustPath = "C:/temp/sf_cust.shp"
InputOverlay = "C:/temp/Boundary.shp"
InputGeo = "C:/Program Files/ArcGIS/Desktop10.0/Business Analyst/Data/BDS/esri_bg.bds"
Profile = "TOTHH_CY"
Variance = "20"
OutPath = "C:/temp/DMQ_output.dmq"
 
# Create Customer Profiling output file
arcpy.CustomerProfiling_ba(CustPath, InputOverlay, InputGeo, Profile, "BOTH", Variance, OutPath)
 
# Release extension license
arcpy.CheckInExtension("Business") 
 
except:
  print arcpy.GetMessages(2)

環境

このツールは、ジオプロセシング環境では使用できません

関連項目

ライセンス情報

ArcView: 要 Business Analyst
ArcEditor: 要 Business Analyst
ArcInfo: 要 Business Analyst

10/4/2010