alteryx / alteryx/woodwork

Infer column as Age/AgeNullable if the column name is Age

未关闭
#875 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
new feature
主要语言
Python
星标
155
派生
24
PR 合并指标
30 天内没有已合并 PR

描述

- As a user, I wish I could use Woodwork would infer my column Logical Type as Age/AgeNullable if column name is Age (`Age`, `age`, `AGE`).

#### Code Example

```python
import pandas as pd
import woodwork as ww

df = pd.DataFrame(data={'age': [1, 2, 3], 'AGE': [3, 4, np.nan]})
df.ww.init()

assert df.ww['age'].logical_type == ww.logical_types.Age
assert df.ww['AGE'].logical_type == ww.logical_types.AgeNullable

```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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