Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. column_from = {}
  2. for i, bank in enumerate(participants):
  3. temp = []
  4. [temp.append(bank + "_to_" + other bank) for otherbank in participants if (otherbank != bank)]
  5. preface = ["key", "date", "processed_time"]
  6. column_from[bank] = preface + temp
  7.  
  8. {'Bank1' : ['key', 'date', 'processed_time', 'Bank1_to_Bank2', 'Bank1_to_Bank3', 'Bank1_to_Bank4']....}
  9.  
  10. error: can only concatenate str (not "tuple") to str
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement