def to_datetime(self, format):
    if (format is None):
        raise ValueError('Format must be provided')
    return self._construct_result(self._column.to_datetime(format))
def to_datetime(self, format):
    if (format is None):
        raise ValueError('Format must be provided')
    return self._construct_result(self._column.to_datetime(format))