What does the axis argument mean in NumPy reductions?
Simple meaning
axis specifies which dimension you collapse: axis=0 reduces over rows for a 2D array, leaving columns.
Open the full page for Why, Steps, Example and Key takeaway.
Panel-ready Data Science track questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.
axis specifies which dimension you collapse: axis=0 reduces over rows for a 2D array, leaving columns.
Open the full page for Why, Steps, Example and Key takeaway.
Vectorized ufuncs run in compiled code over contiguous memory and can use SIMD.
Open the full page for Why, Steps, Example and Key takeaway.
A boolean mask of the same shape selects positions where the mask is True, returning a one-dimensional collection of those values for a 1D array.
Open the full page for Why, Steps, Example and Key takeaway.
LEFT JOIN keeps every row from the left table and fills unmatched right columns with NULL.
Open the full page for Why, Steps, Example and Key takeaway.
Window functions compute aggregates or ranks over a partition while keeping row-level detail, using an OVER clause with partition and order keys.
Open the full page for Why, Steps, Example and Key takeaway.
A common table expression is a named subquery introduced with WITH, which you can reference like a temporary table.
Open the full page for Why, Steps, Example and Key takeaway.
DISTINCT removes duplicate full rows but does not compute sums, and it can hide that you joined explosively and then deduped.
Open the full page for Why, Steps, Example and Key takeaway.
NULL means unknown, so NULL = NULL is not true and WHERE col = NULL filters nothing
Open the full page for Why, Steps, Example and Key takeaway.
A correlation matrix screens pairwise linear associations among numeric features and can flag redundant predictors.
Open the full page for Why, Steps, Example and Key takeaway.
Leakage shows up as features that would not be known at prediction time, perfect separation, or timestamps after the label.
Open the full page for Why, Steps, Example and Key takeaway.
Duplicates inflate counts, double-weight users in means, and can be real repeated events or pipeline bugs.
Open the full page for Why, Steps, Example and Key takeaway.
Cardinality is the number of distinct values.
Open the full page for Why, Steps, Example and Key takeaway.
MCAR means missingness is unrelated to observed and unobserved values.
Open the full page for Why, Steps, Example and Key takeaway.
Median imputation is more robust on skewed numeric columns because a few giants do not dominate the fill value.
Open the full page for Why, Steps, Example and Key takeaway.
The fact of missingness can itself predict the outcome, for example users who skip billing fields.
Open the full page for Why, Steps, Example and Key takeaway.
Listwise deletion drops a whole row if any analysis variable is missing.
Open the full page for Why, Steps, Example and Key takeaway.
Values below Q1 minus one-and-a-half IQRs or above Q3 plus one-and-a-half IQRs are conventional box-plot outliers.
Open the full page for Why, Steps, Example and Key takeaway.
A common rule flags |z| greater than 3 under an approximate normal model.
Open the full page for Why, Steps, Example and Key takeaway.
Keep them when they are valid rare events you care about, such as whale spenders, outages, or fraud.
Open the full page for Why, Steps, Example and Key takeaway.
Winsorization caps extreme values at chosen percentiles instead of dropping rows, so sample size stays the same.
Open the full page for Why, Steps, Example and Key takeaway.