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.