str.endswith
True when source ends with str.
str.endswith(source: string, str: string) -> bool
Parameters
sourcestring: The text to look at; na gives false.strstring: The text to look for. na gives false.
Example
str.endswith(timeframe.period, "m")