Answers for "select records based on multiple columns"

0

select records based on multiple columns

new_df = old_df[((old_df['C1'] > 0) & (old_df['C1'] < 20)) & ((old_df['C2'] > 0) & (old_df['C2'] < 20)) & ((old_df['C3'] > 0) & (old_df['C3'] < 20))]
Posted by: Guest on June-02-2021

Code answers related to "select records based on multiple columns"

Browse Popular Code Answers by Language