I have the following result variable in a data frame (df) and I am trying to output a csv file for those that starts with "test"
abandoned
static
test_a_1
test_b_2
abandoned
test_b_3
The following code is not working. Thanks in advance for your insights
substr="test"
if substr in df['result']:
df.to_csv("C:/Projects/result.csv",sep=',',index=False)
substr in df['result']is false