Skip to content

Instantly share code, notes, and snippets.

@FranciscusRenatus
Created July 9, 2017 07:16
Show Gist options
  • Save FranciscusRenatus/5332540c289914a910948bc1710912f3 to your computer and use it in GitHub Desktop.
Save FranciscusRenatus/5332540c289914a910948bc1710912f3 to your computer and use it in GitHub Desktop.
# Data Preprocessing
dataset = pd.read_csv('Market_Basket_Optimisation.csv', header = None)
transactions = []
for i in range(0, 7501):
transactions.append([str(dataset.values[i,j]) for j in range(0, 20)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment