⚙️ Get your hands dirty with Data Preprocessing using Python! Import libraries, handle missing values, split datasets, and scale features for better machine learning models. #PythonCoding #DataAnalysis 🤖
People newer to Python often get confused by the statement:
if __name__ == "__main__":
That's many underscores ("dunders"), right?
In essence it lets you put code in your module that ONLY should execute when the module is called directly. So not when you import from it.
I explain this further with a practical example in this 3 minute video:
https://www.youtube.com/watch?v=ubpFY7_dAW4
#python #pythonprogramming #encapsulation #pythoncoding
I built a Vancouver earthquake alert bot on Mastodon. Feel free to follow, any feedback is welcome 🙂 lnkd.in/gUWpW9mG
#vancouver #vancouverEarthquake #bot #mastodon #pythonProgramming #pythonCoding #python #Earthquake #earthquakeVancouver
#vancouver #vancouverearthquake #Bot #Mastodon #pythonprogramming #pythoncoding #python #earthquake #earthquakevancouver
🧑💻 New learning unit in our #NetworkAutomation eAcademy: #Python!
Learn how to program using Python, why it is useful and how it can be used 👉 https://connect.geant.org/2023/02/27/new-learning-unit-in-the-network-eacademy-automation-tools-python
👤 Trainer: Iacovos Ioannou – CyNet
⏳ Course duration: 90 Minutes
PS you can also follow your self-paced OAV (#Orchestration, #Automation, #Virtualisation) training via our interactive map 🗺️ https://wiki.geant.org/display/NETDEV/OAV+Training+Portal
#pythonlearning #python3 #pythoncoding #OpenSource #Network #Research #Education #Networking #Training #learning
#learning #training #networking #Education #Research #network #OpenSource #pythoncoding #python3 #PythonLearning #virtualisation #automation #orchestration #Python #networkautomation
l10n: Python library for translating your application
Discussions: https://discu.eu/q/https://github.com/life4/l10n
#coolgithubprojects #programming #python #pythoncoding
Simple python quiz
A. Line number 2 has invalid syntax. It should be "quiz[2]"
B. It will print ('hello', 'world')
C. Linux number 1 will give an error, we can't mix string with integer in tuple
#python #pythonprogramming
#PythonTips #pythoncoding #pythoninterviews
#python #pythonprogramming #pythontips #pythoncoding #pythoninterviews
pythonetc: Posts about Python stdlib, syntax, and internals
https://github.com/life4/pythonetc
Discussions: https://discu.eu/q/https://github.com/life4/pythonetc
#programming #python #pythoncoding
How I use Artipie, a PyPI repo | Opensource.com
https://opensource.com/article/22/12/python-package-index-repository-artipie #Python #PythonCoding
Atom is going to die and I am now moving to Visual Studio for python dev. https://github.blog/2022-06-08-sunsetting-atom/ #atom #pythoncoding
Python vs. Bash?
Why not both with Python's subprocess module #pythoncoding #linux
https://www.redhat.com/sysadmin/python-subprocess-module
Wow, just wow 🤩. Stop what you are doing. Take 20 minutes to check out beta.openai.com/playground This is what I have been missing all these years. Need help with concepts of building a #apiAutomation #pythoncoding #powershell it is just amazing. Let’s say you have a vendor and you want to check if the nodes are up. Literally type “vendor name API script to see all outage notices.” And let it’s magic roll. Now if you don’t have the token you need to ask the vendor but this is just 🔥🔥🔥🔥!
#apiautomation #pythoncoding #powershell
#Python cheat sheet. :python:
#CheatSheet #Python3 #PythonCoding #PythonProgramming
#python #cheatsheet #python3 #pythoncoding #pythonprogramming
I wrote a #module to #filter #data from #pipico or #python3 #sensors
It's nice to talk 📣
https://github.com/darekpages/dp_filters-for-sensors
#python #pythoncoding #micropython #circuitpython #pipico #robot #code #coding #github #programming
#module #filter #data #pipico #python3 #sensors #python #pythoncoding #micropython #circuitpython #robot #code #coding #github #programming
I am the author of a python #library for #electronic #calculations (and more) on #engineering #numbers
https://github.com/darekpages/nume
>>> import nume*
>>> r= (9-2.85)/m(2) # R_led= (Vc-V_led)/I_led [V, mA, kohm]
>>> unit(r)
(3.075, 'k')
and even a selection from the #resistive series and others.
#python #pythoncoding
#library #electronic #calculations #engineering #numbers #resistive #python #pythoncoding
For #software #testing purposes, especially if you’re working on a project that uses any database technology to store information, you may need data to try out your project. Here’s how to generate test data for #MongoDB using Faker.
#pythoncoding #opensource #databases #percona
https://www.percona.com/blog/how-to-generate-test-data-for-mongodb-with-python/
#software #testing #mongodb #pythoncoding #opensource #databases #percona
For #software #testing purposes, especially if you’re working on a project that uses any database technology to store information, you may need data to try out your project. Here’s how to generate test data for #MongoDB using Faker.
#pythoncoding #opensource #databases #percona
https://www.percona.com/blog/how-to-generate-test-data-for-mongodb-with-python/
#software #testing #mongodb #pythoncoding #opensource #databases #percona
how does Python's built-in `endswith` using a tuple of suffixes rank against a trie-based alternative implementation? read the performance benchmarking using `timeit` and detailed analysis, including a concluding look at `endswith`'s cpython source code
https://veryverbose.net/comparison-of-multi-endswith-in-python-four-ways/
Discussions: https://discu.eu/q/https://veryverbose.net/comparison-of-multi-endswith-in-python-four-ways/
#programming #python #pythoncoding