Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
8 | |
3 | |
3 | |
2 |
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
2 |