<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tutorials on DATATWEETS</title><link>https://datatweets.com/tutorials/</link><description>Recent content in Tutorials on DATATWEETS</description><generator>Hugo</generator><language>en</language><copyright>Copyright (c) 2026 Datatweets</copyright><lastBuildDate>Sun, 05 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://datatweets.com/tutorials/index.xml" rel="self" type="application/rss+xml"/><item><title>Build an AI Chatbot in Python: A Command-Line LLM Client</title><link>https://datatweets.com/tutorials/build-an-ai-chatbot-with-python/</link><pubDate>Fri, 03 Jul 2026 00:00:00 +0000</pubDate><guid>https://datatweets.com/tutorials/build-an-ai-chatbot-with-python/</guid><description>A from-scratch walkthrough of the pattern behind every LLM chatbot: one function that sends a message plus conversation history to a chat-completion API, a persona set by a system prompt, and a loop that keeps the conversation going.</description></item><item><title>The Single Responsibility Principle: One Class, One Reason to Change</title><link>https://datatweets.com/tutorials/single-responsibility-principle/</link><pubDate>Sun, 28 Jun 2026 00:00:00 +0000</pubDate><guid>https://datatweets.com/tutorials/single-responsibility-principle/</guid><description>The Single Responsibility Principle says a class should have only one reason to change. See it in action: take a Python AuthService that also owns its logging, find why that&amp;rsquo;s a problem, and refactor it into clean, focused classes.</description></item><item><title>Calling Web APIs in Python: GET Requests, JSON, and Status Codes</title><link>https://datatweets.com/tutorials/using-apis-in-python/</link><pubDate>Sun, 05 Jul 2026 00:00:00 +0000</pubDate><guid>https://datatweets.com/tutorials/using-apis-in-python/</guid><description>A hands-on introduction to the requests library: make a real GET request to a live API, read the JSON response into Python, shape the request with query parameters, and check status codes before trusting the result.</description></item><item><title>Docker and Jupyter: Building a Reproducible Data Science Environment</title><link>https://datatweets.com/tutorials/docker-jupyter-for-data-science/</link><pubDate>Sun, 05 Jul 2026 00:00:00 +0000</pubDate><guid>https://datatweets.com/tutorials/docker-jupyter-for-data-science/</guid><description>Tired of a notebook that only runs on your machine? This guide builds the container mental model, then walks through pulling a real Jupyter image, mounting a volume so your work survives, and reaching the server from your browser.</description></item><item><title>Dominant Colors in an Image: Clustering Pixels with K-Means</title><link>https://datatweets.com/tutorials/dominant-colors-with-kmeans/</link><pubDate>Sun, 05 Jul 2026 00:00:00 +0000</pubDate><guid>https://datatweets.com/tutorials/dominant-colors-with-kmeans/</guid><description>A first taste of unsupervised learning: there&amp;rsquo;s no label to predict here, just raw pixel data. This post reshapes an image into a table of RGB points, clusters them with scikit-learn&amp;rsquo;s KMeans, and reads the cluster centers back as the image&amp;rsquo;s dominant colors and their prevalence.</description></item><item><title>Python Data Structures: Lists, Tuples, Sets, or Dicts?</title><link>https://datatweets.com/tutorials/python-data-structures-overview/</link><pubDate>Sun, 05 Jul 2026 00:00:00 +0000</pubDate><guid>https://datatweets.com/tutorials/python-data-structures-overview/</guid><description>Python gives you four built-in ways to hold a group of values, and picking the wrong one causes bugs down the line. This guide builds a three-question decision tree, then walks through lists, tuples, and sets in depth on one running example, with a side-by-side comparison table to keep them all straight.</description></item><item><title>Python subprocess: Run Commands, Capture Output, and Handle Failures Safely</title><link>https://datatweets.com/tutorials/python-subprocess-basics/</link><pubDate>Sun, 05 Jul 2026 00:00:00 +0000</pubDate><guid>https://datatweets.com/tutorials/python-subprocess-basics/</guid><description>Running another program from Python means dealing with output, exit codes, and safety all at once. This guide builds the mental model for subprocess.run(), then works through capturing output, checking return codes with check=True, and why list-based arguments beat a shell=True string.</description></item><item><title>Cleaning Messy Data with Pandas: A Practical Guide</title><link>https://datatweets.com/tutorials/cleaning-messy-data-with-pandas/</link><pubDate>Fri, 03 Jul 2026 00:00:00 +0000</pubDate><guid>https://datatweets.com/tutorials/cleaning-messy-data-with-pandas/</guid><description>Real datasets are never as clean as tutorial datasets. This guide builds a detect-decide-fix workflow for pandas, then applies it to a real, freely-licensed museum collection dataset — missing values, disguised placeholders, inconsistent text, duplicates, and messy dates included.</description></item><item><title>Descriptive Statistics in Python: A Practical Guide to Center and Spread</title><link>https://datatweets.com/tutorials/python-descriptive-statistics/</link><pubDate>Fri, 03 Jul 2026 00:00:00 +0000</pubDate><guid>https://datatweets.com/tutorials/python-descriptive-statistics/</guid><description>A practical walkthrough of descriptive statistics in Python: measures of center, measures of spread, and percentiles, computed with pandas and NumPy on a real restaurant tipping dataset.</description></item><item><title>Matplotlib, Seaborn, or Plotly? A Practical Guide to Picking a Chart Library</title><link>https://datatweets.com/tutorials/python-data-viz-libraries/</link><pubDate>Fri, 03 Jul 2026 00:00:00 +0000</pubDate><guid>https://datatweets.com/tutorials/python-data-viz-libraries/</guid><description>Matplotlib, seaborn, pandas&amp;rsquo; .plot(), and plotly all draw charts from the same DataFrame. This guide builds a mental model for choosing between them, then plots the same restaurant-tips data three different ways so you can see exactly what each one buys you.</description></item></channel></rss>