TGViewer
Data Analytics Data Analytics @sqlspecialist ยท 111K subscribers
Post #2471 10.3K
๐Ÿง ๐Ÿ“Š Data Analyst Interview Questions with Answers: Part-4

31. What is ETL process? ๐Ÿ”„
ETL stands for Extract, Transform, Load.
- Extract: Pulling data from sources (databases, APIs, files) ๐Ÿ“ค
- Transform: Cleaning, formatting, and applying business logic ๐Ÿ› ๏ธ
- Load: Saving the transformed data into a data warehouse or system ๐Ÿ“ฅ
It helps consolidate data for reporting and analysis.

32. What are some challenges in data cleaning? ๐Ÿšซ
- Missing values ๐Ÿคท
- Duplicates ๐Ÿ‘ฏ
- Inconsistent formats (e.g., date formats, units) ๐Ÿงฉ
- Outliers ๐Ÿ“ˆ
- Incorrect or incomplete data โŒ
- Merging data from multiple sources ๐Ÿค
Cleaning is time-consuming but critical for accurate analysis.

33. What is data wrangling? ๐Ÿงน
Also known as data munging, itโ€™s the process of transforming raw data into a usable format.
Includes:
- Cleaning โœจ
- Reshaping ๐Ÿ“
- Combining datasets ๐Ÿ”—
- Dealing with missing values or outliers ๐Ÿ—‘๏ธ

34. How do you handle missing data? โ“
- Remove rows/columns (if missingness is high) โœ‚๏ธ
- Imputation (mean, median, mode) ๐Ÿ”ข
- Forward/backward fill โžก๏ธโฌ…๏ธ
- Using models (KNN, regression) ๐Ÿค–
- Always analyze why data is missing before deciding.

35. What is data normalization in Python? โš–๏ธ
Normalization scales numerical data to a common range (e.g., 0 to 1).
Common methods:
from sklearn.preprocessing import MinMaxScaler
scaler = MinMaxScaler()
normalized_data = scaler.fit_transform(data)

Useful for ML models to prevent bias due to varying value scales.

36. Difference between .loc and .iloc in Pandas ๐Ÿ“๐Ÿ”ข
- .loc[]: Label-based indexing

  df.loc[2]       # Row with label 2
df.loc[:, 'age'] # All rows, 'age' column

- .iloc[]: Integer position-based indexing

  df.iloc[2]      # Third row
df.iloc[:, 1] # All rows, second column


37. How do you merge dataframes in Pandas? ๐Ÿค
Using merge() or concat()
pd.merge(df1, df2, on='id', how='inner')  # SQL-style joins
pd.concat([df1, df2], axis=0) # Stack rows

Choose keys and join types (inner, left, outer) based on data structure.

38. Explain groupby() in Pandas ๐Ÿ“Š
Used to group data and apply aggregation.
df.groupby('category')['sales'].sum()

Steps:
1. Split data into groups ๐Ÿงฉ
2. Apply function (sum, mean, count) ๐Ÿงฎ
3. Combine result ๐Ÿ“ˆ

39. What are NumPy arrays? โž•
N-dimensional arrays used for fast numeric computation.
Faster than Python lists and support vectorized operations.
import numpy as np
a = np.array([1, 2, 3])


40. How to handle large datasets efficiently? ๐Ÿš€
- Use chunking (read_csv(..., chunksize=10000))
- Use NumPy or Dask for faster ops
- Filter unnecessary columns early
- Use vectorized operations instead of loops
- Work with cloud data tools (BigQuery, Spark)

๐Ÿ’ฌ Tap โค๏ธ if this was helpful!
  • โค 18
  • ๐Ÿ”ฅ 1
More from @sqlspecialist
  1. Oct 12, 20268๏ธโƒฃ You receive a dataset with inconsistent date formats. How would you clean it? Sample Aโ€ฆ
  2. Oct 12, 2026๐Ÿ“Š Data Analyst Interview Series โ€” Part 7 Guys, let's continue our Data Analyst Interviewโ€ฆ
  3. Oct 12, 2026๐Ÿš€ ๐—ช๐—ต๐—ถ๐—ฐ๐—ต ๐—ง๐—ฒ๐—ฐ๐—ต ๐—ฆ๐—ธ๐—ถ๐—น๐—น ๐—ช๐—ถ๐—น๐—น ๐—ฌ๐—ผ๐˜‚ ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ? Want to builโ€ฆ
  4. Oct 9, 2026โ€œHere, the data is sorted by the second column in descending order and the first five rowsโ€ฆ
  5. Oct 9, 2026๐Ÿ“Š Data Analyst Interview Series โ€” Part 6 Guys, let's continue our Data Analyst Interviewโ€ฆ
  6. Oct 9, 2026๐Ÿ‡ฎ๐Ÿ‡ณ ๐—š๐—ข๐—ฉ๐—˜๐—ฅ๐—ก๐— ๐—˜๐—ก๐—ง ๐—ข๐—™ ๐—œ๐—ก๐——๐—œ๐—” โ€” ๐—”๐—œ๐—–๐—ง๐—˜ ๐—œ๐—ก๐—ง๐—˜๐—ฅ๐—ก๐—ฆ๐—›๐—œ๐—ฃ๐—ฆ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ ๐Ÿš€โ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’