Hey everyone! I'm a Mechanical Engineering student diving into Python for data science and machine learning, and I have to say, the libraries like Pandas, NumPy, and Scikit-learn are blowing my mind! I can typically identify what a function does just by its name, but when it comes to coding, my brain just goes blank. I find myself constantly looking things up, which feels like trying to memorize an entire dictionary, and it's making me question if I'm approaching this the right way.
For those of you who have faced this challenge, especially if you're from a non-computer science background like me: Should I be trying to memorize all these functions, or is it more about grasping the concepts and knowing how to find the right tools as needed? Any advice would be greatly appreciated because I'm feeling a bit stuck and am eager to get a better handle on it. Thanks a lot!
4 Answers
As someone who transitioned from a math background to data analysis, I can tell you that I look up Python documentation all the time. Trust me, you're not alone! Most programmers frequently Google things. The functions and structures you use regularly will eventually stick with you. Just remember, "If you don't use it, you lose it"—the more you use these functions, the easier they'll become to remember. Be patient with yourself; it'll get better!
Thanks for the reassurance! I'll just keep practicing.
You definitely don't need to memorize every function, and it's totally fine to look things up. You'll naturally remember them as you use them more consistently. So don’t stress about memorization; just keep coding!
Got it! Thanks for the tip!
One thing I've noticed is that documentation often lacks real-world application context. It usually explains what a function does, but not *why* you'd use it. Learning about the problems a function solves helps a lot more than rote memorization. For instance, instead of just memorizing the `groupby()` function in pandas, try to understand it's meant for splitting data into groups for specific operations. Don't get too caught up in memorizing everything; focus on understanding the bigger picture!
I love this approach! It really makes sense to understand the 'why' behind the functions.
Great advice! Practice definitely builds understanding.
You might not need to memorize every specific function, but having a general idea of what's out there is crucial. When you realize you need to perform a task, instead of reinventing the wheel, you'll know to check the documentation for existing solutions. Just keep exploring!

That's good to hear! I sometimes feel pressured to remember everything quickly.