Error in Transforming one-hot category columns

While doing one hot encoder for categorical column I got an error which shows like the below image.
I am getting error while transforming and adding new one-hot category columns.
Can Anyone help me out?

I would say you want to encode


Use something like fitting your categorical data through the fitted encoder

inputs_df[encoded_cols] = encoder.transform(inputs_df[categorical_cols])

I’m doing the same, but still getting the same Error.