User Tools

Site Tools


basic_filters
  • Grab rows where columns has certain values
valuelist = ['value1', 'value2', 'value3']
df = df[df.column.isin(valuelist)]
  • Select using criteria from multiple columns
df[(df['column_one']>2004) & (df['column_two']==9)]
basic_filters.txt · Last modified: 2016/10/07 15:46 by vincenzo