Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
You were on the right path breaking it down into two steps. First identify the cells you want to remove: # Identify the 'Cell' values that meet the criteria cells_to_remove = df[(df['Resistance']...
Answer
#1: Initial revision
You were on the right path breaking it down into two steps. First identify the cells you want to remove: # Identify the 'Cell' values that meet the criteria cells_to_remove = df[(df['Resistance'] < 100000) & (df['Current'] == 100)]['Cell'].unique() And then remove them: # Remove all rows with 'Cell' values that were identified filtered_df = df[~df['Cell'].isin(cells_to_remove)]