These are the most important Python topics to revise before your Data Analytics interview:
Basics of Python
1. Data Types and Operations: Strings, lists, tuples, dictionaries.
2. Control Structures: If-elif-else, for and while loops, list comprehensions.
3. Functions: Defining, arguments, lambda functions, scope.
4. Exception Handling: Try, except, finally.
5. Practise Basic FAQ Questions:
1. How to merge two dictionaries?
2. How to sort a list of dictionaries by a specific key?
3. How to find the second largest number in a list?
4. How to find the intersection of two lists?
5. How to reverse a string in Python?
6. How to slice a string in Python?
7. How to find the largest/smallest number in a list?
8. How to remove duplicates from a list?
9. How to count the occurrences of each element in a list?
10. How to check if a string is a palindrome?
Pandas
1. Data Structures: Series and DataFrame.
2. Data Manipulation: Creating, selecting, filtering, and modifying DataFrames.
3. Data Aggregation: Grouping, pivot tables, aggregation functions.
4. Handling Missing Values: Detecting, filling, removing.
5. Merging Data: Using merge, join, and concat.
6. Exploratory Data Analysis:
1. Descriptive Statistics
2. Data Visualization with Pandas (Line Plots, Bar Plots, Histograms)
3. Correlation and Covariance
4. Handling Duplicates
5. Data Transformation
NumPy
1. NumPy Arrays:
a. Differences between NumPy arrays and Python lists
b. Creating arrays from lists, ranges, and using arange(), linspace().
2. Array Operations:
a. Basic Arithmetic Operations: Addition, Subtraction, Multiplication, Division.
b. Universal Functions: np.sum(), np.mean(), np.std(), etc.
c. Slicing and Indexing: Accessing sub-arrays, reversing arrays.
Integration and Other Key Concepts
1. Visualisation: Basic plots with Pandas and other libraries like Matplotlib.
2. Data Cleaning: Handling duplicates, missing values, data transformations (scaling,
normalisation).
3. File Handling: Reading/writing CSV, JSON files.
4. Combining Data: Merging datasets, understanding different types of joins.