Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. CODE:
  2. with open('neo4jlocation.txt', 'a') as loclist:
  3. for x in ip:
  4. input = str("CREATE (L:Location { Ip: \"{0}\" ,lat: \"{1}\" ,lon: \"{2}\" })".format(ip[c], lat[c], lon[c]))
  5. loclist.write(input + '\n')
  6. c+=1
  7.  
  8. ERROR:
  9.  
  10. Traceback (most recent call last):
  11. File "C:/Users/a00225753/PycharmProjects/database/readCsv.py", line 23, in <module>
  12. input = str("CREATE (L:Location { Ip: \"{0}\" ,lat: \"{1}\" ,lon: \"{2}\" })".format(ip[c], lat[c], lon[c]))
  13. KeyError: ' Ip'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement