Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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 want the code to delete row 4 if row 5's value column is equal to 1. Any idea if there's a problem with my code? Here is a snippet of the data
Solved! Go to Solution.
# 'dataset' holds the input data for this script
if dataset.iloc[5,2] == 1:
dataset = dataset.drop(4)
# 'dataset' holds the input data for this script
if dataset.iloc[5,2] == 1:
dataset = dataset.drop(4)
You need to click on the Table hyperlink.
User | Count |
---|---|
3 | |
2 | |
2 | |
1 | |
1 |
User | Count |
---|---|
10 | |
8 | |
5 | |
5 | |
4 |