Skip to main content

try_get_supertype

Function try_get_supertype 

Source
pub fn try_get_supertype(l: &DataType, r: &DataType) -> PolarsResult<DataType>
Expand description

Given two data types, determine the data type that both types can safely be cast to.

Returns a PolarsError::ComputeError if no such data type exists.