The mall package: using LLMs with data frames in R & Python | Edgar Ruiz | Data Science Lab @PositPBC
The mall package: using LLMs with data frames in R & Python | Edgar Ruiz | Data Science Lab  @PositPBC
Uploaded March 2026 | Updated November 2026, 10 hours ago
The Data Science Lab is a live weekly call. Register at pos.it/dslab! Discord invites go out each week on lives calls. We'd love to have you!

The Lab is an open, messy space for learning and asking questions. Think of it like pair coding with a friend or two. Learn something new, and share what you know to help others grow.

On this call, Libby Heeren is joined by Edgar Ruiz as they walk through how mall works (with ellmer) in R, and then python. The mall package lets you use LLMs to process tabular or vectors of data, letting you do things such as feeding it a column of reviews and asking mall to use an anthropic model via ellmer to add a column of summaries or sentiments. Follow along with the code here: github.com/LibbyHeeren/mall-package-r

Hosting crew from Posit: Libby Heeren, Isabella Velasquez, Edgar Ruiz

Edgar's Bluesky: https://bsky.app/profile/theotheredgar.bsky.social
Edgar's LinkedIn: linkedin.com/in/edgararuiz
Edgar's GitHub: github.com/edgararuiz

Resources from the hosts and chat:

πŸ”— Ollama β†’ ollama.com/download
πŸ”— Posit Data Science Lab β†’ posit.co/dslab
πŸ”— mall package β†’ mlverse.github.io/mall
πŸ”— ellmer package β†’ elmer.tidyverse.org
πŸ”— Libby's Positron theme (Catppuccin) β†’ marketplace.visualstudio.com/items?itemName=Catppuccin.catppuccin-vsc
πŸ”— GitHub repo with Libby and Edgar's code β†’ github.com/LibbyHeeren/mall-package-r
πŸ”— LLM providers supported by ellmer β†’ ellmer.tidyverse.org/index.html#providers
πŸ”— vitals package β†’ vitals.tidyverse.org
πŸ”— chatlas package β†’ posit-dev.github.io/chatlas
πŸ”— polars package β†’ https://pola.rs/
πŸ”— narwhals package β†’ narwhals-dev.github.io/narwhals
πŸ”— pandas package β†’ pandas.pydata.org
πŸ”— LM Studio β†’ lmstudio.ai
πŸ”— Simon Couch's blog β†’ simonpcouch.com
πŸ”— Edgar's dataset: TidyTuesday Animal Crossing Dataset (May 5, 2020) β†’ github.com/rfordatascience/tidytuesday
πŸ”— Libby's dataset: Kaggle Tweets Dataset β†’ kaggle.com/datasets/mmmarchetti/tweets-dataset
πŸ”— Blog from Sara and Simon on evaluating LLMs β†’ posit.co/blog/r-llm-evaluation-03
πŸ”— Data Science Lab YouTube playlist β†’ youtube.com/watch?v=LDHGENv1NP4&list=PL9HYL-VRX0oSeWeMEGQt0id7adYQXebhT&index=2
πŸ”— AWS Bedrock β†’ aws.amazon.com/bedrock
πŸ”— Anthropic β†’ anthropic.com
πŸ”— Google Gemini β†’ gemini.google.com
πŸ”— What is rubber duck debugging anyway?? β†’ en.wikipedia.org/wiki/Rubber_duck_debugging

β–Ί Subscribe to Our Channel Here: bit.ly/2TzgcOu

Follow Us Here:
Website: posit.co
The Lab: https://pos.it/dslab
Hangout: https://pos.it/dsh
LinkedIn: linkedin.com/company/posit-software
Bluesky: https://bsky.app/profile/posit.co

Thanks for learning with us! πŸ’›

Timestamps
00:00 Introduction to Libby, Isabella, Edgar, and the mall package + ellmer package
07:14 "What's the difference between using mall for these NLP tasks versus traditional or classical NLP?"
09:37 "Can mall be used with a local LLM?"
17:32 "What kind of laptop specs should I realistically have to make good use of these models?"
22:12 "Are you limited to three output options?"
22:55 "Can mall return the prediction probabilities?"
24:14 "What are a rule of thumb set of specs for a machine so local LLMs are practically feasible?"
24:47 "Would that be in the additional prompt area where you're defining things?"
25:04 "You could use the vitals package to compare models, right?"
25:24 "Can we use LM Studio instead of Ollama?"
28:35 "How do you iterate and validate the model?"
36:39 "Why use paste if it is all text?"
37:31 "Are these recent tweets (from X) or older ones from actual Twitter?"
40:23 "Is there a playlist for the Data Science Labs on YouTube?"
46:11 "Does that mean that the python version does not work with pandas?"
50:14 "Where is this data set from?"
The mall package: using LLMs with data frames in R & Python | Edgar Ruiz | Data Science LabPharmacometrics in R: Population PK Modeling with nlmixr2Whats new in dplyr 1.2.0Ethical concerns, LLMs, and sensitive data in Legal | Tim Golden | Data Science HangoutMCP Servers Explained: Hosting MCP Servers on Posit Connect | Workflow Demo SeriesCustomize Positron IDE Layout: Move Panels, Terminals & SidebarsBuilding open source tools in Pharma | Kyle Austin & Martin Brown | Data Science HangoutWhat are the lifecycle badges on tidyverse packages?Snowflake Summit 2026: AI-Powered Data Science with Querychat for Business StakeholdersWhat is it like submitting an abstract for posit::conf()?How can you manage packages without leaving your IDE?Mine Γ‡etinkaya-Rundel: Teaching in the AI era β€” and keeping students engaged
Posit PBC |

The mall package: using LLMs with data frames in R & Python | Edgar Ruiz | Data Science Lab

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER