Skip to content

Instantly share code, notes, and snippets.

@Zoldin
Last active November 18, 2019 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zoldin/26ac2c29038bc72e2c4f2749ee0daac6 to your computer and use it in GitHub Desktop.
Save Zoldin/26ac2c29038bc72e2c4f2749ee0daac6 to your computer and use it in GitHub Desktop.
import random
import pandas as pd
clients = pd.DataFrame()
clients['client_id'] = [0,1,2,3,4,5,6,7,8,9]
clients['client_name'] = ["Mobili Ltd.","Tymy Ltd.", "Lukas Ltd.","Brod Ltd.",
"Missyda Ltd.", "Abiti Ltd.", "Bomy Ltd." , "Citiwi Ltd.", "Dolphy Ltd.", "Doper Ltd."]
clients.loc[clients['client_id'] == random.choice(clients['client_id'])]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment