Stop Using Print to Debug in Python. Use Icecream Instead
Icecream is a Python library that makes print debugging more readable with minimal code.
pip install icecream
Icecream is a Python library that makes print debugging more readable with minimal code.
pip install icecream
Python tip: The argument to lstrip() is a set of leading characters to be removed as many times as they occur:
>>> s = 'mississippi'
>>> s.lstrip('mis')
'ppi'
A more common need is to remove an exact match:
>>> s.removeprefix('mis')
'sissippi'
This method is new in 3.9
>>> s = 'mississippi'
>>> s.lstrip('mis')
'ppi'
A more common need is to remove an exact match:
>>> s.removeprefix('mis')
'sissippi'
This method is new in 3.9
Learning path to mastering Data Science:
🔸 Python
🔸 Git
🔸 SQL
🔸 NumPy
🔸 Pandas
🔸 Scikit-Learn
🔸 Flask
🔸 Docker
🔸 AWS
🔸 TensorFlow
🔸 Linear Algebra
🔸 Machine Learning basics
What else?
🔸 Python
🔸 Git
🔸 SQL
🔸 NumPy
🔸 Pandas
🔸 Scikit-Learn
🔸 Flask
🔸 Docker
🔸 AWS
🔸 TensorFlow
🔸 Linear Algebra
🔸 Machine Learning basics
What else?
Topic: Python for Beginners - Learning Complete Python Operators
Time: Feb 4, 2021 07:00 PM IST
Join Zoom Meeting
https://us02web.zoom.us/j/83344323895
Meeting ID: 833 4432 3895
Today we are connecting and discussing about Python Operators in detail
Complete details on Bitwise, comparison, membership, relational, arithmetic etc
In depth session
Time: Feb 4, 2021 07:00 PM IST
Join Zoom Meeting
https://us02web.zoom.us/j/83344323895
Meeting ID: 833 4432 3895
Today we are connecting and discussing about Python Operators in detail
Complete details on Bitwise, comparison, membership, relational, arithmetic etc
In depth session
You don't really need a virtualenv
When you develop a Python project, you need to install the project's dependencies.
Problem:
Virtualenvs help us isolate project dependencies, but things get tricky when it comes to nested venvs: One installs the virtualenv manager(like Pipenv or Poetry) using a venv encapsulated Python, and creates more venvs using the tool which is based on an encapsulated Python. One day a minor release of Python is out and one has to check all those venvs and upgrade them if required before they can safely delete the out-dated Python version.
Solution:
PEP 582 -- Python local packages directory
PDM -- A new Python package manager and workflow tool that leverages PEP 582 to get rid of virtualenv entirely. It installs dependencies into the local package directory package and makes Python interpreters aware of it with a very simple step.
In PDM, PEP 582 is not mandatory, you can also stick with virtualenv. PDM can detect existing venvs but not create new ones.
When you develop a Python project, you need to install the project's dependencies.
Problem:
Virtualenvs help us isolate project dependencies, but things get tricky when it comes to nested venvs: One installs the virtualenv manager(like Pipenv or Poetry) using a venv encapsulated Python, and creates more venvs using the tool which is based on an encapsulated Python. One day a minor release of Python is out and one has to check all those venvs and upgrade them if required before they can safely delete the out-dated Python version.
Solution:
PEP 582 -- Python local packages directory
PDM -- A new Python package manager and workflow tool that leverages PEP 582 to get rid of virtualenv entirely. It installs dependencies into the local package directory package and makes Python interpreters aware of it with a very simple step.
In PDM, PEP 582 is not mandatory, you can also stick with virtualenv. PDM can detect existing venvs but not create new ones.
Researchers From Google Brain Introduces Symbolic Programming And A Python Library Called PyGlove For Automated machine learning
Python facts
——
The "return" and "yield" keywords can only be used inside functions.
The "nonlocal" keyword can only be used in a nested scope.
In contract, a star import can only be used at the module level.
Of course, "continue" and "break" only make sense inside a loop:
——
The "return" and "yield" keywords can only be used inside functions.
The "nonlocal" keyword can only be used in a nested scope.
In contract, a star import can only be used at the module level.
Of course, "continue" and "break" only make sense inside a loop:
We are having daily Datascience and AI sessions everyday evening at 9:30 PM IST
Pls join if you are interested
Pls join if you are interested