Ass2 Transformation
Ass2 Transformation
import pandas as pd
data = pd.read_csv('datafile.csv')
print(data.head())
data.describe()
data['column_name'].fillna(data['column_name'].median(), inplace=True)
scaler = MinMaxScaler()
Conclusion
Think of data transformation as the magical incantation in the
world of data analysis. With the wave of our Python wand, our
data changes form, size, and nature, revealing patterns and
insights that were previously hidden.
So, the next time you face a block of raw data, remember the
techniques discussed today. Dive into it with confidence,
knowing that with the right tools and transformations, that
block of data will soon become a sculpture of insights.