woodwork.table_accessor.WoodworkTableAccessor.select#

WoodworkTableAccessor.select(include=None, exclude=None, return_schema=False)[源]#

创建一个已初始化 Woodwork 类型信息的 DataFrame,该 DataFrame 只包含其 Logical Type 和 semantic tags 符合 includeexclude 列表中指定条件的列。在单个调用中不能同时提供 includeexclude 的值。

如果没有找到匹配的列,将返回一个空的 DataFrame。

参数:
  • include (strLogicalTypelist[strLogicalType]) – 要包含在 DataFrame 中的 Logical types、semantic tags。

  • exclude (strLogicalTypelist[strLogicalType]) – 要从 DataFrame 中排除的 Logical types、semantic tags。

  • return_schema (bool) – 如果为 True,则仅返回匹配列的 schema。默认为 False

返回:

原始 DataFrame 中与 includeexclude 指定条件匹配的子集。已初始化 Woodwork 类型信息。

返回类型:

DataFrame