I have done the counter of most common words to keep only the 128 most common words in my list in order:
words = my_list
mcommon_words = [word for word, word_count in Counter(words).most_common(128)]
my_list = [x for x in my_list if x in mcommon_words]
my_list = OrderedDict.fromkeys(my_list)
my_list = list(my_list.keys())
But now I want to count the 128 less common words in the same way. A faster solution would help me a lot too