Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How to remove rows from a dataset based on condition?

I've ran the following Python script in the Query Editor but it does not change the dataset.   # 'dataset' holds the input data for this script if dataset.iloc[5,2] == 1: dataset.drop(4) I ...
  • lbendlin's avatar
    4 years ago
    # 'dataset' holds the input data for this script
    
    if dataset.iloc[5,2] == 1:
        dataset = dataset.drop(4)