woodwork.logical_types.LatLong#
- class woodwork.logical_types.LatLong[source]#
Represents Logical Types that contain latitude and longitude values in decimal degrees.
Note
LatLong values will be stored with the object dtype as a tuple of floats and must contain only two values.
Null latitude or longitude values will be stored as np.nan, and a fully null LatLong (np.nan, np.nan) will be stored as just a single nan.
Examples
[(33.670914, -117.841501), (40.423599, -86.921162), (-45.031705, nan)]
- __init__()#
Methods
__init__
()transform
(series[, null_invalid_values])Formats a series to be a tuple of two floats.
validate
(series[, return_invalid_values])Validates that a logical type is consistent with the series dtype.
Attributes
primary_dtype
standard_tags
type_string