Some years ago I came across an issue in the Frames repo that mentioned a blog post titled “Why pandas feels clunky when coming from R.” The article showed a side-by-side of simple data exploration in R and compared the code to Pandas. At the time, the author concluded that Pandas was “clunkier” than R. The author operationalises the definition of clunkiness but I think it’s really more of a you-know-it-when-you-see-it thing. You can feel if an API is making you drift further away from your task and making you think more about the tool and its idiosyncracies. So let’s give the example a spin and see if Haskell feels clunky compared to R. NB: Polars isn’t clunky and you should probably use that instead of Pandas but we compare to Pandas here because the original author does. Reading the data According to the article, we’ve been given a table of purchases from various countries, where the customer could have received a discount. We want to answer some questions about the data but we do…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.