cast method

Series cast(
  1. DType dtype, {
  2. 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});
}