find_number

find_number(text)

Pick only number from sentence

Parameters

text: str Text selected to apply transformation

Examples:

sentence="2833047 people are affected by corona now"
find_number(sentence)
    >>> '2833047'