Navigating Pitfalls: Evaluating LLMs in Machine Learning Programming Education