PANDAS CLIMING DATAFRAME REGEX

df.historical_rank = df.historical_rank.str.replace(r"^(\d{1,4})\s|.+", r'\1')
Bram Van Laere