-------------------------------------------------------------------------------------------- FREE DATA SCIENCE CRASH COURSES -------------------------------------------------------------------------------------------- If you're ready to see what Python skills make possible, be sure to check out my FREE on-demand data science crash courses! Here's what you get with any of these courses: 1 - On-Demand: Watch the course when it fits your schedule 2 - PDF of all slides 3 - All Python code as a Jupyter Notebook 4 - All data so you can experiment 5 - Resources to continue your learning. Data science with Python. You've got this if you want it: 💻 Decision Trees with Python: bit.ly/DecisionTreesWithPython 💻 Tuning Decision Trees with Python: bit.ly/TuningDecisionTreesWithPython 💻 Logistic Regression with Python: bit.ly/LogisticRegressionWithPython 💻 Cluster Analysis with Python: bit.ly/ClusterAnalysisWithPython
Great question! Here are some best practices I would recommend when writing Python code for analytics and data science: 1 - Avoid naming collisions wherever you can. 2 - Prefer using functions/methods that return altered copies of the original objects rather than directly altering objects. Regarding point 2, you will see this a lot in my upcoming pandas tutorial video.
Why is the value of the global variable my_string wasn't changed when you changen it in the function, but the value of the global list did change in the function?
If your university program teaches you Python, then maybe not. However, having more experience with coding will make all of your classes that use Python easier.
--------------------------------------------------------------------------------------------
FREE DATA SCIENCE CRASH COURSES
--------------------------------------------------------------------------------------------
If you're ready to see what Python skills make possible, be sure to check out my FREE on-demand data science crash courses!
Here's what you get with any of these courses:
1 - On-Demand: Watch the course when it fits your schedule
2 - PDF of all slides
3 - All Python code as a Jupyter Notebook
4 - All data so you can experiment
5 - Resources to continue your learning.
Data science with Python. You've got this if you want it:
💻 Decision Trees with Python:
bit.ly/DecisionTreesWithPython
💻 Tuning Decision Trees with Python:
bit.ly/TuningDecisionTreesWithPython
💻 Logistic Regression with Python:
bit.ly/LogisticRegressionWithPython
💻 Cluster Analysis with Python:
bit.ly/ClusterAnalysisWithPython
Yet another great video. I really appreciate how you are building a solid foundation and following a logical progression.
Thank you for this feedback! Although it is a crash course, I designed it to be a logical progression of the needed skills.
Great
Thank you for the feedback! I am glad you enjoyed the video.
Would it be better to avoid using global variable names inside of functions unless the intent actually is to make a change to a global variable?
Great question! Here are some best practices I would recommend when writing Python code for analytics and data science:
1 - Avoid naming collisions wherever you can.
2 - Prefer using functions/methods that return altered copies of the original objects rather than directly altering objects.
Regarding point 2, you will see this a lot in my upcoming pandas tutorial video.
Why is the value of the global variable my_string wasn't changed when you changen it in the function, but the value of the global list did change in the function?
Is it relevant to start learning Python in 2024, if i wanna enter it uni this year?
If your university program teaches you Python, then maybe not. However, having more experience with coding will make all of your classes that use Python easier.