I have a very large dataframe containing a column called 'time_words'. Each cell of the column contains a list of dictionaries, for example:
| time_columns |
|---|
| {'Yesterday': {'text': 'Yesterday', 'type': 'DATE', 'value': '2022-04-15'}} |
| {'Yesterday': {'text': 'Yesterday', 'type': 'DATE', 'value': '2022-04-16'}, 'Thursday': {'text': 'Thursday', 'type': 'DATE', 'value': '2022-04-14'}} |
How can I efficiently get a table containing the frequency count of the unique keys of the main dictionary like below? (In a table because I want to save the result to a CSV.)
| text | count |
|---|---|
| Yesterday | 2 |
| Thursday | 1 |