I am trying to do label encoding using sci kit learn's built in function but why does my result print as row instead of an additional column?
from sklearn.preprocessing import LabelEncoder
# creating instance of labelencoder
labelencoder = LabelEncoder()
# Assigning numerical values and storing in another column
y_data['coded_sklearn'] = labelencoder.fit_transform(y_data['coded_sklearn'])
print(y_data)