Skip to main content

Posts

Showing posts with the label Data Science

Run SQL queries on local parquet and delta files using DuckDB

Yesterday I showed how we could query local parquet and delta files using pandas and deltalake. Although these libraries work, once you start loading big parquet files you see your system stall while your memory usage spikes. A colleague suggested to give DuckDB a try. I never heard about it, but let’s discover it together. What is DuckDB? DuckDB is an in-process analytical database — think SQLite, but built for OLAP workloads instead of transactional ones. It runs entirely inside your Python process (no server to spin up, no connection string to manage) and is optimized for the kinds of queries data engineers run every day: large scans, aggregations, joins, and window functions over columnar data. A few things that make it stand out: It reads files directly. You don't import data into DuckDB before querying it. You point it at a Parquet file, a folder of Parquet files, or a Delta table, and it queries them in place. No ETL step, no intermediate copy. It's c...

30 days of Data Science

I’m always trying to expand my horizon and learn new tools, technologies and techniques. And of course at the top of my list you'll find everything about Data Science, AI, Machine Learning. As I see how tools like Github Copilot can change(and improve) the job of a software engineer, I want to dive deeper into this domain. If you recognize yourself in this, this is a good moment to join me in my learning journey. Microsoft announced there 30 days of data science program, starting today! To participate, you need to register as part of the program. In 4 weeks you go from your first Python program to an end-to-end Machine Learning project.