text_html_output_1.png
from sklearn.compose import ColumnTransformer

from sklearn.preprocessing import OneHotEncoder, StandardScaler

import pandas as pd

df = pd.read_csv('../input/fish-market/Fish.csv')

df.isna().sum()

corr = df.corr()
corr

X = df.drop('Weight', axis=1)
y = df['Weight']
(X.shape, y.shape)

from sklearn.compose import ColumnTransformer
from sklearn.preprocessing import OneHotEncoder, StandardScaler
ct = ColumnTransformer(transformers=[('encoder', OneHotEncoder(), [0])], remainder='passthrough')
transformed_X = ct.fit_transform(X, y)

transformed_X[0]