Created
August 7, 2018 06:37
-
-
Save djokester/265c32cb5f3e8414eb1317b25f7e98d3 to your computer and use it in GitHub Desktop.
Aggregating Topics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create the list of topics | |
topic_list = [] | |
for question in questions: | |
if len(question["topics"]) > 0: | |
for topic in question["topics"]: | |
topic_list = topic_list + [topic["name"]] | |
topic_list = list(set(topic_list)) | |
print(len(topic_list)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment