0

I need to subtract the a value of column new_azi and column angle in the azimuth dataframe on condition that the first is >= the second so what I did

if azimuth['new_azi'] >= azimuth['angle']:
    azimuth['new_azi'] = azimuth['new_azi'] - 360

but this error occurs

The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
Gustav Rasmussen
  • 3,720
  • 4
  • 23
  • 53
Mosalah
  • 5
  • 3

0 Answers0