Data Science with Python Certification Cheat Sheet 2026
The 30 highest-yield Data Science with Python Certification facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.
60 questions
90 min time limit
70.00% to pass
- Which step in the Expectation-Maximization (EM) algorithm computes the probability of each point belonging to each cluster? → E-step (Expectation)
- Which forecasting model captures both trend and seasonality using exponential smoothing? → Holt-Winters model
- What does df.astype({'age': 'int32', 'score': 'float32'}) accomplish? → Casts the specified columns to new data types to reduce memory usage
- Which statistical method measures the linear relationship strength between two continuous variables? → Pearson correlation coefficient
- In seaborn, which plot type is most appropriate for visualizing the distribution of a single continuous variable? → sns.histplot()
- In feature engineering, what is 'weight of evidence' (WoE) encoding primarily used for? → Encoding categorical variables for binary classification
- What is a confidence interval in statistics? → A range likely to contain the true population parameter
- Which Python function calculates the standard error of the mean? → scipy.stats.sem()
- When using `sklearn.decomposition.PCA`, what does `explained_variance_ratio_` return? → The fraction of total variance explained by each principal component
- What does `df.groupby('category').mean()` compute in pandas? → The mean of all numeric columns grouped by unique values in 'category'
- In spaCy, what attribute of a `Token` object returns its part-of-speech tag? → token.pos_
- What does Python's "capture" cell magic command not support? → It cannot be used to capture graphical cell output
- In Matplotlib, which function saves the current figure to a file? → plt.savefig()
- In Matplotlib, which method saves the current figure to a file? → plt.savefig()
- What does the PACF (Partial Autocorrelation Function) help determine in ARIMA modeling? → The AR (p) order
- What is the output dtype of np.array([1, 2.0, 3])? → float64
- What is the purpose of a learning curve in model evaluation? → To diagnose whether a model suffers from high bias or high variance
- What does `np.where(condition, x, y)` return? → Elements from x where condition is True, otherwise from y
- Choose a non-indexed object. → None of these
- Which pandas dtype is assigned to a column containing text strings by default? → object
- What is the output of np.array([1,2,3]).reshape(3,1).shape? → (3,1)
- Which of the following is NOT a valid initialization strategy for K-Means in scikit-learn? → 'ward'
- How do you add a title to a Matplotlib subplot using the axes object 'ax'? → ax.set_title('My Title')
- What does the cophenetic correlation coefficient measure in hierarchical clustering? → How faithfully the dendrogram preserves pairwise distances
- When using sklearn's train_test_split, what does the stratify parameter do? → Preserves the class distribution in both train and test sets
- In pandas, what does df.duplicated().sum() compute? → The total number of duplicate rows in the DataFrame
- What does the following Python code produce? a, b = 0, 1 while b print(b, end=' '); a, b = b, a+b → 1 1 2 3 5 8 1 3
- Which algorithm would be most suitable for a dataset with 1 million samples and 500 features where training speed is critical? → Stochastic Gradient Descent Classifier
- What is broadcasting in NumPy? → Performing element-wise operations on arrays of different shapes
- When analyzing a dataset for outliers using the IQR method, which values are typically flagged? → Values below Q1 - 1.5*IQR or above Q3 + 1.5*IQR
Turn these facts into recall:
Was this helpful?