Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CODE:
- with open('neo4jlocation.txt', 'a') as loclist:
- for x in ip:
- input = str("CREATE (L:Location { Ip: \"{0}\" ,lat: \"{1}\" ,lon: \"{2}\" })".format(ip[c], lat[c], lon[c]))
- loclist.write(input + '\n')
- c+=1
- ERROR:
- Traceback (most recent call last):
- File "C:/Users/a00225753/PycharmProjects/database/readCsv.py", line 23, in <module>
- input = str("CREATE (L:Location { Ip: \"{0}\" ,lat: \"{1}\" ,lon: \"{2}\" })".format(ip[c], lat[c], lon[c]))
- KeyError: ' Ip'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement