> I guess you mean:

> X1hot = onehot.fit_transform(X)
> X *= 2  # absurd example

> then X1hot changes?

That's exactly what I have in mind. I've been working with library that
have inconsistent copy behavior, and I usual end up forcing the copy
myself, just to avoid surprises.