Quantcast
Channel: Pandas: Remove Rows Where the Value of One Column Appears on Any Row in Another - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by sacuL for Pandas: Remove Rows Where the Value of One Column Appears...

IIUC, from your description, you can do:df[~df.iloc[:,3].isin(df.iloc[:,0])]Which returns: 0 1 2 33 11 2 1 325 13 2 1 108Contrary to your desired output, this removes the row with 000000011, but not...

View Article



Pandas: Remove Rows Where the Value of One Column Appears on Any Row in Another

Example data is:000000008,2, 1,000000010000000009,1, 1,000000011000000010,1, 1,000000008000000011,2, 1,000000032000000012,3, 1,000000009000000013,2, 1,000000108You can see that some values in the first...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>