Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

drop rows with certain values pandas

#to drop rows based on certain condition in a column
import pandas as pd

df = df[df['column']!=1]
 
PREVIOUS NEXT
Tagged: #drop #rows #values #pandas
ADD COMMENT
Topic
Name
3+5 =