Data transformation prepares the dataset for better analysis and modelling. Depending on the dataset, we may need to modify or convert the data so that it is in a suitable format for analysis.
•Scaling or normalizing numerical variables like min-max scaling or standardization. •Encoding categorical variables for machine learning like one-hot encoding or label encoding. •Applying mathematical transformations like logarithmic square root to correct skewness or non linearity. •Creating new features by deriving useful information from existing variables •Aggregating or grouping data based on specific variables or conditions.