cast method
- DType dtype, {
- bool strict = true,
Implementation
Series cast(DType dtype, {bool strict = true}) {
if (!dtype.capabilities.cast) {
throw ArgumentError.value(dtype, 'dtype', 'does not support casts');
}
return _input('seriesCast', {'dtype': dtype.toJson(), 'strict': strict});
}