Skip to main content

custom_format

custom_format(
    x: Any,
) ‑> str
Custom formatting function for various data types. This function formats datetime, timedelta, and floating-point numbers into human-readable strings. Parameters:
NameTypeDefaultDescription
xtp.Any--The input value to format. Can be a datetime, timedelta, float, or any other type.
Returns:
TypeDescription
strA formatted string representation of the input value.