Good evening, colleagues! I have two series (is_goal, shot_outcome) in the data set with data of type float and the third series (rate), which should contain the result of division of two series. Tell me, please, how can this be implemented? enter image description here

  • You can put your data in text form - for example, output from print(df.head()) or even better: print(df.to_dict('r')) ? And what do you want to divide into what? - MaxU

1 answer 1

Looks like you need:

 df['rate'] = df['is_goal'] / df['shot_outcome'] 
  • MaxU, thank you, you are right as always!) I just had to divide these two series - Denis Novik