I want to create a DataFrame that only contains specific rows of the 'old' DataFrame. Therefore I created a list wich contains the indices of all the rows that should be inside the new DataFrame.
indexes = []
for category in df_test["RM_TEXT_CATEGORIES"].iteritems():
if "Uhren" in category[1]:
indexes.append(category[0])
indexes now contains the index of the row I want in the new DataFrame. How I can create the DataFrame out of those indices?