Python | Towards Data Science https://towardsdatascience.com/tag/python/ Publish AI, ML & data-science insights to a global community of data professionals. Mon, 14 Jul 2025 23:44:33 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.1 https://towardsdatascience.com/wp-content/uploads/2025/02/cropped-Favicon-32x32.png Python | Towards Data Science https://towardsdatascience.com/tag/python/ 32 32 Topic Model Labelling with LLMs https://towardsdatascience.com/topic-model-labelling-with-llms/ Mon, 14 Jul 2025 23:44:18 +0000 https://towardsdatascience.com/?p=606581 Python tutorial for reproducible labeling of cutting-edge topic models with GPT4-o-mini.

The post Topic Model Labelling with LLMs appeared first on Towards Data Science.

]]>
Hitchhiker’s Guide to RAG: From Tiny Files to Tolstoy with OpenAI’s API and LangChain https://towardsdatascience.com/hitchhikers-guide-to-rag-from-tiny-files-to-tolstoy-with-openais-api-and-langchain/ Fri, 11 Jul 2025 17:56:46 +0000 https://towardsdatascience.com/?p=606560 Scaling a simple RAG pipeline from simple notes to full books

The post Hitchhiker’s Guide to RAG: From Tiny Files to Tolstoy with OpenAI’s API and LangChain appeared first on Towards Data Science.

]]>
How to Perform Effective Data Cleaning for Machine Learning https://towardsdatascience.com/how-to-perform-effective-data-cleaning-for-machine-learning/ Wed, 09 Jul 2025 19:11:04 +0000 https://towardsdatascience.com/?p=606536 Learn how you can improve your machine learning models using effective data cleaning

The post How to Perform Effective Data Cleaning for Machine Learning appeared first on Towards Data Science.

]]>
Time Series Forecasting Made Simple (Part 3.1): STL Decomposition https://towardsdatascience.com/time-series-forecasting-made-simple-part-3-1-stl-decomposition-understanding-initial-trend-and-seasonality-prior-to-loess-smoothing/ Wed, 09 Jul 2025 19:06:11 +0000 https://towardsdatascience.com/?p=606534 STL Decomposition excels when seasonal patterns evolve over time.

The post Time Series Forecasting Made Simple (Part 3.1): STL Decomposition appeared first on Towards Data Science.

]]>
Run Your Python Code up to 80x Faster Using the Cython Library https://towardsdatascience.com/run-your-python-code-up-to-80x-faster-using-the-cython-library/ Tue, 08 Jul 2025 05:14:05 +0000 https://towardsdatascience.com/?p=606519 A four-step plan for C language speed where it matters most

The post Run Your Python Code up to 80x Faster Using the Cython Library appeared first on Towards Data Science.

]]>
POSET Representations in Python Can Have a Huge Impact on Business https://towardsdatascience.com/poset-representations-in-python-have-huge-impact-on-business/ Mon, 07 Jul 2025 22:19:51 +0000 https://towardsdatascience.com/?p=606512 Discover how POSET indicators transform data into coherent scoring systems, enabling meaningful comparisons while preserving the data’s multi-dimensional semantic structure.

The post POSET Representations in Python Can Have a Huge Impact on Business appeared first on Towards Data Science.

]]>
Liberating Performance with Immutable DataFrames in Free-Threaded Python https://towardsdatascience.com/liberating-performance-with-immutable-dataframes-in-free-threaded-python/ Mon, 07 Jul 2025 17:05:53 +0000 https://towardsdatascience.com/?p=606504 How StaticFrame and Python 3.13t enable true thread-based concurrency

The post Liberating Performance with Immutable DataFrames in Free-Threaded Python appeared first on Towards Data Science.

]]>
Taking ResNet to the Next Level https://towardsdatascience.com/taking-resnet-to-the-next-level/ Thu, 03 Jul 2025 04:11:06 +0000 https://towardsdatascience.com/?p=606487 Understanding how ResNeXt improves upon ResNet, with a comprehensive PyTorch implementation guide

The post Taking ResNet to the Next Level appeared first on Towards Data Science.

]]>
Interactive Data Exploration for Computer Vision Projects with Rerun https://towardsdatascience.com/interactive-data-exploration-for-computer-vision-projects-with-rerun/ Wed, 02 Jul 2025 19:16:34 +0000 https://towardsdatascience.com/?p=606483 Analyse dynamic signals in a computer vision pipeline in Python using OpenCV and Rerun

The post Interactive Data Exploration for Computer Vision Projects with Rerun appeared first on Towards Data Science.

]]>
How to Access NASA’s Climate Data — And How It’s Powering the Fight Against Climate Change Pt. 1 https://towardsdatascience.com/how-to-access-nasas-climate-data-and-how-its-powering-the-fight-against-climate-change-pt-1/ Tue, 01 Jul 2025 20:20:26 +0000 https://towardsdatascience.com/?p=606475 From architectural design to food security.

The post How to Access NASA’s Climate Data — And How It’s Powering the Fight Against Climate Change Pt. 1 appeared first on Towards Data Science.

]]>
STOP Building Useless ML Projects – What Actually Works https://towardsdatascience.com/stop-building-useless-ml-projects-what-actually-works/ Tue, 01 Jul 2025 18:31:08 +0000 https://towardsdatascience.com/?p=606473 How to find machine learning projects that will get you hired.

The post STOP Building Useless ML Projects – What Actually Works appeared first on Towards Data Science.

]]>
From Pixels to Plots https://towardsdatascience.com/from-pixels-to-plots/ Mon, 30 Jun 2025 16:53:16 +0000 https://towardsdatascience.com/?p=606458 How I built an AI-powered prototype to turn images into insights

The post From Pixels to Plots appeared first on Towards Data Science.

]]>
Become a Better Data Scientist with These Prompt Engineering Tips and Tricks https://towardsdatascience.com/become-a-better-data-scientist-with-these-prompt-engineering-hacks/ Mon, 30 Jun 2025 15:54:37 +0000 https://towardsdatascience.com/?p=606455 Part 1: prompt engineering for planning, cleaning, and EDA

The post Become a Better Data Scientist with These Prompt Engineering Tips and Tricks appeared first on Towards Data Science.

]]>
Hitchhiker’s Guide to RAG with ChatGPT API and LangChain https://towardsdatascience.com/hitchhikers-guide-to-rag-with-chatgpt-api-and-langchain/ Thu, 26 Jun 2025 18:18:26 +0000 https://towardsdatascience.com/?p=606432 Build a simple Python RAG pipeline using your local files as context

The post Hitchhiker’s Guide to RAG with ChatGPT API and LangChain appeared first on Towards Data Science.

]]>
Data Science: From School to Work, Part V https://towardsdatascience.com/data-science-from-school-to-work-part-v/ Thu, 26 Jun 2025 17:56:00 +0000 https://towardsdatascience.com/?p=606430 How to profile your Python project

The post Data Science: From School to Work, Part V appeared first on Towards Data Science.

]]>
How to Train a Chatbot Using RAG and Custom Data https://towardsdatascience.com/how-to-train-a-chatbot-using-rag-and-custom-data/ Wed, 25 Jun 2025 17:21:53 +0000 https://towardsdatascience.com/?p=606413 Retrieval-Augmented Generation made easy with Llama

The post How to Train a Chatbot Using RAG and Custom Data appeared first on Towards Data Science.

]]>
Building A Modern Dashboard with Python and Taipy https://towardsdatascience.com/building-a-modern-dashboard-with-python-and-taipy/ Mon, 23 Jun 2025 21:06:57 +0000 https://towardsdatascience.com/?p=606390 A guide to building a front-end data application.

The post Building A Modern Dashboard with Python and Taipy appeared first on Towards Data Science.

]]>
From Configuration to Orchestration: Building an ETL Workflow with AWS Is No Longer a Struggle https://towardsdatascience.com/from-configuration-to-orchestration-building-etl-workflow-with-aws-is-no-longer-struggling/ Thu, 19 Jun 2025 17:04:15 +0000 https://towardsdatascience.com/?p=606368 A step-by-step guide to leverage AWS services for efficient data pipeline automation

The post From Configuration to Orchestration: Building an ETL Workflow with AWS Is No Longer a Struggle appeared first on Towards Data Science.

]]>
What PyTorch Really Means by a Leaf Tensor and Its Grad https://towardsdatascience.com/what-pytorch-really-means-by-a-leaf-tensor-2/ Thu, 19 Jun 2025 16:43:18 +0000 https://towardsdatascience.com/?p=606365 The secret life of leaves, gradients, and the mighty requires_grad flag

The post What PyTorch Really Means by a Leaf Tensor and Its Grad appeared first on Towards Data Science.

]]>
Animating Linear Transformations with Quiver https://towardsdatascience.com/animating-linear-transformations-with-quiver/ Wed, 18 Jun 2025 19:27:47 +0000 https://towardsdatascience.com/?p=606348 A useful tool in your quiver

The post Animating Linear Transformations with Quiver appeared first on Towards Data Science.

]]>