After a few frustrating events where I had some python code blow up because of dependencies, I started looking hard a using Groovy going forward.
For some simple things, Groovy and Python are very easy. For example if I wanted to read the latest sales from Park.IO and print them out, I could do the following in Python on my Mac.
import pandas as pd df = pd.read_csv('https://park.io/orders/export.csv') print (df)
If I tried that on my old Raspberry Pi, I'd run into dependency issues w.r.t. to Numpy not compiling correctly.
With Groovy, it's roughly the same but no need to call a module, it's just built in.
String getResult = new URL('https://park.io/orders/export.csv').text print getResult
And that works on my Raspberry Pi.
Granted, I don't really need all the multi-threading power of Java to run this simple program but the portability is nice.
Hi friends, I would love it if you signed up for my monthly newsletter. I try not to be obtrusive with it and want to genuinely share valuable information with you. This is a Data Science related newsletter with a few other random topics related to consulting life. If you want to sign up for it, you can do so below. I won't spam or sell your email to a 3rd party. Thanks so much!
Hi friends, some of links in my blog may contain affiliate links and I may derive a bit of income from them.