vuba.take_first

vuba.take_first(it)[source]

Retrieve the first value from an iterable object.

Parameters

it (iterable) – Iterable object to retrieve the first value from.

Returns

first – First value from the iterable object. Will be None if StopIteration is raised.

Return type

number or string or ndarray or None