获得 Business Analyst 许可后可用。
描述
Displays characteristics from the consumer survey data for your target profile to determine customer lifestyle habits and preferences.
使用方法
Generates a report for all the characteristics from the selected Survey Category parameter value.
The generated report is based on the Target Profile input compared to a base profile.
Reports can be sorted using the Sort Column parameter's Expected Number or Index options. Expected Number is based on counts—for example, number of adults—while Index is based on a rank.
语法
GenerateSurveyReportForProfile(target_profile, base_profile, survey_category, report_folder, {sort_column}, {sort_order}, {report_title}, {report_format})
参数 | 说明 | 数据类型 |
target_profile | A segmentation profile representing the segments to be analyzed. The target profile usually represents your customer segmentation profile. | File |
base_profile | A segmentation profile representing the base profile segments. This is the segmentation used for comparison. The base profile usually represents your market area segmentation profile. | File |
survey_category | A category that contains characteristics from the consumer survey. | String |
report_folder | The output location where the report will be saved. | Folder |
sort_column (可选) | Specifies the column to use to sort the report.
| String |
sort_order (可选) | Specifies the order of the report, based on the sort column, in ascending or descending order.
| String |
report_title (可选) | The title of the report. | String |
report_format [report_format,...] (可选) | The report output format. The default value is PDF. Additional available formats are XLSX, HTML, CSV, and PAGX. | String |
派生输出
名称 | 说明 | 数据类型 |
output_report | The output report file. | File |
代码示例
The following stand-alone script demonstrates how to use the GenerateSurveyReportForProfile function.
import arcpy
arcpy.ba.GenerateSurveyReportForProfile(r"C:\Users\MyProject\customerprofile.sgprofile", r"C:\Users\MyProject\MarketAreaprofile.sgprofile", "Automobiles and Automotive Products", r"C:\Users\MyProject\Reports_Output", "EXPECTED_NUMBER", "DESCENDING", "Auto Survey Profile Report", "PDF")
许可信息
- Basic: 需要 Business Analyst
- Standard: 需要 Business Analyst
- Advanced: 需要 Business Analyst