[Solved] Another Traceback Error When I Run My Python Code

[ad_1]

You just have to many brackets

((df['Location'].str.contains('- Display') & 
  df['Lancaster'] == '' & 
  df['Dakota'] == 'D' & 
  df['Spitfire'] == 'SS' & 
  df['Hurricane'] == ''))

You needed to remove a ‘)’ after each (‘- Display’) it looks like you will still have some problems with sorting through your data. But this should get you past your syntax error.

Look at this online version so see my edits.

https://onlinegdb.com/Skceaucyr

18

[ad_2]

solved Another Traceback Error When I Run My Python Code