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