alteryx / alteryx/featuretools

Use partial schema init in EntitySet.normalize_dataframe

未关闭
#1,646 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
7.7k
派生
915
PR 合并指标
30 天内没有已合并 PR

描述

In normalize DataFrame, we compile all of the woodwork types that we want to transfer to the new DataFrame in a `transfer_types` dictionary, and then we separate them all out into the input parameters for woodwork init.

It should be possible to only specify the table-wide parameters for Woodwork init and pass the transfer types in as a partial schema. We'd have to be careful to not pull in table-attributes from the TableSchema, but it could look something like this:

```python
new_dataframe.ww.init(schema=dataframe.ww._schema._get_subset_schema(transfer_types.keys()), name=new_dataframe_name, index=index,
already_sorted=already_sorted,
time_index=new_dataframe_time_index)
```

We'd just need to make sure that any changes that happen to the types in `transfer_types` still get made. The behavior of normalize_dataframe shouldn't change at all.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。