SkillNavora
AI for Data Engineers · Data Science & AI

Quick reference, glossary and supplements

Cheat sheets, a glossary of data and AI terms, the 12-month tracker, and supplements on data engineering, cloud, Excel, SQL, governance, interviews and capstones. Each one is also a PDF.

← AI for Data Engineers
Excel formulas (18)

The formulas analysts use most. Ranges like A2:A100 are examples; adjust them to your sheet.

ItemWhat it doesExample
SUMIFSAdds values that meet one or more conditions=SUMIFS(D:D, B:B, "North", C:C, ">=2025-01-01")
COUNTIFSCounts rows that meet conditions=COUNTIFS(B:B, "North", E:E, "Closed")
AVERAGEIFSAverages values that meet conditions=AVERAGEIFS(D:D, B:B, "South")
XLOOKUPFinds a value and returns a match from another column; exact match by default=XLOOKUP(G2, A:A, C:C, "Not found")
INDEX + MATCHLookup that works in every Excel version=INDEX(C:C, MATCH(G2, A:A, 0))
IF / IFSReturns one value or another depending on a test=IFS(D2>=90, "A", D2>=75, "B", TRUE, "C")
IFERRORReplaces an error with a value you choose=IFERROR(D2/E2, 0)
TEXTJOINJoins text with a separator, skipping blanks=TEXTJOIN(", ", TRUE, A2:C2)
TEXTSPLITSplits text into cells (Microsoft 365)=TEXTSPLIT(A2, ",")
LEFT / RIGHT / MIDTakes characters from text=MID(A2, 4, 3)
TRIM / CLEANRemoves extra spaces and non-printing characters=TRIM(CLEAN(A2))
DATEDIF / EOMONTHDate difference; last day of a month=EOMONTH(A2, 0)
UNIQUE / SORT / FILTERDynamic arrays (Microsoft 365) that spill results=SORT(FILTER(A2:D100, D2:D100>1000), 4, -1)
LETNames a value inside a formula so it is calculated once=LET(t, SUM(D:D), D2/t)
PivotTableSummarises rows by groups without formulasInsert > PivotTable; Rows = Region, Values = Sum of Sales
Power QueryRepeatable import and cleaning stepsData > Get Data; record steps, then Refresh
Absolute reference$ keeps a row or column fixed when copying=D2*$H$1
Data validationRestricts what can be typed in a cellData > Data Validation > List
SQL commands (19)

Standard SQL that works in most databases. Exact function names can differ between PostgreSQL, MySQL, SQL Server and others.

ItemWhat it doesExample
SELECT ... FROM ... WHEREReads rows and filters themSELECT name, city FROM customers WHERE city = 'Pune';
ORDER BY / LIMITSorts and caps the rows returnedSELECT * FROM orders ORDER BY amount DESC LIMIT 10;
GROUP BY / HAVINGAggregates per group; HAVING filters groupsSELECT city, COUNT(*) FROM customers GROUP BY city HAVING COUNT(*) > 50;
AggregatesCOUNT, SUM, AVG, MIN, MAXSELECT AVG(amount) FROM orders;
INNER JOINRows that match in both tablesSELECT o.id, c.name FROM orders o JOIN customers c ON c.id = o.customer_id;
LEFT JOINAll rows from the left table, matches or NULL from the right... FROM customers c LEFT JOIN orders o ON o.customer_id = c.id
CASE WHENIf-then logic inside a queryCASE WHEN amount > 1000 THEN 'High' ELSE 'Normal' END
COALESCEFirst non-NULL valueCOALESCE(phone, email, 'none')
SubqueryA query inside another queryWHERE amount > (SELECT AVG(amount) FROM orders)
CTE (WITH)Names a step so long queries read top to bottomWITH monthly AS (SELECT ...) SELECT * FROM monthly;
ROW_NUMBER / RANKNumbers rows within a groupROW_NUMBER() OVER (PARTITION BY city ORDER BY amount DESC)
Running totalWindow SUM over an ordered setSUM(amount) OVER (ORDER BY order_date)
LAG / LEADValue from the previous or next rowLAG(revenue) OVER (ORDER BY month)
UNION / UNION ALLStacks results; UNION removes duplicatesSELECT city FROM a UNION ALL SELECT city FROM b;
INSERT / UPDATE / DELETEChanges data (use a WHERE on UPDATE and DELETE)UPDATE orders SET status = 'paid' WHERE id = 42;
CREATE TABLEDefines a table with types and keysCREATE TABLE t (id INT PRIMARY KEY, name TEXT NOT NULL);
IndexSpeeds up lookups on a columnCREATE INDEX idx_orders_customer ON orders(customer_id);
TransactionGroups changes so they all succeed or all failBEGIN; ... COMMIT; (or ROLLBACK;)
Order of executionFROM, WHERE, GROUP BY, HAVING, SELECT, ORDER BY, LIMITThat is why a SELECT alias cannot be used in WHERE
DAX (Power BI) (14)

Measures recalculate in the current filter context. Prefer measures over calculated columns for totals.

ItemWhat it doesExample
MeasureA calculation evaluated for each visual's filtersTotal Sales = SUM(Sales[Amount])
CALCULATEChanges the filter context of an expressionNorth Sales = CALCULATE([Total Sales], Region[Name] = "North")
FILTERReturns a filtered table, used inside CALCULATE or iteratorsCALCULATE([Total Sales], FILTER(Sales, Sales[Qty] > 5))
ALL / REMOVEFILTERSIgnores filters, for shares of totalShare = DIVIDE([Total Sales], CALCULATE([Total Sales], ALL(Region)))
DIVIDESafe division that handles divide by zeroMargin % = DIVIDE([Profit], [Total Sales])
SUMX / AVERAGEXIterates row by row, then aggregatesRevenue = SUMX(Sales, Sales[Qty] * Sales[Price])
RELATEDBrings a value from a related (one-side) tableSales[Category] = RELATED(Product[Category])
TOTALYTDYear-to-date total (needs a date table)Sales YTD = TOTALYTD([Total Sales], 'Date'[Date])
SAMEPERIODLASTYEARThe same dates one year earlierSales LY = CALCULATE([Total Sales], SAMEPERIODLASTYEAR('Date'[Date]))
DATEADDShifts dates by days, months, quarters or yearsCALCULATE([Total Sales], DATEADD('Date'[Date], -1, MONTH))
VAR / RETURNVariables make measures readable and fasterVAR ly = [Sales LY] RETURN DIVIDE([Total Sales] - ly, ly)
Filter contextThe filters a visual, slicer or row applies to a measureThe same measure shows different numbers in each matrix cell
Row contextThe current row in a calculated column or iteratorExists inside SUMX and calculated columns
Star schemaFact table in the centre, dimension tables around itSales (fact) linked to Date, Product and Customer (dimensions)
Python essentials (16)

Core Python syntax used in data work.

ItemWhat it doesExample
Variables and typesint, float, str, bool, Noneprice = 499.0; city = "Pune"; paid = True
f-stringsPut values inside textf"Total: {total:,.2f}"
ListOrdered, changeable collectionnums = [3, 1, 2]; nums.append(5)
DictionaryKey-value pairsrow = {"id": 1, "city": "Pune"}; row["city"]
Tuple / setFixed sequence; unique itemspoint = (2, 3); ids = {1, 2, 2} # {1, 2}
if / elif / elseBranchingif score >= 90: grade = "A"
for / whileLoopsfor i, x in enumerate(items): ...
List comprehensionBuild a list in one line[x * 2 for x in nums if x > 1]
FunctionsReusable code with parameters and a return valuedef tax(amount, rate=0.18): return amount * rate
LambdaSmall unnamed functionsorted(rows, key=lambda r: r["amount"])
try / exceptHandle errorstry: x = int(s) except ValueError: x = 0
with openRead or write files safelywith open("data.csv") as f: text = f.read()
ImportsUse librariesimport pandas as pd; from pathlib import Path
ClassesBundle data and behaviourclass Order: def __init__(self, amount): self.amount = amount
Virtual environmentIsolated packages per projectpython -m venv .venv; pip install pandas
Type hintsDocument expected typesdef total(xs: list[float]) -> float: ...
pandas (18)

The main Python library for tables. df is a DataFrame.

ItemWhat it doesExample
Read dataLoad CSV, Excel or Parquetdf = pd.read_csv("sales.csv")
InspectFirst rows, column types, summarydf.head(); df.info(); df.describe()
Select columnsOne column or severaldf["city"]; df[["city", "amount"]]
Filter rowsBoolean conditionsdf[(df.amount > 1000) & (df.city == "Pune")]
loc / ilocSelect by label / by positiondf.loc[df.id == 5, "status"]; df.iloc[0:5, 0:3]
New columnCalculate from other columnsdf["gst"] = df.amount * 0.18
Missing valuesFind, fill or dropdf.isna().sum(); df.fillna(0); df.dropna()
DuplicatesFind and removedf.drop_duplicates(subset=["order_id"])
TypesConvert columnsdf["date"] = pd.to_datetime(df["date"])
groupbyAggregate per groupdf.groupby("city")["amount"].agg(["sum", "mean"])
pivot_tableSpreadsheet-style pivotdf.pivot_table(index="city", columns="month", values="amount", aggfunc="sum")
mergeSQL-style joinsorders.merge(customers, on="customer_id", how="left")
concatStack DataFramespd.concat([jan, feb], ignore_index=True)
sort_valuesSort rowsdf.sort_values("amount", ascending=False)
apply / mapApply a function to valuesdf["band"] = df.amount.map(lambda a: "High" if a > 1000 else "Low")
DatesParts of dates and resamplingdf.date.dt.month; df.set_index("date").resample("M").sum()
value_countsFrequency of each valuedf.city.value_counts(normalize=True)
Write dataSave resultsdf.to_csv("out.csv", index=False); df.to_parquet("out.parquet")
Statistics formulas (15)

Formulas behind common analyses. n is the sample size.

ItemWhat it doesExample
MeanSum of values ÷ n(10 + 20 + 30) ÷ 3 = 20
MedianMiddle value when sorted; robust to outliersMedian of 3, 5, 100 is 5
Variance (sample)Σ(x − mean)² ÷ (n − 1)Spread of the values around the mean
Standard deviation√variance, in the data's own unitsDelivery time 30 ± 6 minutes
Percentile / IQRValue below which a % of data falls; IQR = Q3 − Q1Outlier rule: below Q1 − 1.5×IQR or above Q3 + 1.5×IQR
z-score(x − mean) ÷ standard deviationz = 2 means two standard deviations above the mean
Standard error of a means ÷ √ns = 12, n = 144 gives 1.0
Standard error of a proportion√(p(1 − p) ÷ n)p = 0.8, n = 100 gives 0.04 (4 points)
95% confidence intervalEstimate ± 1.96 × standard error (large samples)80% ± 7.8 points on 100 cases
Correlation (r)Strength of a straight-line relationship, −1 to 1r = 0.8 is strong; it does not prove cause
p-valueChance of a result at least this extreme if there were no real effectp < 0.05 is a common, not magic, threshold
t-testCompares means of two groupsAverage order value, app vs web
Chi-square testTests whether two categorical variables are relatedPlan type vs churned (yes/no)
Conversion rateConversions ÷ visitors120 ÷ 4,000 = 3%
Relative lift(new − old) ÷ old(3.3% − 3.0%) ÷ 3.0% = 10% lift
ML metrics (15)

How to score models. TP, FP, FN and TN are true positives, false positives, false negatives and true negatives.

ItemWhat it doesExample
Accuracy(TP + TN) ÷ allMisleading when one class is rare
PrecisionTP ÷ (TP + FP): of predicted positives, how many were right32 ÷ 50 = 64%
Recall (sensitivity)TP ÷ (TP + FN): of actual positives, how many were found32 ÷ 40 = 80%
F1 score2 × precision × recall ÷ (precision + recall)2 × 0.64 × 0.80 ÷ 1.44 = 0.71
SpecificityTN ÷ (TN + FP)Share of genuine non-fraud correctly cleared
Confusion matrixTable of TP, FP, FN, TNRead it before any single metric
ROC-AUCHow well scores rank positives above negatives, 0.5 (random) to 10.85 means good ranking across thresholds
PR-AUCArea under the precision-recall curve; better for rare positivesFraud, rare defects
Log lossPenalises confident wrong probabilitiesLower is better
MAEMean absolute error: average size of errorsOff by ₹120 on average
RMSERoot mean squared error: punishes large errors moreRMSE ≥ MAE always
MAPEMean absolute percentage errorAvoid when actual values can be near zero
R-squaredShare of variance explained (can be negative on new data)0.72 explains 72% of the variation
Cross-validationTrain and test on several splits for a stable estimate5-fold: five train/test rounds
Overfitting checkCompare training and validation scoresTrain 0.99, validation 0.70 means overfitting
APIs, webhooks and MCP (18)

Terms used when connecting tools and AI assistants to data.

ItemWhat it doesExample
APIA defined way for programs to ask another program for data or actionsThe weather app calls a weather API
EndpointA URL that does one jobGET /v1/orders/{id}
HTTP methodsGET reads, POST creates, PUT/PATCH updates, DELETE removesPOST /v1/orders creates an order
Status codes200 OK, 201 Created, 400 bad request, 401 not logged in, 403 not allowed, 404 not found, 429 too many requests, 500 server errorRetry 429 and 5xx with backoff; fix 4xx
HeadersMetadata sent with a requestAuthorization: Bearer <token>; Content-Type: application/json
JSONThe usual text format for API data{"id": 42, "status": "paid"}
Query parametersOptions in the URL/orders?status=paid&page=2
AuthenticationProving who is calling: API key, OAuth tokenNever put keys in code or prompts
OAuth 2.0Lets a user grant an app limited access without sharing a passwordSign in with Google, then allow read-only calendar
Rate limitMaximum calls in a time window100 requests per minute
PaginationResults returned in pagesFollow next_cursor until it is empty
WebhookThe other app calls your URL when something happensPayment succeeded sends a POST to your endpoint
IdempotencyRepeating a request has no extra effectSend an Idempotency-Key so a retried payment is not charged twice
OpenAPIA standard document describing an APISwagger UI reads it and shows try-it buttons
MCPModel Context Protocol: an open standard for connecting AI assistants to tools and dataAn MCP server lets an assistant read a database or a drive
Access tokenA temporary credential sent with each request instead of a passwordAuthorization: Bearer eyJ... (expires, then refreshed)
MCP host / client / serverHost: the AI app the user works in; client: its connection to one server; server: the program exposing tools and dataHost: Claude Desktop; server: a Postgres MCP server
MCP tool / resource / promptActions the model can call; data it can read; reusable prompt templatesTool: create_ticket; resource: a policy file
AI and LLM terms (16)

Words you will meet when building or evaluating GenAI features.

ItemWhat it doesExample
LLMLarge language model: predicts the next token from huge amounts of textClaude, GPT, Gemini, Llama
TokenA piece of text the model reads and writes (roughly ¾ of an English word)Prices are per million tokens
Context windowThe maximum tokens a model can consider at onceInstructions + documents + chat + answer must fit
Prompt / system promptThe request; the standing instructions for every requestRole, rules, format, examples
TemperatureRandomness of the output; lower is more predictableUse low values for extraction
EmbeddingNumbers that capture meaning, used for similarity search"refund" and "money back" land close together
Vector databaseStores embeddings and finds the nearest onespgvector, Pinecone, Chroma
RAGRetrieval-augmented generation: search your documents, then answer from themHelp-centre assistant with citations
ChunkingSplitting documents into passages for retrievalOne help-article section per chunk
HallucinationConfident output not supported by facts or sourcesAn invented policy clause
Tool use / function callingThe model asks your code to run a functionget_order_status(order_id)
AgentAn LLM that plans and uses tools in a loop toward a goalResearches, drafts and files a report
Fine-tuningFurther training a model on your examplesUsually after prompting and RAG are tried
GuardrailsChecks on inputs and outputsBlock personal data, validate JSON
EvalA repeatable test of AI quality on fixed casesPass rate on a 200-case golden set
Prompt injectionText in the context that tries to override the instructions"Ignore your rules" hidden in an email
Git and the command line (12)

Everyday commands. Check your organisation's branching rules.

ItemWhat it doesExample
git cloneCopy a repository to your computergit clone https://github.com/org/repo.git
git status / diffSee what changedgit status; git diff
git add / commitStage and save a change with a messagegit add file.py; git commit -m "Fix tax rounding"
git branch / switchWork on a separate line of changesgit switch -c feature/report
git pull / pushGet others' changes; share yoursgit pull; git push -u origin feature/report
git logHistory of commitsgit log --oneline -10
Pull requestAsk for review before mergingOpened on GitHub or GitLab
pwd / ls / cdWhere am I; list files; change foldercd data; ls -l
mkdir / cp / mv / rmMake folder; copy; move or rename; delete (careful)mv old.csv archive/
head / tail / wcLook at the start or end of a file; count lineshead -5 sales.csv; wc -l sales.csv
grepSearch text in filesgrep -i "error" app.log
Pipes and redirectsSend output to another command or a filegrep ERROR app.log | wc -l > errors.txt
Refer & earn