pandas code to split the data frame based on the column value code example Example: dataframe partition dataset based on column s = 30 df1 = df[df[0] >= s]