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 (or a list of floats for Koalas DataFrames) 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)Formats a series to be a tuple (or list for Koalas) of two floats.
validate
(series[, return_invalid_values])Attributes
backup_dtype
primary_dtype
standard_tags
type_string