Joining CSV Data Without SQL: An IP Geolocation Use Case
11–20 of 41 posts
Re: Joining CSV Data Without SQL: An IP Geolocation Use Case
#12Please don’t do this for actual work you share with other people. There’s a good reason why pandas exists.
Re: Joining CSV Data Without SQL: An IP Geolocation Use Case
#13Please don’t do this for actual work you share with other people. There’s a good reason why pandas exists.
People that do proper ETL don't use python
Re: Joining CSV Data Without SQL: An IP Geolocation Use Case
#14-drag the 2 CSV files onto the canvas
-click 'Join'
-select the 2 columns to join
Re: Joining CSV Data Without SQL: An IP Geolocation Use Case
#15Ehhhhhhhh. It hasn't really made a super convincing argument not to use SQL. A lot of what is described isn't intinsicly a SQL problem, but instead an ETL problem. Eg, the use of complex types can be done by loading a csv into a TEXT table and then test typecasting on a sample set, followed by the full set. And geo indexes are no joke. Using them has made 8hr long SQL queries take seconds.
Re: Joining CSV Data Without SQL: An IP Geolocation Use Case
#16This can be done in the terminal as well.
Re: Joining CSV Data Without SQL: An IP Geolocation Use Case
#17Hm, a hassle is not always the same hassle for everyone. Personally, I like SQL and I enjoy the power it can leverage on all kind of data. As others wrote, working with sqlite for local data processing is a tool I do not want to miss, besides all of the great Unix coreutils and its (mostly GNU) ecosystem.
Re: Joining CSV Data Without SQL: An IP Geolocation Use Case
#18tldr; [de]serialization is your bottleneck, after that it’s general data processing. both are wasting insane levels of cpu cycles. network and disk, when accessed linearly, are free.
i remember first looking into this when ec2 i3 came out, only more so since. lambda for burst cpu capacity when you can’t wait 30s for ec2 spot is interesting too.
https://nathants.com/posts/performant-batch-processing-with-...
Re: Joining CSV Data Without SQL: An IP Geolocation Use Case
#19Currently mangling a 4 GB file and working with api's that use existing data columns to provide output.. Its a great tool.
Re: Joining CSV Data Without SQL: An IP Geolocation Use Case
#20Or, you can also use openrefine from Google. Currently mangling a 4 GB file and working with api's that use existing data columns to provide output.. Its a great tool.