过滤掉'orderid'列中开头不是GPA的行,只留开头是GPA的行
def func(a):return a[:][:3]=='GPA'df3[df3['orderid'].apply(func)]
df3[df2['orderid'].str.contains('GPA')]