pypeliner.utils.string_utils

String utils module contains utility functions to manipulate strings.

Functions

convert_string_to_number(→ Union[int, float, str])

A function to convert an str typed number to a number, if the passed string

Module Contents

pypeliner.utils.string_utils.convert_string_to_number(string: str) int | float | str

A function to convert an str typed number to a number, if the passed string is a text and not a number, then the same string is returned. Args:

string: the number in a string form

Returns:

A number (int or a float).