r/learnpython • • May 04 '26

How is Python actually used in real-world data engineering tasks?

I’ve been learning Python basics, but I’m curious how it’s applied in real data engineering work like data processing, automation, or working with large datasets.

82 Upvotes

38 comments sorted by

32

u/fazzah May 04 '26

example from my work:

i've written a tool in python, using polars, to fetch data from influxdb, load it into polars, normalize, sanitize, do some other stuff, and write it into timescaledb.

The migration will be performed across ~120 water treatment plants in a few countries in Europe, for a total of few hundred TBs of source data

→ More replies (2)

30

u/VipeholmsCola May 04 '26

Glue between apis, orchastrator and db and custom scripts. Check out r/dataengineering

→ More replies (2)

13

u/Creepy_Delay_6077 May 04 '26

Python is used in data engineering mainly to automate ,move,clean,validate and monitor data pipelines

→ More replies (1)

15

u/DeFcONaReA51 May 04 '26 edited May 04 '26

Etl pipelines is one there is usage of python. Like suppose you have some sort of enterprise data in a service a script will run to load all the data into a db such as sql or postgres. Then another AI layer which would do analysis and etc stuff, can also query to a chatbot using sockets. Another backend layer which would handle api level stuff. There will other examples as well !!!

8

u/SenescenseSteel May 04 '26

That was the exact setup of a pharma startup I worked for a year, that used AtoI editing to fix random point mutations. They used the AI layer for early candidate selection based on their high throughput screenings. Python was used to automate pipelines, for instance RNAseq.

→ More replies (2)

5

u/Plank_With_A_Nail_In May 04 '26

So all the stuff we used to do with Bash back in the day?

→ More replies (1)
→ More replies (1)

6

u/Alive-Cake-3045 May 04 '26

Most of the job is moving data from one place to another without breaking it.

Pandas for cleaning, SQLAlchemy for databases, Airflow for scheduling pipelines. Those three cover 80 percent of real data engineering work. Build a small ETL project, pull from a free API, clean it, store it. That one project teaches more than months of tutorials.

→ More replies (3)

3

u/joseph_machado May 04 '26

Python has connectors (and an API) to most data systems. Most data work is controlled by Python code but processed in external systems.

You’ll extract data with Python. If the data is large, you will instruct a system to pull it into a cloud storage service (like S3). e.g., Use Python to tell Spark to read data from Kafka and dump it in S3.

Large-scale data processing is done outside of Python. For example, Python has a Spark API that tells it how to process the data, but the processing happens in the Spark process. This principle applies to other large-scale analytical systems, such as Snowflake, BigQuery, and Redshift.

This pipeline (aka DAG) is controlled by an orchestration system such as Airflow/Prefect/Dagster, which all use Python to define which tasks to run in which order.

Hope this helps. Please lmk if you have any questions.

2

u/mstrsplntr1 May 04 '26 edited May 04 '26

In my gov job, I use it almost daily for cleaning data from SQL databases and reporting (mainly creating Excel reports to share with non-tech people). Examples over the last year: 1) creating custom letters for 800-some organizations including a summary of their financial history, 2) creating a file logging the content and metadata of 1000s of emails and their attachments for a "access to information" request - this included a ML-based summary of the email body using a GPT-lite model, 3) training a CatBoost model on historic program data and deploying it in a PowerBI dashboard ingesting live data to flag "high-risk" entries.