alteryx / alteryx/woodwork

Add UUID LogicalType

オープン
#1,384 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
new feature
主要言語
Python
スター
155
フォーク
24
PR マージ指標
30日以内にマージされた PR はありません

説明

It would be nice to have a `UUID` logical type that could be used for columns containing UUID data. Currently if a user creates a column that contains UUID objects and initializes Woodwork on this column, the UUID data will be converted to a `string` dtype. If this new type is added, we would need to determine whether to continue to store the data as UUID objects or whether to convert these to strings as we do today, but it might be preferable to store these as UUID objects.

Current behavior:
```python
>>> import uuid
>>> import pandas as pd
>>> import woodwork as ww

>>> df = pd.DataFrame({"id": [uuid.uuid4() for _ in range(10)], "vals": range(10)})
>>> df.dtypes
id object
vals int64
dtype: object
>>> type(df['id'][0])

>>> df.ww.init()
>>> df.dtypes
id string
vals int64
dtype: object
>>> type(df['id'][0])

```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。