TypeError: fit_transform() missing 1 required positional argument: 'X'
You are assigning sc_X
a reference to the StandardScaler
class.
but fit_transform()
is is not a class method, but an instance method.
This means that you have to create an instance of the class.
So,
sc_X = StandardScaler
should be:
sc_X = StandardScaler()
You need to create the class instance :
sc_X = StandardScaler()
as fit_transform()
is instance method not a class method