Aug 13, 2021
Hi Madhu Sudhan,
Yes, I agree that using pd.get_dummies() before train test split will solve column mismatch issue. But this may cause issue for future unseen points, as the characteristics of encoding are not saved.
Thanks
Hi Madhu Sudhan,
Yes, I agree that using pd.get_dummies() before train test split will solve column mismatch issue. But this may cause issue for future unseen points, as the characteristics of encoding are not saved.
Thanks
Data Scientist | 3.5 M+ Views | Connect: https://www.linkedin.com/in/satkr/ | Unlimited Reads: https://satyam-kumar.medium.com/membership