Skip to content

Instantly share code, notes, and snippets.


amankharwal/covid19 Secret

Created Apr 13, 2021
What would you like to do?
dict_ = {}
for i in df.vaccines.unique():
dict_[i] = [df["country"][j] for j in df[df["vaccines"]==i].index]
vaccines = {}
for key, value in dict_.items():
vaccines[key] = set(value)
for i, j in vaccines.items():
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment