
Python and Machine Learning Tutorials. By @patloeber Job board: https://xitter.cf/t.co/2oqavVgVZY
Joined May 2022
- Tweets739
- Following1
- Followers2.4K
- Likes98
Be careful when copying Lists!
If you don't know whats happening in the code snippet, read this:
How to copy a List in Python without side effects
python-engineer.com/posts/ho…
How to check if a List is empty in Python:
- if not my_list
- if len(my_list == 0)
Which option do you prefer?
The official PEP 8 Style Guide recommends option 1.
Read more here: python-engineer.com/posts/ch…
Python Tip of the day:
How to sort a dictionary by values in Python
Explanation: python-engineer.com/posts/so…
Here are 10 Python One Liner.
For more details you can read the article.
🔗 python-engineer.com/posts/10…
Python Tip:
Python has an interactive mode that you can use with
python -i
It runs the script and then starts the interactive shell with access to all variables/functions etc. Very cool for debugging or tinkering around with your script.🐍
Did you know that Pandas has a built-in US holiday calendar?
Today is a holiday, so Happy Thanksgiving!








