Tarun Gupta · @tarungupta
6 followers · 163 posts · Server me.dm

⚙️ Get your hands dirty with Data Preprocessing using Python! Import libraries, handle missing values, split datasets, and scale features for better machine learning models. 🤖

youtu.be/0JLWrqTVzl4

#pythoncoding #dataanalysis

Last updated 2 years ago

Bob Belderbos · @bbelderbos
404 followers · 366 posts · Server fosstodon.org

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:
youtube.com/watch?v=ubpFY7_dAW

#python #pythonprogramming #encapsulation #pythoncoding

Last updated 2 years ago

🌼 · @miewliie
5 followers · 47 posts · Server techhub.social

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

Last updated 2 years ago

GÉANT · @geant
235 followers · 103 posts · Server mstdn.social

🧑‍💻 New learning unit in our eAcademy: !

Learn how to program using Python, why it is useful and how it can be used 👉 connect.geant.org/2023/02/27/n

👤 Trainer: Iacovos Ioannou – CyNet
⏳ Course duration: 90 Minutes

PS you can also follow your self-paced OAV (, , ) training via our interactive map 🗺️ wiki.geant.org/display/NETDEV/

#learning #training #networking #Education #Research #network #OpenSource #pythoncoding #python3 #PythonLearning #virtualisation #automation #orchestration #Python #networkautomation

Last updated 3 years ago

Python Weekly · @python_discussions
4848 followers · 2569 posts · Server mastodon.social

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

Last updated 3 years ago

Python Weekly · @python_discussions
4209 followers · 2216 posts · Server mastodon.social
Don Watkins · @donwatkins
574 followers · 1115 posts · Server fosstodon.org
Fredl · @fredl
9 followers · 69 posts · Server mastodontech.de

Atom is going to die and I am now moving to Visual Studio for python dev. github.blog/2022-06-08-sunsett

#atom #pythoncoding

Last updated 3 years ago

Joseph Zikusooka (ZIK) · @jzik
14 followers · 28 posts · Server mastodon.social

Python vs. Bash?
Why not both with Python's subprocess module
redhat.com/sysadmin/python-sub

#pythoncoding #linux

Last updated 3 years ago

Patrick Campbell · @0ne_ca11ed_pat
36 followers · 76 posts · Server mastodon.social

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 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

Last updated 3 years ago

ricardo :mastodon: · @governa
417 followers · 2349 posts · Server fosstodon.org
DarekPages · @darekpages
1 followers · 30 posts · Server mastodon.social
DarekPages · @darekpages
1 followers · 18 posts · Server mastodon.social

I am the author of a python for (and more) on
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 series and others.

#library #electronic #calculations #engineering #numbers #resistive #python #pythoncoding

Last updated 3 years ago

Lenz Grimmer · @lenzgr
679 followers · 2799 posts · Server mastodon.social

For 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 using Faker.


percona.com/blog/how-to-genera

#software #testing #mongodb #pythoncoding #opensource #databases #percona

Last updated 3 years ago

Lenz Grimmer · @lenzgr
1049 followers · 5866 posts · Server mastodon.social

For 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 using Faker.


percona.com/blog/how-to-genera

#software #testing #mongodb #pythoncoding #opensource #databases #percona

Last updated 3 years ago

Python Weekly · @python_discussions
4209 followers · 2216 posts · Server mastodon.social

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

veryverbose.net/comparison-of-

Discussions: discu.eu/q/https://veryverbose

#programming #python #pythoncoding

Last updated 3 years ago