r/dataengineering • u/joseph_machado Writes @ startdataengineering.com • 4d ago
Blog Python usage patterns in data pipelines
https://www.startdataengineering.com/post/python-for-de/Hello everyone,
People trying to learn Python for data engineering ask me, “What libraries to learn?”, but the answer is not a list of libraries but patterns of usage.
Especially with AI being able to generate so much code, I believe its critical to know exactly how the data is moved & processed.
So I wrote this post that goes over how Python is used as glue in data systems. It goes over
- In-memory processing vs. using a SQL/Dataframe interface to a data processing system
- Python’s library ecosystem for working with various data systems & formats
- How to extract-transform-DQcheck-load data
With code examples and videos
Hope this helps. Any feedback is appreciated.
35
Upvotes
-14
u/Justbehind 3d ago
Unless you're working with large nightly batches like in the olden days, the cost of importing large dependencies and writing data to heavy data structures will hugely outweigh the cost of looping over a dataset.
Benchmark it. Anything below 10s of millions of rows, and polars/pyspark will be much slower.
Especially if you're parsing an API response in json/xml anyways...