顧客の人口統計比較レポート(Customer Demographic Comparison Report) (Business Analyst)
サマリ
2 つの顧客ファイルの人口統計プロファイルを比較し、相違点についてレポートを作成します。
使用法
-
レポートの結果は、中央値および平均値を使用して、簡単に記述されます。
構文
CustomerDemographicComparisonReport_ba (CustomerLayer, InputBoundaryLayer, InputGeographyLayer, InputFieldsToProfile, ReportTitle, OutputFolder, UseSelectedCustomers, {UseSecondCustomerLayer}, {SecondCustomerLayer}, {UseSelectedCustomersSelectedLayer}, {ReportStyle}, {ReportFormats})
パラメータ | 説明 | データ タイプ |
CustomerLayer |
分析の対象とする主な顧客レイヤを選択します。 | Feature Layer |
InputBoundaryLayer |
分析する顧客の範囲を定義する境界ファイル。 | Feature Layer |
InputGeographyLayer |
レポートでの比較対象に選択できるデータを含む入力フィーチャ レイヤ。これは、一般的にブロック グループになります。 | Feature Layer |
InputFieldsToProfile [InputFieldsToProfile,...] |
比較する変数を、利用可能な変数のリストから選択します。通常、これらの変数は人口統計変数です。 | Field |
ReportTitle |
レポートの名前を入力します。 | String |
OutputFolder |
ファイルのフォルダ出力パス。 | Folder |
UseSelectedCustomers |
このオプションを選択すると、レポートで顧客レイヤ 1 を同じレイヤの選択したフィーチャと比較します。
| Boolean |
UseSecondCustomerLayer (オプション) |
このオプションを選択すると、レポートで顧客レイヤ 1 をこのレイヤと比較します。
| Boolean |
SecondCustomerLayer (オプション) |
比較レポートに使用される 2 番目の顧客レイヤ。 | Feature Layer |
UseSelectedCustomersSelectedLayer (オプション) |
このオプションを選択すると、レポートで顧客レイヤ 1 を顧客レイヤ 2 の選択したフィーチャと比較します。
| Boolean |
ReportStyle (オプション) |
作成するレポートのレポート スタイル。
| String |
ReportFormats (オプション) |
目的のレポート出力形式を選択します。
| String |
コードのサンプル
CustomerDemographicComparisonReport(顧客人口統計比較レポート)の例(スタンドアロン スクリプト)
# Name: CustomerDemographicComparisonReport.py
# Description: Compares the current year total population and future year total population on selected customers from the San Francisco customer layer against the balance of that customer layer.
# Author: Esri
# Import system modules
import arcview
import arcpy
arcpy.ImportToolbox("C:\Program Files (x86)\ArcGIS\Desktop10.2\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
try:
# Acquire extension license
arcpy.CheckOutExtension("Business")
# Define input and output parameters for the Customer Demographic Comparison Report tool
Cust1 = "C:/My Output Data/Projects/Default Project/CustLayers/sf_custs/CustomerLayer1.shp"
Extent = "C:/My Output Data/Projects/Default Project/TradeAreas/Customer_Derived_TradeAreas.shp"
Geog = "C:/ArcGIS/Business Analyst/US_2013/Data/BDS/esri_bg.bds"
Vars = "TOTPOP_CY;TOTPOP_FY"
ReportName = "Customer_Demo_Report"
ReportDir = "C:/My Output Data/Projects/Default Project/Reports/Customer Demographic Comparison Report"
# Create the Customer Demographic Comparison Report
arcpy.CustomerDemographicComparisonReport_ba(sCust, false, true, "#", sExtent, sGeog, sVars, sReportName, sReportDir)
# Release extension license
arcpy.CheckInExtension("Business")
except:
print arcpy.GetMessages(2)
環境
このツールはジオプロセシング環境を使用していません
関連トピック
ライセンス情報
ArcGIS for Desktop Basic: 次のものが必要 Business Analyst
ArcGIS for Desktop Standard: 次のものが必要 Business Analyst
ArcGIS for Desktop Advanced: 次のものが必要 Business Analyst
5/20/2014