Professional Documents
Culture Documents
Python Interview Questions
Python Interview Questions
Python Interview Questions
Python Basics
1. What is the difference between a tuple and a list?
2. Is a list mutable or immutable?
3. What built-in data types are used in Python?
4. How do you install a Python package?
5. What are the different ways of writing comments in Python?
6. Could you provide an explanation of the range() function in Python?
7. What is the approach to handling exceptions in Python?
8. What is the difference between a module and a package?
9. What is the difference between dictionaries and JSON?
Data Types:
1. What is the difference between a tuple and a list?
2. Is a list mutable or immutable?
3. What built-in data types are used in Python?
Pandas:
1. How are joins and merges different from each other in Pandas?
2. How do loc and iloc differ from each other in Pandas?
3. What are the differences between a Series and a DataFrame in Pandas?
4. How do loc and iloc differ in their usage for data indexing in Pandas?
5. What is the process for joining two DataFrames using Pandas?
6. In Pandas, what are the techniques for managing missing data?
7. What is the process for renaming a column in a Pandas DataFrame?
8. How do you select multiple columns from a Pandas DataFrame?
9. Have you used the pivot_table function in Pandas? Explain the purpose of a pivot table
and how you have used it in your data analysis projects.
10. How would you filter rows in a Pandas DataFrame based on multiple conditions? Explain
the different methods you have used for filtering.
11. Have you worked with time series data in Pandas? If so, explain how you have used
resampling techniques to aggregate data at different time intervals.
12. Can you describe the process of handling outliers in a Pandas DataFrame? What
methods or techniques have you used to identify and deal with outliers?
13. Explain the concept of hierarchical indexing (MultiIndex) in Pandas and its significance in
organizing and manipulating data.
14. Have you used the pivot_table function in Pandas? Describe a scenario where you have
applied pivot tables for data analysis or summarization.