You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: woodwork/logical_types.py
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,8 @@ class Address(LogicalType):
74
74
75
75
76
76
classAge(LogicalType):
77
-
"""Represents Logical Types that contain non-negative numbers indicating a person's age. Has 'numeric' as a standard tag.
77
+
"""Represents Logical Types that contain whole numbers indicating a person's age.
78
+
Has 'numeric' as a standard tag.
78
79
79
80
Examples:
80
81
.. code-block:: python
@@ -86,8 +87,23 @@ class Age(LogicalType):
86
87
standard_tags= {'numeric'}
87
88
88
89
90
+
classAgeFractional(LogicalType):
91
+
"""Represents Logical Types that contain non-negative floating point numbers indicating a person's age.
92
+
Has 'numeric' as a standard tag. May also contain null values.
93
+
94
+
Examples:
95
+
.. code-block:: python
96
+
97
+
[0.34, 24.34, 45.0]
98
+
[30.5, 62.82, np.nan]
99
+
"""
100
+
primary_dtype='float64'
101
+
standard_tags= {'numeric'}
102
+
103
+
89
104
classAgeNullable(LogicalType):
90
-
"""Represents Logical Types that contain non-negative numbers indicating a person's age. Has 'numeric' as a standard tag. May also contain null values.
105
+
"""Represents Logical Types that contain whole numbers indicating a person's age.
106
+
Has 'numeric' as a standard tag. May also contain null values.
0 commit comments