Skip to content

Instantly share code, notes, and snippets.

@dzakyputra
Created October 2, 2019 13:28
Show Gist options
  • Save dzakyputra/75f79d9739ff88b016cf8738be886b96 to your computer and use it in GitHub Desktop.
Save dzakyputra/75f79d9739ff88b016cf8738be886b96 to your computer and use it in GitHub Desktop.
data_df = {'Customer':['tom', 'nick', 'krish', 'jack', 'jack', 'tom', 'jack', 'krish', 'nick', 'nick'],
'Origin':['Tebet', 'Gondangdia', 'Mampang', 'SCBD', 'SCBD', 'Kuningan', 'Pancoran', 'Tebet', 'Mampang', 'Tebet'],
'Destination':['Gondangdia', 'Mampang', 'SCBD', 'Kuningan', 'Pancoran', 'Pancoran', 'Mampang', 'SCBD', 'SCBD', 'Kuningan'],
'Distance': [4.5, 5.0, 3.0, 4.8, 2.2, 4.7, 3.4, 4.0, 2.2, 2.9],
'Price': [20000, 23000, 14000, 24500, 7000, 20000, 15000, 18500, 9000, 11000]}
df = pd.DataFrame(data_df)
df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment