Carl Gold, PhD · @carl24k
130 followers · 149 posts · Server sigmoid.social
patvid · @patvid
41 followers · 322 posts · Server mas.to

Just spent 15 minutes trying to learn python on youtube.

#pythonprogramming #Python #programming

Last updated 1 year ago

Tom Smykowski · @tomaszs
29 followers · 211 posts · Server techhub.social
Industry Documents Library · @industrydocs
34 followers · 84 posts · Server masto.ai

Interested in computer programming? Learn R and Python with our September UC Carpentries Fall 2023 workshop. Virtual and open to all!

library.ucsf.edu/news/uc-carpe

#pythonprogramming #datamanagement

Last updated 1 year ago

AndrewFrench · @andrewfrench
54 followers · 52 posts · Server fosstodon.org

Holy. Crap. is so much faster than how can I ever go back? Is there some downside I don't see here?

#mamba #conda #pythonprogramming

Last updated 1 year ago

Pybites · @pybites
122 followers · 100 posts · Server fosstodon.org

New article:

⚠️Why you should avoid import * in Python 🐍
pybit.es/articles/why-you-shou

Covering:
- Why modules are great and namespacing explained
- Why import * is a problem
- A practical example where a function gets overriden
- The recommended way to do imports
- What PEP8 has to say about this
- Protection workaround, use __all__ to define your module's public interface

#python #pythonprogramming #modules #encapsulation #namespacing #zenofpython #bestpractices #pitfalls #imports #dundermethods

Last updated 1 year 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 1 year ago

2/ After that, there will be no less than seven talks and two discussions, covering MOOCs, curriculum choices, teaching CP with PyCSP3 and many more CP teaching-related topics!

So if you haven't done so already, go to our website to register for the workshop day or just for the entire conference, while you're at it πŸ˜‰

cp2023.a4cp.org/registration.h

#cp2023conf #constraintprogramming #teaching #academicmastodon #academicchatter #conference #workshop #pythonprogramming

Last updated 1 year ago

Fabrizio Musacchio · @pixeltracker
296 followers · 187 posts · Server sigmoid.social

Just recently discovered: Supercharge package management with and get ultra-fast package installations ⚑️

🌎 fabriziomusacchio.com/blog/202
🌎 mamba.readthedocs.io/en/latest

🐍

#conda #mamba #Python #DataScience #packagemanagement #pythonprogramming

Last updated 1 year ago

Daniela V · @valdan
35 followers · 55 posts · Server sigmoid.social

@mc this totally resonates, all too often I do dive into complex bits of . I was reflecting today that it’s ok to start small, or in this case start from nothing! Thanks for the reminder!

#nlproc #pythonprogramming

Last updated 1 year ago

Ignytis · @ignytis
7 followers · 169 posts · Server techhub.social

An experiment: to build a separate set of Python dependencies and inject it into different Docker images via layers

Status: semi-success

The idea:
1. There are Python Docker images (A, B) which need the same set of dependencies (x, y)
2. We build a separate Python Docker image M with venv + (x, y) dependencies installed
3. Build base images for A, B
4. Put 'x' from M on top of each of them into a separate directory (e.g. /opt/mydeps/site-packages) using multistage building
5. Register '/opt/mydeps/site-packages' in PYTHONPATH

Result:
Well, technically it works and all deps could be imported into Python. The problem starts when peer dependencies intersect. Let's say:
- A depends on package z v1.0
- x depends on package z v2.0
Python will load z v2.0 from PYTHONPATH while A will expect z v1.0

#development #python #pythonprogramming

Last updated 1 year ago

Tarun Gupta · @tarungupta
4 followers · 11 posts · Server me.dm

πŸ“ŠπŸ” Preparing data for analysis has never been easier! Learn Python techniques for Data Preprocessing - from handling missing values to encoding categorical variables. 🐍

youtu.be/0JLWrqTVzl4

#datapreprocessing #pythonprogramming

Last updated 1 year ago

Francois Gerber · @FrancoisGerber
10 followers · 75 posts · Server fosstodon.org

Today I wrote 3 methods in a Lambda that was exactly copied from an older on prem python project. It was fun in the moment but thinking about it, sounds super boring. What interesting projects or tasks have you done lately in ?

#python #aws #pythonprogramming #programming #developer #pythonjobs

Last updated 1 year ago

Surya Teja K · @shanmukhateja
27 followers · 756 posts · Server social.linux.pizza

Hey, I run a blog for dev things in

Link: surya-dev-journey.hashnode.dev

There isn’t a schedule per-se, I write whenever I find time. Check it out!

#rustlang #angular #javascript #python #opensource #maintainer #pythonprogramming #angulardev

Last updated 1 year ago

Today's home brew image processing image. Clematis, from our corner bed.

#python #pythonprogramming

Last updated 1 year ago

πŸ“’Now in print!🍾

Go from Python programmer to Python developer!

Doug Farrell will take your Python skills to the next level through solving real-world problems and adopting best practices for working with Python in a professional environment: mng.bz/jPvy

#python #pythonprogramming #programming

Last updated 1 year ago

Tom Smykowski · @tomaszs
16 followers · 143 posts · Server techhub.social

Coding in Python is fun 😍

#programming #coding #pythonprogramming

Last updated 1 year ago

Brandon Lipani · @helix2301
9 followers · 61 posts · Server twit.social
Carl Gold, PhD · @carl24k
106 followers · 112 posts · Server sigmoid.social

today: (1) Merge does not preserve the order unless you are merging by the index. (2) Make sure to use `ignore_index=True` when you concat or your index might acquire duplicates. Want to hear how much fun I had to come up with these gems of wisdom? πŸ˜‚

#Python #pandas #lessonlearned #debugging #pythonprogramming

Last updated 1 year ago

kariscodes · @jkariukidev
0 followers · 5 posts · Server fosstodon.org

The MVT pattern, which is used in , is an adaptable web development pattern that can be used to create applications that are both high-quality and user-friendly. I recommend learning about the MVT pattern if you are new to web development using Django. It is a great starting point for creating web applications.

#django #webdevelopment #pythonprogramming #html

Last updated 1 year ago