Answer the question
In order to leave comments, you need to log in
Filtering in pandas - how not to filter if variable is None?
I work with pandas in Python. There is such a code
res = df[
(df['Column1'] >= column1_min) & (df_item['Column1'] <= column1_max) &
(df['Column2'].isin(column2) ) &
(df['Column3'] == column3) &
#.....
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question