human
applying regex to a pandas dataframe
assistant
Here is some code to update row values for a column `Season` using vectorized string operation in pandas

df['Season'].str.split('-').str[0].astype(int)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.