I have a dictionary in python called word_counts
consisting of key words and values which represent the frequency in which they appear in a given text:
word_counts = {'the':2, 'cat':2, 'sat':1, 'with':1, 'other':1}
I now need to make this into a pandas DataFrame with two columns: a column named 'word' indicating the words and column named 'count' indicating the frequency.