Generate Segmentation Profile Report (Business Analyst)

获得 Business Analyst 许可后可用。

摘要

Creates a report that displays segments of your customers and compares them to the study area (base profile).

使用情况

  • The report displays the count, percent, and index of each segment of customers.

  • The report will calculate the volume information if the Base Profile parameter value contains volume information.

参数

标注说明数据类型
Target Profile

A segmentation profile representing the segments that will be profiled. The target profile typically represents your customer segmentation profile.

File
Base Profile

A segmentation profile representing the base profile segments. This is the segmentation that will be used for comparison. The base profile typically represents your market area segmentation profile.

File
Report Title
(可选)

The title of the report.

String
Output Report Folder
(可选)

The output location where the report will be saved.

Folder
Report Output Formats
(可选)

Specifies the format of the output report.

  • PDF—The report will be in PDF format. This is the default.
  • XLSX—The report will be in XLSX format.
  • HTML—The report will be in HTML format.
  • CSV—The report will be in CSV format.
  • PAGX—The report will be in PAGX format.

String

派生输出

标注说明数据类型
Output Report

The output report file.

File

arcpy.ba.GenerateSegmentationProfileReport(target_profile, base_profile, {report_title}, {report_folder}, {report_format})
名称说明数据类型
target_profile

A segmentation profile representing the segments that will be profiled. The target profile typically represents your customer segmentation profile.

File
base_profile

A segmentation profile representing the base profile segments. This is the segmentation that will be used for comparison. The base profile typically represents your market area segmentation profile.

File
report_title
(可选)

The title of the report.

String
report_folder
(可选)

The output location where the report will be saved.

Folder
report_format
[report_format,...]
(可选)

Specifies the format of the output report.

  • PDF—The report will be in PDF format. This is the default.
  • XLSX—The report will be in XLSX format.
  • HTML—The report will be in HTML format.
  • CSV—The report will be in CSV format.
  • PAGX—The report will be in PAGX format.

String

派生输出

名称说明数据类型
output_report

The output report file.

File

代码示例

GenerateSegmentationProfileReport example (stand-alone script)

The following Python window script demonstrates how to use the GenerateSegmentationProfileReport function.

import arcpy
arcpy.ba.GenerateSegmentationProfileReport(r"C:\Users\MyProject\customerprofile.sgprofile", r"C:\Users\MyProject\MarketAreaprofile.sgprofile", r"C:\Users\MyProject\Reports_Output", "PDF")

许可信息

  • Basic: 需要 Business Analyst
  • Standard: 需要 Business Analyst
  • Advanced: 需要 Business Analyst

相关主题