Cheat Sheet BUY NOW Beginner Preview available

SQL, pandas and Excel Side by Side

by LucidPlexus
0.00 · 0 reviews
The same eighteen operations in SQL, pandas and Excel, and where the three disagree. Two A4 pages: filter, sort, distinct values, count, sum by group, percent of total, conditional count, top n per group, lookup and join, pivot, conditional column, rank, running…
2 Pages
0 Views
0 Downloads

Overview

Everything useful before you download or buy.

The same eighteen operations in SQL, pandas and Excel, and where the three disagree.

Two A4 pages: filter, sort, distinct values, count, sum by group, percent of total, conditional count, top n per group, lookup and join, pivot, conditional column, rank, running total, previous row, dates, text cleaning, missing values and removing duplicates, each written in DuckDB SQL, in pandas and as Excel formulas.

Three worked examples run on the LucidPlexus book datasets in all three tools. Where they agree, the same numbers come out three times. Where they do not, the sheet shows why: Excel's MATCH and COUNTIF ignore case, and pandas reads the text "None" as missing.

The SQL is DuckDB, with notes where other databases differ, and the pandas is pandas 3. Every Excel formula on the sheet was recalculated in LibreOffice Calc except FILTER, SORT, SORTBY, UNIQUE, XLOOKUP and TAKE, which the LibreOffice version used (24.2) does not have; those are shown, not run. They need Excel 2021 or later, and TAKE Excel 2024 or Microsoft 365.

PDF to print, and an HTML version to read on screen.

Type Cheat Sheet
Pages 2
Access Buy Now

Preview

Check the resource before buying — a limited-page preview.

Open PDF
Loading preview…

This is a limited-page preview. If it does not load, open the PDF directly.

Ratings & Reviews

One review per person. Submitting again updates your existing review.

0 total

Write a review

Share what helped, what stood out, or who this resource is best for.

No reviews yet

Be the first to review this resource.

Login to Buy Preview