๐ Most Asked Pandas Interview Questions ๐ผ
๐ง 1. Difference between loc[] and iloc[]
๐ loc[] is label-based indexing, while iloc[] is position-based indexing.
๐ง 2. What does isna() do?
๐ It detects missing values and returns a boolean (True/False) mask.
๐ง 3. Default axis in drop()
๐ Default is axis=0, which means rows are dropped.
๐ง 4. What does groupby() return?
๐ It returns a GroupBy object, not a DataFrame directly.
๐ง 5. What happens if fillna() is not assigned?
๐ It returns a new DataFrame; original data remains unchanged.
React for more interview questions โฅ๏ธ
Post #2230
1.28K
- โค 4