On this page
What should EDA start with?
A row can represent a customer, an order or a daily total. Those units require different analyses even when column names match. The target matters too: contacting the wrong customer and underestimating demand have different consequences. Without a clear unit and data dictionary, attractive charts can answer the wrong question. Early exploration therefore clarifies business meaning rather than simply describing the file format.
Understanding provenance and timestamps
Identify the producing system, event time, update time and correction policy for every important field. A table that has been revised today may differ from what was available at a past decision point. Point-in-time correctness matters for modeling. Using post-campaign behavior to predict a pre-campaign outcome is leakage. Capture ETL versions, source systems and ingestion lag. Even a carefully split train/test set can misrepresent the past if its features were not available when decisions were made.
Analyzing missing-data patterns
A missing-value percentage is a starting point, not an explanation. Examine missingness by class, store and time period. MCAR, MAR and MNAR describe different assumptions; the true mechanism is often not identifiable from observed data alone. Some blanks mean “not applicable” rather than missing measurement. Replacing all blanks with zero or mean values can change business meaning. Fit imputation only on training data and apply the learned transform to validation/test. Missingness indicators may be useful in some models.
Are outliers actually errors?
An unusually large order can be a data-entry error or a genuine enterprise sale. Automatically deleting extremes may remove the very events a business needs to understand. Investigate unit errors, sign conventions, date formats and original records first. Boxplots and IQR identify candidates for review, not definitive mistakes. Log transformations, robust scaling or winsorization should be evaluated against the task. In fraud and failure detection, rare extremes may be the target behavior. Record why each category of observation is excluded.
Categorical features, cardinality and types
Customer IDs, postal codes, product classes and measured quantities can all appear numeric while carrying different meanings. Treating identifiers as continuous variables creates artificial ordering. High-cardinality categories can inflate one-hot features; target encoding can leak the label if computed outside proper folds. Date fields need time zones and event-time definitions. A data dictionary covering expected type, range and null semantics creates a stronger foundation for every later model.
Target definition and class balance
A churn label can mean no purchase in thirty days or cancellation of a subscription; the same score means different things under those definitions. Changing prevalence can also make aggregate accuracy misleading. Label formation across time and subgroups therefore matters. Records corrected later introduce uncertainty about when a label becomes mature. Differences in target definition can matter more than feature selection or an algorithm change.
Relationships and subgroup analysis
High correlation does not establish causation. A shared time trend, measurement method or third variable can produce the same pattern. One store or large customer may also dominate an aggregate summary. The direction or size of an association can change across subgroups, while very large datasets can make tiny effects statistically detectable. A correlation matrix alone cannot explain these distinctions without sample size, uncertainty and business context.
When an exploratory finding changes the model
Exploration contributes directly to modelling when it explains which fields are reliable and how records should be handled. Discovering that a column appears only after decision time may matter more than how missing values in it are filled. The effect of cleaning choices on a simple model helps distinguish useful changes. Reworking the test set after every new finding, however, weakens its independence. Changes in the source system can also invalidate earlier data assumptions.
A sales table with returns and duplicate records
Illustrative scenario; not a measured project result.
A retail sales table may contain duplicated days. Returns may be stored as negative sales in one store but recorded separately in another. These issues need resolution before training a forecast model. When “sales” has different meanings across stores, the problem is a data contract, not a modeling deficiency. This is an illustrative scenario, not a claim about a client dataset.
The data decisions left after the charts
If two stores record returns differently, one histogram cannot explain the discrepancy. The question is first whether the same column represents the same event. Missingness, outliers and label formation eventually lead to similarly concrete data decisions. When modelling begins, the useful output is not the number of charts but a clear account of which records changed, why they changed and when each field was available.
Frequently asked questions
When is EDA complete?
When field meanings, quality risks and necessary modeling corrections are documented sufficiently for the next decision.
Should all outliers be removed?
No. They may represent real, important events and require provenance checks.
Can missing values be imputed in the test set?
Apply imputation learned on training data; do not fit it on the test set.