<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to remove rows from a dataset based on condition? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-rows-from-a-dataset-based-on-condition/m-p/2363977#M34675</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried this but I only got the following output. Any idea why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2022 08:15:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-02-28T08:15:20Z</dc:date>
    <item>
      <title>How to remove rows from a dataset based on condition?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-rows-from-a-dataset-based-on-condition/m-p/2355339#M34572</link>
      <description>&lt;P&gt;I've ran the following Python script in the Query Editor but it does not change the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# 'dataset' holds the input data for this script

if dataset.iloc[5,2] == 1:
    dataset.drop(4)&lt;/LI-CODE&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 08:36:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-rows-from-a-dataset-based-on-condition/m-p/2355339#M34572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-23T08:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove rows from a dataset based on condition?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-rows-from-a-dataset-based-on-condition/m-p/2362610#M34651</link>
      <description>&lt;LI-CODE lang="python"&gt;# 'dataset' holds the input data for this script

if dataset.iloc[5,2] == 1:
    dataset = dataset.drop(4)&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 27 Feb 2022 01:15:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-rows-from-a-dataset-based-on-condition/m-p/2362610#M34651</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-02-27T01:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove rows from a dataset based on condition?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-rows-from-a-dataset-based-on-condition/m-p/2363977#M34675</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried this but I only got the following output. Any idea why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 08:15:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-rows-from-a-dataset-based-on-condition/m-p/2363977#M34675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-28T08:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove rows from a dataset based on condition?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-rows-from-a-dataset-based-on-condition/m-p/2364571#M34683</link>
      <description>&lt;P&gt;You need to click on the Table hyperlink.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 12:13:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-rows-from-a-dataset-based-on-condition/m-p/2364571#M34683</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-02-28T12:13:16Z</dc:date>
    </item>
  </channel>
</rss>

