Mit der Business Analyst-Lizenz verfügbar.
Zusammenfassung
Summarizes the demographic makeup of the geographies where your customers live. Based on the information in this report, you can get a sense of the demographic makeup of your customer base.
Learn more about how Customer Demographic Profile Report works
Verwendung
The Customer Layer must be a point feature class.
You should only use this report on customer layers that were created with Business Analyst or Address Coder.
Check the Use Selected Features Only check box if you want to examine a subset of customer records.
You can regeocode your file after you make edits to the address records if you want to improve the statistics in the report.
Use the block group layer for the Geography Level parameter. This is the lowest level of geography containing demographic data and will provide the most accurate results.
Syntax
arcpy.ba.CustDemoProfile(CustomerLayer, InputGeographyLevel, OutputDirectoryParameterName, {UseSelectedFeatures}, {TitleParameterName}, {ReportFormats})
Parameter | Erklärung | Datentyp |
CustomerLayer | The point input feature class containing the customer distribution. Typically, this will be a Business Analyst customer layer. | Feature Layer |
InputGeographyLevel | The features containing the demographic variables used to profile your customers. Typically, this should be set to the block group layer. | Feature Layer |
OutputDirectoryParameterName | The output directory that will contain the report. | Folder |
UseSelectedFeatures (optional) | Generates a report on selected features of the customer layer.
| Boolean |
TitleParameterName (optional) | Title for the report. | String |
ReportFormats (optional) | Select the desired report output format
| String |
Codebeispiel
CustDemoProfile example (stand-alone script)
# Name: CustDemoProfile.py
# Description: Summarizes the demographics for customers in the San Francisco market.
# Author: Esri
# Import system modules
import arcview
import arcpy
arcpy.ImportToolbox(r"C:\Program Files (x86)\ArcGIS\Desktop10.8\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
try:
# Acquire extension license
arcpy.CheckOutExtension("Business")
# Define input and output parameters for the Customer Demographic Profile Report tool
Customers = "C:/temp/sf_cust.shp"
GeoLayer = "C:/ArcGIS/Business Analyst/US_2022/Data/Demographic Data/BlockGroups_bg.bds"
OutPath = "C:/temp/Output_Segmentation1"
# Create Customer Demographic Profile Report
arcpy.CustDemoProfile_ba(Customers, GeoLayer, OutPath)
# Release extension license
arcpy.CheckInExtension("Business")
Umgebungen
Dieses Werkzeug verwendet keine Geoverarbeitungsumgebungen.
Lizenzinformationen
- Basic: Erfordert Business Analyst
- Standard: Erfordert Business Analyst
- Advanced: Erfordert Business Analyst