I have a string like this:
mystring="Clusterd695c_ROUGE1.csv"
When I use mystring.rstrip("_ROUGE1.csv"), I expect to return "Clusterd695c", but I get "Clusterd695". As if the last character "c" has not been seen.This only happens for character "c" and the other characters works true. Like this:
mystring="Clusterd695f_ROUGE1.csv"
mystring.rstrip("_ROUGE1.csv")
Then I get "Clusterd695f", that was expecting.
How can I correct this?