๐ผ Pandas Interview Question (Data Analyst)
Q. How do you find missing values in a Pandas DataFrame and count them column-wise?
โ Answer
df.isna().sum()
Explanation:
isna() / isnull() detects missing values
sum() gives the count for each column
๐ก Pro tip:
Total missing values in the DataFrame:
df.isna().sum().sum()
๐ React to this post if you want more daily interview questions on Pandas, SQL & Data Analytics. ๐
Q. How do you find missing values in a Pandas DataFrame and count them column-wise?
โ Answer
df.isna().sum()
Explanation:
isna() / isnull() detects missing values
sum() gives the count for each column
๐ก Pro tip:
Total missing values in the DataFrame:
df.isna().sum().sum()
๐ React to this post if you want more daily interview questions on Pandas, SQL & Data Analytics. ๐
โค6๐1
๐ Pandas Interview Question (Frequently Asked!)
โ Interviewers love to ask this:
โYour dataset has duplicate records. How will you handle them in Pandas?โ
โ Answer:
โก๏ธ Use df.duplicated() to identify duplicate rows.
โก๏ธ Use df.drop_duplicates() to remove them cleanly.
โก๏ธ You can also target specific columns using the subset parameter.
๐ React if you want more frequently asked Pandas, SQL, PowerBI interview questions for Data Analyst roles!
โ Interviewers love to ask this:
โYour dataset has duplicate records. How will you handle them in Pandas?โ
โ Answer:
โก๏ธ Use df.duplicated() to identify duplicate rows.
โก๏ธ Use df.drop_duplicates() to remove them cleanly.
โก๏ธ You can also target specific columns using the subset parameter.
๐ React if you want more frequently asked Pandas, SQL, PowerBI interview questions for Data Analyst roles!
๐6โค2
๐๐๐ ๐๐๐ฌ๐ ๐๐ญ๐ฎ๐๐ข๐๐ฌ ๐๐จ๐ซ ๐๐ง๐ญ๐๐ซ๐ฏ๐ข๐๐ฐ:
Join for more: https://t.me/sqlanalyst
1. Dannyโs Diner:
Restaurant analytics to understand the customer orders pattern.
Link: https://8weeksqlchallenge.com/case-study-1/
2. Pizza Runner
Pizza shop analytics to optimize the efficiency of the operation
Link: https://8weeksqlchallenge.com/case-study-2/
3. Foodie Fie
Subscription-based food content platform
Link: https://lnkd.in/gzB39qAT
4. Data Bank: Thatโs money
Analytics based on customer activities with the digital bank
Link: https://lnkd.in/gH8pKPyv
5. Data Mart: Fresh is Best
Analytics on Online supermarket
Link: https://lnkd.in/gC5bkcDf
6. Clique Bait: Attention capturing
Analytics on the seafood industry
Link: https://lnkd.in/ggP4JiYG
7. Balanced Tree: Clothing Company
Analytics on the sales performance of clothing store
Link: https://8weeksqlchallenge.com/case-study-7
8. Fresh segments: Extract maximum value
Analytics on online advertising
Link: https://8weeksqlchallenge.com/case-study-8
Join for more: https://t.me/sqlanalyst
1. Dannyโs Diner:
Restaurant analytics to understand the customer orders pattern.
Link: https://8weeksqlchallenge.com/case-study-1/
2. Pizza Runner
Pizza shop analytics to optimize the efficiency of the operation
Link: https://8weeksqlchallenge.com/case-study-2/
3. Foodie Fie
Subscription-based food content platform
Link: https://lnkd.in/gzB39qAT
4. Data Bank: Thatโs money
Analytics based on customer activities with the digital bank
Link: https://lnkd.in/gH8pKPyv
5. Data Mart: Fresh is Best
Analytics on Online supermarket
Link: https://lnkd.in/gC5bkcDf
6. Clique Bait: Attention capturing
Analytics on the seafood industry
Link: https://lnkd.in/ggP4JiYG
7. Balanced Tree: Clothing Company
Analytics on the sales performance of clothing store
Link: https://8weeksqlchallenge.com/case-study-7
8. Fresh segments: Extract maximum value
Analytics on online advertising
Link: https://8weeksqlchallenge.com/case-study-8
โค4
๐ Pandas Interview Question (Frequently Asked!)
โ Interviewers love to ask this:
โYour dataset has duplicate records. How will you handle them in Pandas?โ
โ Answer:
โก๏ธ Use df.duplicated() to identify duplicate rows.
โก๏ธ Use df.drop_duplicates() to remove them cleanly.
โก๏ธ You can also target specific columns using the subset parameter.
๐ React if you want more frequently asked Pandas, SQL, PowerBI interview questions for Data Analyst roles!
โ Interviewers love to ask this:
โYour dataset has duplicate records. How will you handle them in Pandas?โ
โ Answer:
โก๏ธ Use df.duplicated() to identify duplicate rows.
โก๏ธ Use df.drop_duplicates() to remove them cleanly.
โก๏ธ You can also target specific columns using the subset parameter.
๐ React if you want more frequently asked Pandas, SQL, PowerBI interview questions for Data Analyst roles!
โค7
๐ SQL Interview Question (Must-Know)
Question:
You have a table orders with the following columns:
order_id, customer_id, order_date, order_amount
๐ Write an SQL query to find the total order amount for each customer who has placed more than 3 orders.
โ Solution:
SELECT
customer_id,
SUM(order_amount) AS total_order_amount
FROM orders
GROUP BY customer_id
HAVING COUNT(order_id) > 3;
๐ง Explanation:
GROUP BY customer_id โ groups orders per customer
SUM(order_amount) โ calculates total spending
HAVING COUNT(order_id) > 3 โ filters customers with more than 3 orders
๐ React with ๐ฅ or ๐ if this helped
๐ Want more SQL interview questions & real-world scenarios? React and stay tuned!
Question:
You have a table orders with the following columns:
order_id, customer_id, order_date, order_amount
๐ Write an SQL query to find the total order amount for each customer who has placed more than 3 orders.
โ Solution:
SELECT
customer_id,
SUM(order_amount) AS total_order_amount
FROM orders
GROUP BY customer_id
HAVING COUNT(order_id) > 3;
๐ง Explanation:
GROUP BY customer_id โ groups orders per customer
SUM(order_amount) โ calculates total spending
HAVING COUNT(order_id) > 3 โ filters customers with more than 3 orders
๐ React with ๐ฅ or ๐ if this helped
๐ Want more SQL interview questions & real-world scenarios? React and stay tuned!
โค2
โ
Top 10 Excel Interview Questions & Answers ๐๐ผ
1๏ธโฃ What is Excel and why is it used?
Excel is a spreadsheet program used for organizing, analyzing, and storing data in tabular form. It's widely used for data analysis, reporting, and financial modeling.
2๏ธโฃ Key Excel components?
- Ribbon: Main menu
- Worksheet: A single sheet
- Workbook: A collection of worksheets
- Cell: Intersection of a row and column
3๏ธโฃ What are Excel Functions?
Predefined formulas that perform specific calculations (e.g., SUM, AVERAGE, IF, VLOOKUP).
4๏ธโฃ VLOOKUP vs. INDEX/MATCH?
- VLOOKUP: Searches for a value in the first column and returns a corresponding value.
- INDEX/MATCH: More flexible and overcomes VLOOKUP limitations, better for larger datasets.
5๏ธโฃ What are Pivot Tables?
Interactive tables that summarize and analyze large datasets, allowing you to easily rearrange and filter data.
6๏ธโฃ Conditional Formatting?
Applies formatting (e.g., colors, icons) to cells based on specific criteria, making it easier to identify trends and outliers.
7๏ธโฃ How to remove duplicates?
Use the "Remove Duplicates" feature in the Data tab to eliminate redundant rows based on selected columns.
8๏ธโฃ What are Excel Charts?
Visual representations of data (e.g., bar charts, line charts, pie charts) that help communicate trends and insights.
9๏ธโฃ How to protect a worksheet?
Use the "Protect Sheet" feature in the Review tab to prevent unauthorized changes to the worksheet structure and content.
๐ What are Macros?
Automated sequences of commands that can be recorded and replayed to perform repetitive tasks efficiently.
๐ React โค๏ธ if you found this helpful!
1๏ธโฃ What is Excel and why is it used?
Excel is a spreadsheet program used for organizing, analyzing, and storing data in tabular form. It's widely used for data analysis, reporting, and financial modeling.
2๏ธโฃ Key Excel components?
- Ribbon: Main menu
- Worksheet: A single sheet
- Workbook: A collection of worksheets
- Cell: Intersection of a row and column
3๏ธโฃ What are Excel Functions?
Predefined formulas that perform specific calculations (e.g., SUM, AVERAGE, IF, VLOOKUP).
4๏ธโฃ VLOOKUP vs. INDEX/MATCH?
- VLOOKUP: Searches for a value in the first column and returns a corresponding value.
- INDEX/MATCH: More flexible and overcomes VLOOKUP limitations, better for larger datasets.
5๏ธโฃ What are Pivot Tables?
Interactive tables that summarize and analyze large datasets, allowing you to easily rearrange and filter data.
6๏ธโฃ Conditional Formatting?
Applies formatting (e.g., colors, icons) to cells based on specific criteria, making it easier to identify trends and outliers.
7๏ธโฃ How to remove duplicates?
Use the "Remove Duplicates" feature in the Data tab to eliminate redundant rows based on selected columns.
8๏ธโฃ What are Excel Charts?
Visual representations of data (e.g., bar charts, line charts, pie charts) that help communicate trends and insights.
9๏ธโฃ How to protect a worksheet?
Use the "Protect Sheet" feature in the Review tab to prevent unauthorized changes to the worksheet structure and content.
๐ What are Macros?
Automated sequences of commands that can be recorded and replayed to perform repetitive tasks efficiently.
๐ React โค๏ธ if you found this helpful!
โค2
๐ Want to Excel at Data Analytics? Master These Essential Skills! โ๏ธ
Core Concepts:
โข Statistics & Probability โ Understand distributions, hypothesis testing
โข Excel โ Pivot tables, formulas, dashboards
Programming:
โข Python โ NumPy, Pandas, Matplotlib, Seaborn
โข R โ Data analysis & visualization
โข SQL โ Joins, filtering, aggregation
Data Cleaning & Wrangling:
โข Handle missing values, duplicates
โข Normalize and transform data
Visualization:
โข Power BI, Tableau โ Dashboards
โข Plotly, Seaborn โ Python visualizations
โข Data Storytelling โ Present insights clearly
Advanced Analytics:
โข Regression, Classification, Clustering
โข Time Series Forecasting
โข A/B Testing & Hypothesis Testing
ETL & Automation:
โข Web Scraping โ BeautifulSoup, Scrapy
โข APIs โ Fetch and process real-world data
โข Build ETL Pipelines
Tools & Deployment:
โข Jupyter Notebook / Colab
โข Git & GitHub
โข Cloud Platforms โ AWS, GCP, Azure
โข Google BigQuery, Snowflake
Hope it helps :)
Core Concepts:
โข Statistics & Probability โ Understand distributions, hypothesis testing
โข Excel โ Pivot tables, formulas, dashboards
Programming:
โข Python โ NumPy, Pandas, Matplotlib, Seaborn
โข R โ Data analysis & visualization
โข SQL โ Joins, filtering, aggregation
Data Cleaning & Wrangling:
โข Handle missing values, duplicates
โข Normalize and transform data
Visualization:
โข Power BI, Tableau โ Dashboards
โข Plotly, Seaborn โ Python visualizations
โข Data Storytelling โ Present insights clearly
Advanced Analytics:
โข Regression, Classification, Clustering
โข Time Series Forecasting
โข A/B Testing & Hypothesis Testing
ETL & Automation:
โข Web Scraping โ BeautifulSoup, Scrapy
โข APIs โ Fetch and process real-world data
โข Build ETL Pipelines
Tools & Deployment:
โข Jupyter Notebook / Colab
โข Git & GitHub
โข Cloud Platforms โ AWS, GCP, Azure
โข Google BigQuery, Snowflake
Hope it helps :)
โค4
Quick recap of essential SQL basics ๐๐
SQL is a domain-specific language used for managing and querying relational databases. It's crucial for interacting with databases, retrieving, storing, updating, and deleting data. Here are some fundamental SQL concepts:
1. Database
- A database is a structured collection of data. It's organized into tables, and SQL is used to manage these tables.
2. Table
- Tables are the core of a database. They consist of rows and columns, and each row represents a record, while each column represents a data attribute.
3. Query
- A query is a request for data from a database. SQL queries are used to retrieve information from tables. The SELECT statement is commonly used for this purpose.
4. Data Types
- SQL supports various data types (e.g., INTEGER, TEXT, DATE) to specify the kind of data that can be stored in a column.
5. Primary Key
- A primary key is a unique identifier for each row in a table. It ensures that each row is distinct and can be used to establish relationships between tables.
6. Foreign Key
- A foreign key is a column in one table that links to the primary key in another table. It creates relationships between tables in a database.
7. CRUD Operations
- SQL provides four primary operations for data manipulation:
- Create (INSERT) - Add new records to a table.
- Read (SELECT) - Retrieve data from one or more tables.
- Update (UPDATE) - Modify existing data.
- Delete (DELETE) - Remove records from a table.
8. WHERE Clause
- The WHERE clause is used in SELECT, UPDATE, and DELETE statements to filter and conditionally manipulate data.
9. JOIN
- JOIN operations are used to combine data from two or more tables based on a related column. Common types include INNER JOIN, LEFT JOIN, and RIGHT JOIN.
10. Index
- An index is a database structure that improves the speed of data retrieval operations. It's created on one or more columns in a table.
11. Aggregate Functions
- SQL provides functions like SUM, AVG, COUNT, MAX, and MIN for performing calculations on groups of data.
12. Transactions
- Transactions are sequences of one or more SQL statements treated as a single unit. They ensure data consistency by either applying all changes or none.
13. Normalization
- Normalization is the process of organizing data in a database to minimize data redundancy and improve data integrity.
14. Constraints
- Constraints (e.g., NOT NULL, UNIQUE, CHECK) are rules that define what data is allowed in a table, ensuring data quality and consistency.
Here is an amazing resources to learn & practice SQL: https://bit.ly/3FxxKPz
Share with credits: https://t.me/sqlspecialist
Hope it helps :)
SQL is a domain-specific language used for managing and querying relational databases. It's crucial for interacting with databases, retrieving, storing, updating, and deleting data. Here are some fundamental SQL concepts:
1. Database
- A database is a structured collection of data. It's organized into tables, and SQL is used to manage these tables.
2. Table
- Tables are the core of a database. They consist of rows and columns, and each row represents a record, while each column represents a data attribute.
3. Query
- A query is a request for data from a database. SQL queries are used to retrieve information from tables. The SELECT statement is commonly used for this purpose.
4. Data Types
- SQL supports various data types (e.g., INTEGER, TEXT, DATE) to specify the kind of data that can be stored in a column.
5. Primary Key
- A primary key is a unique identifier for each row in a table. It ensures that each row is distinct and can be used to establish relationships between tables.
6. Foreign Key
- A foreign key is a column in one table that links to the primary key in another table. It creates relationships between tables in a database.
7. CRUD Operations
- SQL provides four primary operations for data manipulation:
- Create (INSERT) - Add new records to a table.
- Read (SELECT) - Retrieve data from one or more tables.
- Update (UPDATE) - Modify existing data.
- Delete (DELETE) - Remove records from a table.
8. WHERE Clause
- The WHERE clause is used in SELECT, UPDATE, and DELETE statements to filter and conditionally manipulate data.
9. JOIN
- JOIN operations are used to combine data from two or more tables based on a related column. Common types include INNER JOIN, LEFT JOIN, and RIGHT JOIN.
10. Index
- An index is a database structure that improves the speed of data retrieval operations. It's created on one or more columns in a table.
11. Aggregate Functions
- SQL provides functions like SUM, AVG, COUNT, MAX, and MIN for performing calculations on groups of data.
12. Transactions
- Transactions are sequences of one or more SQL statements treated as a single unit. They ensure data consistency by either applying all changes or none.
13. Normalization
- Normalization is the process of organizing data in a database to minimize data redundancy and improve data integrity.
14. Constraints
- Constraints (e.g., NOT NULL, UNIQUE, CHECK) are rules that define what data is allowed in a table, ensuring data quality and consistency.
Here is an amazing resources to learn & practice SQL: https://bit.ly/3FxxKPz
Share with credits: https://t.me/sqlspecialist
Hope it helps :)
โค1
Data Analytics Roadmap
|
|-- Fundamentals
| |-- Mathematics
| | |-- Descriptive Statistics
| | |-- Inferential Statistics
| | |-- Probability Theory
| |
| |-- Programming
| | |-- Python (Focus on Libraries like Pandas, NumPy)
| | |-- R (For Statistical Analysis)
| | |-- SQL (For Data Extraction)
|
|-- Data Collection and Storage
| |-- Data Sources
| | |-- APIs
| | |-- Web Scraping
| | |-- Databases
| |
| |-- Data Storage
| | |-- Relational Databases (MySQL, PostgreSQL)
| | |-- NoSQL Databases (MongoDB, Cassandra)
| | |-- Data Lakes and Warehousing (Snowflake, Redshift)
|
|-- Data Cleaning and Preparation
| |-- Handling Missing Data
| |-- Data Transformation
| |-- Data Normalization and Standardization
| |-- Outlier Detection
|
|-- Exploratory Data Analysis (EDA)
| |-- Data Visualization Tools
| | |-- Matplotlib
| | |-- Seaborn
| | |-- ggplot2
| |
| |-- Identifying Trends and Patterns
| |-- Correlation Analysis
|
|-- Advanced Analytics
| |-- Predictive Analytics (Regression, Forecasting)
| |-- Prescriptive Analytics (Optimization Models)
| |-- Segmentation (Clustering Techniques)
| |-- Sentiment Analysis (Text Data)
|
|-- Data Visualization and Reporting
| |-- Visualization Tools
| | |-- Power BI
| | |-- Tableau
| | |-- Google Data Studio
| |
| |-- Dashboard Design
| |-- Interactive Visualizations
| |-- Storytelling with Data
|
|-- Business Intelligence (BI)
| |-- KPI Design and Implementation
| |-- Decision-Making Frameworks
| |-- Industry-Specific Use Cases (Finance, Marketing, HR)
|
|-- Big Data Analytics
| |-- Tools and Frameworks
| | |-- Hadoop
| | |-- Apache Spark
| |
| |-- Real-Time Data Processing
| |-- Stream Analytics (Kafka, Flink)
|
|-- Domain Knowledge
| |-- Industry Applications
| | |-- E-commerce
| | |-- Healthcare
| | |-- Supply Chain
|
|-- Ethical Data Usage
| |-- Data Privacy Regulations (GDPR, CCPA)
| |-- Bias Mitigation in Analysis
| |-- Transparency in Reporting
Free Resources to learn Data Analytics skills๐๐
1. SQL
https://mode.com/sql-tutorial/introduction-to-sql
https://t.me/sqlspecialist/738
2. Python
https://www.learnpython.org/
https://t.me/pythondevelopersindia/873
https://bit.ly/3T7y4ta
https://www.geeksforgeeks.org/python-programming-language/learn-python-tutorial
3. R
https://datacamp.pxf.io/vPyB4L
4. Data Structures
https://leetcode.com/study-plan/data-structure/
https://www.udacity.com/course/data-structures-and-algorithms-in-python--ud513
5. Data Visualization
https://www.freecodecamp.org/learn/data-visualization/
https://t.me/Data_Visual/2
https://www.tableau.com/learn/training/20223
https://www.workout-wednesday.com/power-bi-challenges/
6. Excel
https://excel-practice-online.com/
https://t.me/excel_data
https://www.w3schools.com/EXCEL/index.php
Join @free4unow_backup for more free courses
Like for more โค๏ธ
ENJOY LEARNING ๐๐
|
|-- Fundamentals
| |-- Mathematics
| | |-- Descriptive Statistics
| | |-- Inferential Statistics
| | |-- Probability Theory
| |
| |-- Programming
| | |-- Python (Focus on Libraries like Pandas, NumPy)
| | |-- R (For Statistical Analysis)
| | |-- SQL (For Data Extraction)
|
|-- Data Collection and Storage
| |-- Data Sources
| | |-- APIs
| | |-- Web Scraping
| | |-- Databases
| |
| |-- Data Storage
| | |-- Relational Databases (MySQL, PostgreSQL)
| | |-- NoSQL Databases (MongoDB, Cassandra)
| | |-- Data Lakes and Warehousing (Snowflake, Redshift)
|
|-- Data Cleaning and Preparation
| |-- Handling Missing Data
| |-- Data Transformation
| |-- Data Normalization and Standardization
| |-- Outlier Detection
|
|-- Exploratory Data Analysis (EDA)
| |-- Data Visualization Tools
| | |-- Matplotlib
| | |-- Seaborn
| | |-- ggplot2
| |
| |-- Identifying Trends and Patterns
| |-- Correlation Analysis
|
|-- Advanced Analytics
| |-- Predictive Analytics (Regression, Forecasting)
| |-- Prescriptive Analytics (Optimization Models)
| |-- Segmentation (Clustering Techniques)
| |-- Sentiment Analysis (Text Data)
|
|-- Data Visualization and Reporting
| |-- Visualization Tools
| | |-- Power BI
| | |-- Tableau
| | |-- Google Data Studio
| |
| |-- Dashboard Design
| |-- Interactive Visualizations
| |-- Storytelling with Data
|
|-- Business Intelligence (BI)
| |-- KPI Design and Implementation
| |-- Decision-Making Frameworks
| |-- Industry-Specific Use Cases (Finance, Marketing, HR)
|
|-- Big Data Analytics
| |-- Tools and Frameworks
| | |-- Hadoop
| | |-- Apache Spark
| |
| |-- Real-Time Data Processing
| |-- Stream Analytics (Kafka, Flink)
|
|-- Domain Knowledge
| |-- Industry Applications
| | |-- E-commerce
| | |-- Healthcare
| | |-- Supply Chain
|
|-- Ethical Data Usage
| |-- Data Privacy Regulations (GDPR, CCPA)
| |-- Bias Mitigation in Analysis
| |-- Transparency in Reporting
Free Resources to learn Data Analytics skills๐๐
1. SQL
https://mode.com/sql-tutorial/introduction-to-sql
https://t.me/sqlspecialist/738
2. Python
https://www.learnpython.org/
https://t.me/pythondevelopersindia/873
https://bit.ly/3T7y4ta
https://www.geeksforgeeks.org/python-programming-language/learn-python-tutorial
3. R
https://datacamp.pxf.io/vPyB4L
4. Data Structures
https://leetcode.com/study-plan/data-structure/
https://www.udacity.com/course/data-structures-and-algorithms-in-python--ud513
5. Data Visualization
https://www.freecodecamp.org/learn/data-visualization/
https://t.me/Data_Visual/2
https://www.tableau.com/learn/training/20223
https://www.workout-wednesday.com/power-bi-challenges/
6. Excel
https://excel-practice-online.com/
https://t.me/excel_data
https://www.w3schools.com/EXCEL/index.php
Join @free4unow_backup for more free courses
Like for more โค๏ธ
ENJOY LEARNING ๐๐
โค3
๐จ SQL Interview Challenge (Most Candidates Get This Wrong!)
Ques:
Can you write a query to find employees who earn more than the average salary of their own department?
๐ Sounds simpleโฆ but this is where many people slip.
Ans:
SELECT e.*
FROM employees e
JOIN (
SELECT department_id, AVG(salary) AS avg_salary
FROM employees
GROUP BY department_id
) d
ON e.department_id = d.department_id
WHERE e.salary > d.avg_salary;
๐ Why interviewers love this:
It tests your understanding of correlated logic, aggregation, and joins.
๐ก Key insight:
The comparison is done within each department, not across the entire table.
๐ If this clarified a tricky concept, react with ๐๐ฅ
๐ฒ Follow this channel for more advanced, query-based SQL interview questions ๐
Ques:
Can you write a query to find employees who earn more than the average salary of their own department?
๐ Sounds simpleโฆ but this is where many people slip.
Ans:
SELECT e.*
FROM employees e
JOIN (
SELECT department_id, AVG(salary) AS avg_salary
FROM employees
GROUP BY department_id
) d
ON e.department_id = d.department_id
WHERE e.salary > d.avg_salary;
๐ Why interviewers love this:
It tests your understanding of correlated logic, aggregation, and joins.
๐ก Key insight:
The comparison is done within each department, not across the entire table.
๐ If this clarified a tricky concept, react with ๐๐ฅ
๐ฒ Follow this channel for more advanced, query-based SQL interview questions ๐
โค3
๐ Pandas Interview Question (Query-Based | Tricky)
Ques : You have a DataFrame df with columns customer_id, order_date, and amount.
How would you find customers who placed more than 3 orders AND whose total purchase amount is greater than 50,000?
โ Answer
df.groupby('customer_id')
.agg(order_count=('order_date', 'count'),
total_amount=('amount', 'sum'))
.query('order_count > 3 and total_amount > 50000')
โ ๏ธ Why This Is Tricky
Candidates often apply filters before aggregation or struggle to combine multiple conditions correctly.
๐ก Interview Tip:
For conditions on aggregated values โ groupby โ agg โ query
๐ React if this helped
Ques : You have a DataFrame df with columns customer_id, order_date, and amount.
How would you find customers who placed more than 3 orders AND whose total purchase amount is greater than 50,000?
โ Answer
df.groupby('customer_id')
.agg(order_count=('order_date', 'count'),
total_amount=('amount', 'sum'))
.query('order_count > 3 and total_amount > 50000')
โ ๏ธ Why This Is Tricky
Candidates often apply filters before aggregation or struggle to combine multiple conditions correctly.
๐ก Interview Tip:
For conditions on aggregated values โ groupby โ agg โ query
๐ React if this helped
๐5โค2๐1
Data Analyst Interview Preparation Roadmap โ
Technical skills to revise
- SQL
Write queries from scratch.
Practice joins, group by, subqueries.
Handle duplicates and NULLs.
Window functions basics.
- Excel
Pivot tables without help.
XLOOKUP and IF confidently.
Data cleaning steps.
- Power BI or Tableau
Explain data model.
Write basic DAX.
Explain one dashboard end to end.
- Statistics
Mean vs median.
Standard deviation meaning.
Correlation vs causation.
- Python. If required
Pandas basics.
Groupby and filtering.
Interview question types
- SQL questions
Top N per group.
Running totals.
Duplicate records.
Date based queries.
- Business case questions
Why did sales drop.
Which metric matters most and why.
- Dashboard questions
Explain one KPI.
How users will use this report.
- Project questions
Data source.
Cleaning logic.
Key insight.
Business action.
Resume preparation
- Must have Tools section.
- One strong project.
- Metrics driven points.
Example: Improved reporting time by 30 percent using Power BI.
Mock interviews
- Practice explaining out loud.
- Time your answers.
- Use real datasets.
Daily prep plan
1 SQL problem.
1 dashboard review.
10 interview questions.
- Common mistakes
Memorizing queries.
No project explanation.
Weak business reasoning.
- Final task
- Prepare one project story.
- Prepare one SQL solution on paper.
- Prepare one business metric explanation.
Double Tap โฅ๏ธ For More
Technical skills to revise
- SQL
Write queries from scratch.
Practice joins, group by, subqueries.
Handle duplicates and NULLs.
Window functions basics.
- Excel
Pivot tables without help.
XLOOKUP and IF confidently.
Data cleaning steps.
- Power BI or Tableau
Explain data model.
Write basic DAX.
Explain one dashboard end to end.
- Statistics
Mean vs median.
Standard deviation meaning.
Correlation vs causation.
- Python. If required
Pandas basics.
Groupby and filtering.
Interview question types
- SQL questions
Top N per group.
Running totals.
Duplicate records.
Date based queries.
- Business case questions
Why did sales drop.
Which metric matters most and why.
- Dashboard questions
Explain one KPI.
How users will use this report.
- Project questions
Data source.
Cleaning logic.
Key insight.
Business action.
Resume preparation
- Must have Tools section.
- One strong project.
- Metrics driven points.
Example: Improved reporting time by 30 percent using Power BI.
Mock interviews
- Practice explaining out loud.
- Time your answers.
- Use real datasets.
Daily prep plan
1 SQL problem.
1 dashboard review.
10 interview questions.
- Common mistakes
Memorizing queries.
No project explanation.
Weak business reasoning.
- Final task
- Prepare one project story.
- Prepare one SQL solution on paper.
- Prepare one business metric explanation.
Double Tap โฅ๏ธ For More
โค5
โ
Top 10 Excel Interview Questions & Answers ๐๐ผ
1๏ธโฃ What is Excel and why is it used?
Excel is a spreadsheet program used for organizing, analyzing, and storing data in tabular form. It's widely used for data analysis, reporting, and financial modeling.
2๏ธโฃ Key Excel components?
- Ribbon: Main menu
- Worksheet: A single sheet
- Workbook: A collection of worksheets
- Cell: Intersection of a row and column
3๏ธโฃ What are Excel Functions?
Predefined formulas that perform specific calculations (e.g., SUM, AVERAGE, IF, VLOOKUP).
4๏ธโฃ VLOOKUP vs. INDEX/MATCH?
- VLOOKUP: Searches for a value in the first column and returns a corresponding value.
- INDEX/MATCH: More flexible and overcomes VLOOKUP limitations, better for larger datasets.
5๏ธโฃ What are Pivot Tables?
Interactive tables that summarize and analyze large datasets, allowing you to easily rearrange and filter data.
6๏ธโฃ Conditional Formatting?
Applies formatting (e.g., colors, icons) to cells based on specific criteria, making it easier to identify trends and outliers.
7๏ธโฃ How to remove duplicates?
Use the "Remove Duplicates" feature in the Data tab to eliminate redundant rows based on selected columns.
8๏ธโฃ What are Excel Charts?
Visual representations of data (e.g., bar charts, line charts, pie charts) that help communicate trends and insights.
9๏ธโฃ How to protect a worksheet?
Use the "Protect Sheet" feature in the Review tab to prevent unauthorized changes to the worksheet structure and content.
๐ What are Macros?
Automated sequences of commands that can be recorded and replayed to perform repetitive tasks efficiently.
๐ React โค๏ธ if you found this helpful!
1๏ธโฃ What is Excel and why is it used?
Excel is a spreadsheet program used for organizing, analyzing, and storing data in tabular form. It's widely used for data analysis, reporting, and financial modeling.
2๏ธโฃ Key Excel components?
- Ribbon: Main menu
- Worksheet: A single sheet
- Workbook: A collection of worksheets
- Cell: Intersection of a row and column
3๏ธโฃ What are Excel Functions?
Predefined formulas that perform specific calculations (e.g., SUM, AVERAGE, IF, VLOOKUP).
4๏ธโฃ VLOOKUP vs. INDEX/MATCH?
- VLOOKUP: Searches for a value in the first column and returns a corresponding value.
- INDEX/MATCH: More flexible and overcomes VLOOKUP limitations, better for larger datasets.
5๏ธโฃ What are Pivot Tables?
Interactive tables that summarize and analyze large datasets, allowing you to easily rearrange and filter data.
6๏ธโฃ Conditional Formatting?
Applies formatting (e.g., colors, icons) to cells based on specific criteria, making it easier to identify trends and outliers.
7๏ธโฃ How to remove duplicates?
Use the "Remove Duplicates" feature in the Data tab to eliminate redundant rows based on selected columns.
8๏ธโฃ What are Excel Charts?
Visual representations of data (e.g., bar charts, line charts, pie charts) that help communicate trends and insights.
9๏ธโฃ How to protect a worksheet?
Use the "Protect Sheet" feature in the Review tab to prevent unauthorized changes to the worksheet structure and content.
๐ What are Macros?
Automated sequences of commands that can be recorded and replayed to perform repetitive tasks efficiently.
๐ React โค๏ธ if you found this helpful!
โค4
๐ฅ Python Interview Q&A for Data Analysts (Frequently Asked)
Q1๏ธโฃ Difference between loc and iloc in Pandas?
โ loc โ Label-based indexing (column/row names)
โ iloc โ Integer-position based indexing
Q2๏ธโฃ How do you handle missing values when deletion is not allowed?
โ Use fillna() with mean/median/mode or forward/backward fill based on data context.
Q3๏ธโฃ Difference between apply(), map() and applymap()?
โ map() โ Element-wise on Series
โ apply() โ Row/column-wise on DataFrame
โ applymap() โ Element-wise on entire DataFrame
Q4๏ธโฃ How do you remove duplicate records based on specific columns?
โ df.drop_duplicates(subset=['col1','col2'])
Q5๏ธโฃ Explain groupby() with a real use case.
โ Used for aggregation like sales by region:
df.groupby('region')['sales'].sum()
Q6๏ธโฃ Difference between merge() and join()?
โ merge() โ SQL-style joins on columns
โ join() โ Index-based joining
Q7๏ธโฃ How do you optimize memory usage of a large DataFrame?
โ Downcast dtypes, convert object to category, drop unused columns.
Q8๏ธโฃ What is vectorization and why is it important?
โ Performing operations on entire arrays instead of loops โ much faster execution.
๐ฅ React with ๐ฅ / ๐ if you want more Python & Data Analyst interview posts daily!
Q1๏ธโฃ Difference between loc and iloc in Pandas?
โ loc โ Label-based indexing (column/row names)
โ iloc โ Integer-position based indexing
Q2๏ธโฃ How do you handle missing values when deletion is not allowed?
โ Use fillna() with mean/median/mode or forward/backward fill based on data context.
Q3๏ธโฃ Difference between apply(), map() and applymap()?
โ map() โ Element-wise on Series
โ apply() โ Row/column-wise on DataFrame
โ applymap() โ Element-wise on entire DataFrame
Q4๏ธโฃ How do you remove duplicate records based on specific columns?
โ df.drop_duplicates(subset=['col1','col2'])
Q5๏ธโฃ Explain groupby() with a real use case.
โ Used for aggregation like sales by region:
df.groupby('region')['sales'].sum()
Q6๏ธโฃ Difference between merge() and join()?
โ merge() โ SQL-style joins on columns
โ join() โ Index-based joining
Q7๏ธโฃ How do you optimize memory usage of a large DataFrame?
โ Downcast dtypes, convert object to category, drop unused columns.
Q8๏ธโฃ What is vectorization and why is it important?
โ Performing operations on entire arrays instead of loops โ much faster execution.
๐ฅ React with ๐ฅ / ๐ if you want more Python & Data Analyst interview posts daily!
โค1
๐ Data Analytics โ Key Concepts for Beginners ๐
1๏ธโฃ What is Data Analytics?
โ The process of examining data sets to draw conclusions using tools, techniques, and statistical models.
2๏ธโฃ Types of Data Analytics:
- Descriptive: What happened?
- Diagnostic: Why did it happen?
- Predictive: What could happen?
- Prescriptive: What should we do?
3๏ธโฃ Common Tools:
- Excel
- SQL
- Python (Pandas, NumPy)
- R
- Tableau / Power BI
- Google Data Studio
4๏ธโฃ Basic Skills Required:
- Data cleaning & preprocessing
- Data visualization
- Statistical analysis
- Querying databases
- Business understanding
5๏ธโฃ Key Concepts:
- Data types (numerical, categorical)
- Mean, median, mode
- Correlation vs causation
- Outliers & missing values
- Data normalization
6๏ธโฃ Important Libraries (Python):
- Pandas (data manipulation)
- Matplotlib / Seaborn (visualization)
- Scikit-learn (machine learning)
- Statsmodels (statistical modeling)
7๏ธโฃ Typical Workflow:
Data Collection โ Cleaning โ Analysis โ Visualization โ Reporting
๐ก Tip: Always ask the right business question before jumping into analysis.
๐ฌ Tap โค๏ธ for more!
1๏ธโฃ What is Data Analytics?
โ The process of examining data sets to draw conclusions using tools, techniques, and statistical models.
2๏ธโฃ Types of Data Analytics:
- Descriptive: What happened?
- Diagnostic: Why did it happen?
- Predictive: What could happen?
- Prescriptive: What should we do?
3๏ธโฃ Common Tools:
- Excel
- SQL
- Python (Pandas, NumPy)
- R
- Tableau / Power BI
- Google Data Studio
4๏ธโฃ Basic Skills Required:
- Data cleaning & preprocessing
- Data visualization
- Statistical analysis
- Querying databases
- Business understanding
5๏ธโฃ Key Concepts:
- Data types (numerical, categorical)
- Mean, median, mode
- Correlation vs causation
- Outliers & missing values
- Data normalization
6๏ธโฃ Important Libraries (Python):
- Pandas (data manipulation)
- Matplotlib / Seaborn (visualization)
- Scikit-learn (machine learning)
- Statsmodels (statistical modeling)
7๏ธโฃ Typical Workflow:
Data Collection โ Cleaning โ Analysis โ Visualization โ Reporting
๐ก Tip: Always ask the right business question before jumping into analysis.
๐ฌ Tap โค๏ธ for more!
โค4
How to Become a Data Analyst from Scratch! ๐
Whether you're starting fresh or upskilling, here's your roadmap:
โ Master Excel and SQL - solve SQL problems from leetcode & hackerank
โ Get the hang of either Power BI or Tableau - do some hands-on projects
โ learn what the heck ATS is and how to get around it
โ learn to be ready for any interview question
โ Build projects for a data portfolio
โ And you don't need to do it all at once!
โ Fail and learn to pick yourself up whenever required
Whether it's acing interviews or building an impressive portfolio, give yourself the space to learn, fail, and grow. Good things take time โ
Like if it helps โค๏ธ
I have curated best 80+ top-notch Data Analytics Resources ๐๐
https://topmate.io/analyst/861634
Hope it helps :)
Whether you're starting fresh or upskilling, here's your roadmap:
โ Master Excel and SQL - solve SQL problems from leetcode & hackerank
โ Get the hang of either Power BI or Tableau - do some hands-on projects
โ learn what the heck ATS is and how to get around it
โ learn to be ready for any interview question
โ Build projects for a data portfolio
โ And you don't need to do it all at once!
โ Fail and learn to pick yourself up whenever required
Whether it's acing interviews or building an impressive portfolio, give yourself the space to learn, fail, and grow. Good things take time โ
Like if it helps โค๏ธ
I have curated best 80+ top-notch Data Analytics Resources ๐๐
https://topmate.io/analyst/861634
Hope it helps :)
โค2
Top 100 Data Analyst Interview Questions
โ Data Analytics Basics
1. What is data analytics?
2. Difference between data analytics and data science?
3. What problems does a data analyst solve?
4. What are the types of data analytics?
5. What tools do data analysts use daily?
6. What is a KPI?
7. What is a metric vs KPI?
8. What is descriptive analytics?
9. What is diagnostic analytics?
10. What does a typical day of a data analyst look like?
Data and Databases
11. What is structured data?
12. What is semi-structured data?
13. What is unstructured data?
14. What is a database?
15. Difference between OLTP and OLAP?
16. What is a primary key?
17. What is a foreign key?
18. What is a fact table?
19. What is a dimension table?
20. What is a data warehouse?
SQL for Data Analysts
21. What is SELECT used for?
22. Difference between WHERE and HAVING?
23. What is GROUP BY?
24. What are aggregate functions?
25. Difference between INNER and LEFT JOIN?
26. What are subqueries?
27. What is a CTE?
28. How do you handle duplicates in SQL?
29. How do you handle NULL values?
30. What are window functions?
Excel for Data Analysis
31. What are pivot tables?
32. Difference between VLOOKUP and XLOOKUP?
33. What is conditional formatting?
34. What are COUNTIFS and SUMIFS?
35. What is data validation?
36. How do you remove duplicates in Excel?
37. What is IF formula used for?
38. Difference between relative and absolute reference?
39. How do you clean data in Excel?
40. What are common Excel mistakes analysts make?
Data Cleaning and Preparation
41. What is data cleaning?
42. How do you handle missing data?
43. How do you treat outliers?
44. What is data normalization?
45. What is data standardization?
46. How do you check data quality?
47. What is duplicate data?
48. How do you validate source data?
49. What is data transformation?
50. Why is data preparation important?
Statistics for Data Analysts
51. Difference between mean and median?
52. What is standard deviation?
53. What is variance?
54. What is correlation?
55. Difference between correlation and causation?
56. What is an outlier?
57. What is sampling?
58. What is distribution?
59. What is skewness?
60. When do you use median over mean?
Data Visualization
61. Why is data visualization important?
62. Difference between bar and line chart?
63. When do you use a pie chart?
64. What is a dashboard?
65. What makes a good dashboard?
66. What is a KPI card?
67. Common visualization mistakes?
68. How do you choose the right chart?
69. What is drill down?
70. What is data storytelling?
Power BI or Tableau
71. What is Power BI or Tableau used for?
72. What is a data model?
73. What is a relationship?
74. What is DAX?
75. Difference between measure and calculated column?
76. What is Power Query?
77. What are filters and slicers?
78. What is row level security?
79. What is refresh schedule?
80. How do you optimize reports?
Business and Case Questions
81. How do you analyze a sales drop?
82. How do you define success metrics?
83. What business metrics have you worked on?
84. How do you prioritize insights?
85. How do you validate insights?
86. What questions do you ask stakeholders?
87. How do you handle vague requirements?
88. How do you measure business impact?
89. How do you explain numbers to managers?
90. How do you recommend actions?
Projects and Real World
91. Explain your best project.
92. What data sources did you use?
93. How did you clean the data?
94. What insight had the most impact?
95. What challenge did you face?
96. How did you solve it?
97. How did stakeholders use your dashboard?
98. What would you improve in your project?
99. How do you handle tight deadlines?
100. Why should we hire you as a data analyst?
Double Tap โฅ๏ธ For Detailed Answers
โ Data Analytics Basics
1. What is data analytics?
2. Difference between data analytics and data science?
3. What problems does a data analyst solve?
4. What are the types of data analytics?
5. What tools do data analysts use daily?
6. What is a KPI?
7. What is a metric vs KPI?
8. What is descriptive analytics?
9. What is diagnostic analytics?
10. What does a typical day of a data analyst look like?
Data and Databases
11. What is structured data?
12. What is semi-structured data?
13. What is unstructured data?
14. What is a database?
15. Difference between OLTP and OLAP?
16. What is a primary key?
17. What is a foreign key?
18. What is a fact table?
19. What is a dimension table?
20. What is a data warehouse?
SQL for Data Analysts
21. What is SELECT used for?
22. Difference between WHERE and HAVING?
23. What is GROUP BY?
24. What are aggregate functions?
25. Difference between INNER and LEFT JOIN?
26. What are subqueries?
27. What is a CTE?
28. How do you handle duplicates in SQL?
29. How do you handle NULL values?
30. What are window functions?
Excel for Data Analysis
31. What are pivot tables?
32. Difference between VLOOKUP and XLOOKUP?
33. What is conditional formatting?
34. What are COUNTIFS and SUMIFS?
35. What is data validation?
36. How do you remove duplicates in Excel?
37. What is IF formula used for?
38. Difference between relative and absolute reference?
39. How do you clean data in Excel?
40. What are common Excel mistakes analysts make?
Data Cleaning and Preparation
41. What is data cleaning?
42. How do you handle missing data?
43. How do you treat outliers?
44. What is data normalization?
45. What is data standardization?
46. How do you check data quality?
47. What is duplicate data?
48. How do you validate source data?
49. What is data transformation?
50. Why is data preparation important?
Statistics for Data Analysts
51. Difference between mean and median?
52. What is standard deviation?
53. What is variance?
54. What is correlation?
55. Difference between correlation and causation?
56. What is an outlier?
57. What is sampling?
58. What is distribution?
59. What is skewness?
60. When do you use median over mean?
Data Visualization
61. Why is data visualization important?
62. Difference between bar and line chart?
63. When do you use a pie chart?
64. What is a dashboard?
65. What makes a good dashboard?
66. What is a KPI card?
67. Common visualization mistakes?
68. How do you choose the right chart?
69. What is drill down?
70. What is data storytelling?
Power BI or Tableau
71. What is Power BI or Tableau used for?
72. What is a data model?
73. What is a relationship?
74. What is DAX?
75. Difference between measure and calculated column?
76. What is Power Query?
77. What are filters and slicers?
78. What is row level security?
79. What is refresh schedule?
80. How do you optimize reports?
Business and Case Questions
81. How do you analyze a sales drop?
82. How do you define success metrics?
83. What business metrics have you worked on?
84. How do you prioritize insights?
85. How do you validate insights?
86. What questions do you ask stakeholders?
87. How do you handle vague requirements?
88. How do you measure business impact?
89. How do you explain numbers to managers?
90. How do you recommend actions?
Projects and Real World
91. Explain your best project.
92. What data sources did you use?
93. How did you clean the data?
94. What insight had the most impact?
95. What challenge did you face?
96. How did you solve it?
97. How did stakeholders use your dashboard?
98. What would you improve in your project?
99. How do you handle tight deadlines?
100. Why should we hire you as a data analyst?
Double Tap โฅ๏ธ For Detailed Answers
โค12๐1
โ
Data Analytics Essentials
TECH SKILLS (NON-NEGOTIABLE)
1๏ธโฃ SQL
โข Joins, Group by, Window functions
โข Handle NULLs and duplicates
Example: LEFT JOIN fits a churn query to include non-churned users
2๏ธโฃ Excel
โข Pivot tables, Lookups, IF logic
โข Clean raw data fast
Example: Reconcile 50k rows in minutes using Pivot tables
3๏ธโฃ Power BI or Tableau
โข Data modeling, Measures, Filters
โข One dashboard, One question
Example: Sales drop by region and month dashboard
4๏ธโฃ Python
โข pandas for cleaning and analysis
โข matplotlib or seaborn for quick visuals
Example: Groupby revenue by cohort
5๏ธโฃ Statistics Basics
โข Mean vs median, Variance, Correlation
โข Know when averages lie
Example: Median salary explains skewed data
SOFT SKILLS (DEAL BREAKERS)
1๏ธโฃ Business Thinking
โข Ask why before how
โข Tie insights to decisions
Example: High churn points to onboarding gaps
2๏ธโฃ Communication
โข Explain insights without jargon
โข One slide, One takeaway
Example: Revenue fell due to fewer repeat users
3๏ธโฃ Problem Framing
โข Convert vague asks into clear questions
โข Define metrics early
Example: What defines an active user?
4๏ธโฃ Attention to Detail
โข Validate numbers
โข Double check logic
โข Small errors kill trust
5๏ธโฃ Stakeholder Handling
โข Listen first
โข Clarify scope
โข Push back with data
๐ฏ Balance both tech and soft skills to grow faster as an analyst
Double Tap โฅ๏ธ For More
TECH SKILLS (NON-NEGOTIABLE)
1๏ธโฃ SQL
โข Joins, Group by, Window functions
โข Handle NULLs and duplicates
Example: LEFT JOIN fits a churn query to include non-churned users
2๏ธโฃ Excel
โข Pivot tables, Lookups, IF logic
โข Clean raw data fast
Example: Reconcile 50k rows in minutes using Pivot tables
3๏ธโฃ Power BI or Tableau
โข Data modeling, Measures, Filters
โข One dashboard, One question
Example: Sales drop by region and month dashboard
4๏ธโฃ Python
โข pandas for cleaning and analysis
โข matplotlib or seaborn for quick visuals
Example: Groupby revenue by cohort
5๏ธโฃ Statistics Basics
โข Mean vs median, Variance, Correlation
โข Know when averages lie
Example: Median salary explains skewed data
SOFT SKILLS (DEAL BREAKERS)
1๏ธโฃ Business Thinking
โข Ask why before how
โข Tie insights to decisions
Example: High churn points to onboarding gaps
2๏ธโฃ Communication
โข Explain insights without jargon
โข One slide, One takeaway
Example: Revenue fell due to fewer repeat users
3๏ธโฃ Problem Framing
โข Convert vague asks into clear questions
โข Define metrics early
Example: What defines an active user?
4๏ธโฃ Attention to Detail
โข Validate numbers
โข Double check logic
โข Small errors kill trust
5๏ธโฃ Stakeholder Handling
โข Listen first
โข Clarify scope
โข Push back with data
๐ฏ Balance both tech and soft skills to grow faster as an analyst
Double Tap โฅ๏ธ For More
โค5๐ฅฐ1
Data Analysis Interview Questions
1. What is the difference between Primary Key and Foreign Key? (SQL Basics)
2. Write a query to find the second highest salary in the Employee table.
3. How do you handle missing values in a dataset? (Data Cleaning)
4. What is the difference between COUNT(*), COUNT(column), and COUNT(DISTINCT column)?
5. What are measures of central tendency in statistics? (Stats Basics)
6. What is a window function in SQL? Provide examples of ROW_NUMBER and RANK.
7. Write a query to fetch the top 3 performing products based on sales.
8. Explain the difference between UNION and UNION ALL.
9. Explain p-value in hypothesis testing. (Statistics)
10. How would you detect outliers in a dataset? (EDA)
11. Write a query to get the top 3 departments with the highest average salary. (SQL + Aggregation)
12. What is correlation? How do you interpret it? (Statistics)
13. Explain the difference between DELETE and TRUNCATE commands.
14. What are KPIs? Give examples for an e-commerce company. (Business)
15. How do you calculate a running total in SQL? (Window Functions โ Advanced SQL)
16. Explain the difference between Correlation and Regression. (Stats)
17. How do you handle imbalanced datasets in classification problems? (ML + Analytics)
18. How would you design an A/B test for a new pricing model? (Experiment Design)
19. How would you detect anomalies in financial transactions? (Real-World Case)
Data Analysis/Scenario-Based Questions
20. Write a query to identify the most profitable regions based on transaction data.
21. How would you analyze customer churn using SQL?
22. Explain the difference between OLAP and OLTP databases.
23. How would you determine the Average Revenue Per User (ARPU) from transaction data?
24. Describe a scenario where you would use a LEFT JOIN instead of an INNER JOIN.
25. Write a query to calculate YoY (Year-over-Year) growth for a set of transactions.
26. How would you implement fraud detection using transactional data?
27. Write a query to find customers who have used more than 2 credit cards for transactions in a given month.
28. How would you approach a business problem where you need to analyze the spending patterns of premium customers?
1. What is the difference between Primary Key and Foreign Key? (SQL Basics)
2. Write a query to find the second highest salary in the Employee table.
3. How do you handle missing values in a dataset? (Data Cleaning)
4. What is the difference between COUNT(*), COUNT(column), and COUNT(DISTINCT column)?
5. What are measures of central tendency in statistics? (Stats Basics)
6. What is a window function in SQL? Provide examples of ROW_NUMBER and RANK.
7. Write a query to fetch the top 3 performing products based on sales.
8. Explain the difference between UNION and UNION ALL.
9. Explain p-value in hypothesis testing. (Statistics)
10. How would you detect outliers in a dataset? (EDA)
11. Write a query to get the top 3 departments with the highest average salary. (SQL + Aggregation)
12. What is correlation? How do you interpret it? (Statistics)
13. Explain the difference between DELETE and TRUNCATE commands.
14. What are KPIs? Give examples for an e-commerce company. (Business)
15. How do you calculate a running total in SQL? (Window Functions โ Advanced SQL)
16. Explain the difference between Correlation and Regression. (Stats)
17. How do you handle imbalanced datasets in classification problems? (ML + Analytics)
18. How would you design an A/B test for a new pricing model? (Experiment Design)
19. How would you detect anomalies in financial transactions? (Real-World Case)
Data Analysis/Scenario-Based Questions
20. Write a query to identify the most profitable regions based on transaction data.
21. How would you analyze customer churn using SQL?
22. Explain the difference between OLAP and OLTP databases.
23. How would you determine the Average Revenue Per User (ARPU) from transaction data?
24. Describe a scenario where you would use a LEFT JOIN instead of an INNER JOIN.
25. Write a query to calculate YoY (Year-over-Year) growth for a set of transactions.
26. How would you implement fraud detection using transactional data?
27. Write a query to find customers who have used more than 2 credit cards for transactions in a given month.
28. How would you approach a business problem where you need to analyze the spending patterns of premium customers?
โค7
๐ Data Analytics Career Paths & What to Learn ๐ง ๐
๐งฎ 1. Data Analyst
โถ๏ธ Tools: Excel, SQL, Power BI, Tableau
โถ๏ธ Skills: Data cleaning, data visualization, business metrics
โถ๏ธ Languages: Python (Pandas, Matplotlib)
โถ๏ธ Projects: Sales dashboards, customer insights, KPI reports
๐ 2. Business Analyst
โถ๏ธ Tools: Excel, SQL, PowerPoint, Tableau
โถ๏ธ Skills: Requirements gathering, stakeholder communication, data storytelling
โถ๏ธ Domain: Finance, Retail, Healthcare
โถ๏ธ Projects: Market analysis, revenue breakdowns, business forecasts
๐ง 3. Data Scientist
โถ๏ธ Tools: Python, R, Jupyter, Scikit-learn
โถ๏ธ Skills: Statistics, ML models, feature engineering
โถ๏ธ Projects: Churn prediction, sentiment analysis, classification models
๐งฐ 4. Data Engineer
โถ๏ธ Tools: SQL, Python, Spark, Airflow
โถ๏ธ Skills: Data pipelines, ETL, data warehousing
โถ๏ธ Platforms: AWS, GCP, Azure
โถ๏ธ Projects: Real-time data ingestion, data lake setup
๐ฆ 5. Product Analyst
โถ๏ธ Tools: Mixpanel, SQL, Excel, Tableau
โถ๏ธ Skills: User behavior analysis, A/B testing, retention metrics
โถ๏ธ Projects: Feature adoption, funnel analysis, product usage trends
๐ 6. Marketing Analyst
โถ๏ธ Tools: Google Analytics, Excel, SQL, Looker
โถ๏ธ Skills: Campaign tracking, ROI analysis, segmentation
โถ๏ธ Projects: Ad performance, customer journey, CLTV analysis
๐งช 7. Analytics QA (Data Quality Tester)
โถ๏ธ Tools: SQL, Python (Pytest), Excel
โถ๏ธ Skills: Data validation, report testing, anomaly detection
โถ๏ธ Projects: Dataset audits, test case automation for dashboards
๐ก Tip: Pick a role โ Learn tools โ Practice with real datasets โ Build a portfolio โ Share insights
๐ฌ Tap โค๏ธ for more!
๐งฎ 1. Data Analyst
โถ๏ธ Tools: Excel, SQL, Power BI, Tableau
โถ๏ธ Skills: Data cleaning, data visualization, business metrics
โถ๏ธ Languages: Python (Pandas, Matplotlib)
โถ๏ธ Projects: Sales dashboards, customer insights, KPI reports
๐ 2. Business Analyst
โถ๏ธ Tools: Excel, SQL, PowerPoint, Tableau
โถ๏ธ Skills: Requirements gathering, stakeholder communication, data storytelling
โถ๏ธ Domain: Finance, Retail, Healthcare
โถ๏ธ Projects: Market analysis, revenue breakdowns, business forecasts
๐ง 3. Data Scientist
โถ๏ธ Tools: Python, R, Jupyter, Scikit-learn
โถ๏ธ Skills: Statistics, ML models, feature engineering
โถ๏ธ Projects: Churn prediction, sentiment analysis, classification models
๐งฐ 4. Data Engineer
โถ๏ธ Tools: SQL, Python, Spark, Airflow
โถ๏ธ Skills: Data pipelines, ETL, data warehousing
โถ๏ธ Platforms: AWS, GCP, Azure
โถ๏ธ Projects: Real-time data ingestion, data lake setup
๐ฆ 5. Product Analyst
โถ๏ธ Tools: Mixpanel, SQL, Excel, Tableau
โถ๏ธ Skills: User behavior analysis, A/B testing, retention metrics
โถ๏ธ Projects: Feature adoption, funnel analysis, product usage trends
๐ 6. Marketing Analyst
โถ๏ธ Tools: Google Analytics, Excel, SQL, Looker
โถ๏ธ Skills: Campaign tracking, ROI analysis, segmentation
โถ๏ธ Projects: Ad performance, customer journey, CLTV analysis
๐งช 7. Analytics QA (Data Quality Tester)
โถ๏ธ Tools: SQL, Python (Pytest), Excel
โถ๏ธ Skills: Data validation, report testing, anomaly detection
โถ๏ธ Projects: Dataset audits, test case automation for dashboards
๐ก Tip: Pick a role โ Learn tools โ Practice with real datasets โ Build a portfolio โ Share insights
๐ฌ Tap โค๏ธ for more!
โค5