pandas dataframe count row values,pd.DataFrame({name: df['path'].str.count(name) for name in wordlist})