Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def generarProbs( archivo ):
probs = {}
df = pd.read_csv( archivo )
for idx, row in df.iterrows():
probs[row[0]] = list(row[1:] / sum(row[1:]))
return probs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment