MODE - Amazon Glue DataBrew
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

MODE

返回新列中选定源列的模式,即最常出现的数字。忽略任何非数字。对于多种模式,使用模态函数计算模式。

Parameters
  • sourceColumns— 一个 JSON 编码的字符串,表示现有列的列表。

  • targetColumn— 新创建的列的名称。

例 Example

{ "RecipeAction": { "Operation": "MODE", "Parameters": { "modeType": "MINIMUM", "sourceColumns": "[\"years_in_service\",\"age\"]", "targetColumn": "MODE Column 1" } } }