New answers tagged

-2

I solved the same problem using Bing Maps Dev. First you need to create your account and then your "Key". You can recover more information that comes with the result. # Function to recover the city using 1 zip code. import requests import json def recoverCity(zipCode1, bingKey): bing_url = ("http://dev.virtualearth.net/REST/v1/Locations?postalCode=" + "...


2

The script looks pretty good to me. The biggest issue is that if you plan to execute this code multiple times, it's not really efficient. I think you should check for existing persons in Snowflake, and then only add the persons that are not yet in there. I'm not sure how Snowflake works so I can't help you with that, but my approach would be to create a ...


3

Review II - your fuzzy.go code After a quick read of your Go code, the Go code for package go-fuzzywuzzy, and the Go documentation, it is reasonable to hope for at least a 60% to 95% improvement in Go performance. Review I, package go-fuzzywuzzy, completely rewrote the package go-fuzzywuzzy file stringutility.go in Go for a significant improvement in ...


11

Review I - package go-fuzzywuzzy After a quick read of your Go code, the Go code for package go-fuzzywuzzy, and the Go documentation, it is reasonable to hope for at least a 60% to 95% improvement in Go performance. For example, $ go build fuzzy.go && time ./fuzzy real 0m55.183s user 0m58.858s sys 0m0.944s $ After moving one line in ...


4

At this point your code is starting to become hard to follow. If you add any more complicated logic, you will not be able to easily understand it yourself if you return to it a few weeks later. I would first of all separate out the parsing of an XML file so that you can change that independently of all the rest. You can make this a generator, so it doesn't ...


Top 50 recent answers are included