alteryx / alteryx/woodwork

Add UUID LogicalType

Đang mở
#1,384 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
new feature
Ngôn ngữ chính
Python
Star
155
Fork
24
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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])

```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.