[Python] what is different between fit_transform, transform in sklearn and get_dummies in...

Discussão em 'Python' iniciado por Stack, Março 14, 2025.

  1. Stack

    Stack Membro Participativo

    When I do data processing with one-hot-encoding in sklearn and pandas, I have two options:

    1st way: train_data uses fit_transform and test_data uses transform only

    2nd way: or I can use pandas get_dummies for both

    What is differences between them? And do they have the same effects?

    Thank you

    Continue reading...

Compartilhe esta Página