alteryx / alteryx/featuretools

Use partial schema init in EntitySet.normalize_dataframe

オープン
#1,646 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。