Abhishek (@data_guy16) profile picture

Husting founder | Here to Dominate | Unrealistically obsessed with winning

Joined January 2025
Photo by Abhishek (@data_guy16)Photo by Abhishek (@data_guy16)Photo by Abhishek (@data_guy16)Photo by Abhishek (@data_guy16)Photo by Abhishek (@data_guy16)Photo by Abhishek (@data_guy16)Photo by Abhishek (@data_guy16)Photo by Abhishek (@data_guy16)Photo by Abhishek (@data_guy16)Photo by Abhishek (@data_guy16)
Day 1 of Posting on X consistently until I become eligible for payout
3
2
306
SQL joins, explained with 2 tiny tables and every single row shown. 5 students. 5 enrollments. 2 students never enrolled, 1 enrollment has no student, and 1 student has 2 courses. Watch what each join does with them:
1
17
JOIN vs EXISTS: JOIN to find students with a course → 4 rows (Aarav twice) WHERE EXISTS (...) → 3 rows EXISTS answers "has at least one" without duplicates and stops at the first match.
1
2
The trap that breaks dashboards: 2 SQL enrollments × 2 SQL batches = 4 rows Duplicate keys on both sides multiply. Check row counts before and after every join. All 11 joins with diagrams are in the carousel. Save it.
2
100 Excel formulas that are enough for any job #excel
13
Top 100 Python Functions #python
14
Pivot tables in Excel explained simply, part 2: the settings that answer real questions. % of grand total, grouping dates into months, calculated fields, distinct count, top 10, drill down, timelines, running totals, difference from last month, GETPIVOTDATA, report filter pages and pivot charts. Each one as a kid's picture card with the exact click. Send this to the friend who still makes 12 pivots for 12 months. Follow @thedataguy16 and comment PIVOTKID2. I'll DM you the complete PDF. Want the complete 90-day system? Link in bio. #pivottable #exceltips #excelfordataanalysis #dataanalyst #freshers
33
PYTHON ROUND FOR A DATA ROLE? THEY WON'T ASK YOU TO REVERSE A STRING. THEY'LL HAND YOU A LIST OF RECORDS. I put 45 practice programs on one tiny dataset: a gully-cricket league, 12 innings as a list of dicts. No pandas. Here are the 5 ideas that separate level 1 from level 3. 1. Grouping without pandas runs = {} for i in innings: runs[i['player']] = runs.get(i['player'], 0) + i['runs'] -> {'Aman': 112, 'Vikas': 40, 'Rizwan': 103, ...} dict.get(key, 0) is the whole of GROUP BY in one line. If you can write this from memory, half the round is done. 2. The average that isn't Aman scored 34, 47 and 31 not out. Batting average = 112 / 2 outs = 56.0 Per-innings mean = 112 / 3 = 37.3 Strike rate = 112 / 76 balls x 100 = 147.4 Three correct numbers from the same three innings. Interviewers ask "average" on purpose to see if you ask which one. 3. Sorting on two keys sorted(innings, key=lambda i: (-i['runs'], i['balls'])) Negate the number you want descending, keep the tie-breaker ascending. One sort, no reverse=True confusion. 4. Bad data is the job for x in ['34', 'DNB', '12']: try: total += int(x) except ValueError: pass -> 46 Real scorecards have DNB, blanks and typos. A program that crashes on row 7 is not a program. 5. The two bugs that never throw an error def add(score, scores=[]): scores.append(score); return scores add(34); add(12) -> [34, 12] The default list is created once, when def runs. Fix: scores=None. backup = team.copy(); backup[0][1] = 99 -> team changes too. .copy() is shallow. Inner lists are shared. Fix: copy.deepcopy. Neither raises anything. That's exactly why seniors ask them: they test whether you understand what Python is doing, not whether you memorised syntax. How to use the 45 Level 1 (1-15): loops, sum, max, comprehensions. Level 2 (16-30): dicts, grouping, streaks, parsing. Level 3 (31-45): csv, Counter, defaultdict, generators, classes, traps. 15 a day, 3 days. Syntax gets you through level 1. Thinking in records gets you through the round.
40
DAX gets easier when you explain it like you're 5: • Filter context -> the slicer picks the rows • CALCULATE -> change the rule, then count • SUMX -> multiply each row, then add • ALL -> ignore the filter • TOTALYTD -> piggy bank since April Picture DAX. Don't memorise it.
21
DAX explained simply, like you're 5: CALCULATE, filter context and 10 more, with the real formula on every card. Filter context, CALCULATE, row context, SUMX, measures, ALL, DIVIDE, FILTER, RELATED, VAR, TOTALYTD with the Indian FY end '3/31', and last year's same period. Power BI DAX for beginners. Send this to the friend stuck on CALCULATE. Save it for your first Power BI report. #powerbi #daxformulas #powerbidax #dataanalyst #freshers
17
STOP ASKING WHICH ANALYST JOB IS BEST. First decide which question you like. Data analyst -> Why did the number change? SQL, Excel, Power BI Credit risk analyst -> Who might not pay back? Excel, SQL, SAS or Python, DPD, NPA, PD x LGD x EAD Same loan data. Two different jobs.
51
Cost of not being cringe is - Not be able to live in the house you want to - Not be able to give your parents best healthcare - Not be able to send your kids to best schools - Not living the life you want - Not having the money your deserve Choice is yours.
16
Python for data analysts gets easier when you know these first: • f"{amt:,}" -> 64,800 • .strip().title() -> clean names • [x for x in xs if x > 200] -> filter • dict.get(k, 0) -> safe lookup • Counter(...) -> counts • strptime -> text to date 60 lines, every one run 👇
1
25