<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Steven Stine on Medium]]></title>
        <description><![CDATA[Stories by Steven Stine on Medium]]></description>
        <link>https://medium.com/@srs9539?source=rss-9e1caae9871d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*A9lthyCFt7-ZKNCSefuwKw.png</url>
            <title>Stories by Steven Stine on Medium</title>
            <link>https://medium.com/@srs9539?source=rss-9e1caae9871d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 21:52:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@srs9539/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[From Coffee to Code: How Alteryx and Databricks Helped a Café Unlock the Story in Their Data]]></title>
            <link>https://medium.com/@srs9539/from-coffee-to-code-how-alteryx-and-databricks-helped-a-caf%C3%A9-unlock-the-story-in-their-data-2eb2ce7f25a9?source=rss-9e1caae9871d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2eb2ce7f25a9</guid>
            <category><![CDATA[alteryx]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[databricks-sql]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[alteryx-designer]]></category>
            <dc:creator><![CDATA[Steven Stine]]></dc:creator>
            <pubDate>Mon, 18 Aug 2025 12:11:10 GMT</pubDate>
            <atom:updated>2025-08-18T12:11:10.745Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I7_1p4g66MScaVa0spRvew.png" /><figcaption>Image created by Steven Stine</figcaption></figure><h3>The Backstory: Coffee, Family, and Data</h3><p>Two Sunday mornings ago, I walked into my favorite coffee shop with my kids for our usual Sunday routine. Coffee, smoothies, a scrumptious breakfast, and a chit chat with the owners before setting out on our day. This day though, the conversation took a turn. Instead of talking about croissants, cappuccinos, and outdoor fun in the Berkshires, they told me something unexpected: they were selling the business and moving to Florida.</p><p>The bigger surprise? They were struggling to answer basic questions the new owners had about the business regarding revenue, which items were the best sellers, customer habits, and promotions.</p><blockquote><strong>That’s when I realized this wasn’t just a handoff problem — it was a data problem. And I had the perfect tools to help: Alteryx and Databricks.</strong></blockquote><p>After speaking with the owners and offering my skillset, they happily agreed to let me help them answer those questions, using their data. In reality, they had no idea how I was going to do this.</p><p>Their coffee house wasn’t just any small coffee shop though, they ran three busy locations across Berkshire County; a region buzzing with seasonal tourism but also, where the locals liked to go out and about, no matter the season. Between ski resorts in the winter, the annual USTA tennis tournament in April, and Tanglewood’s summer concerts, the shops saw all kinds of activities across different time frames.</p><h3>The Questions That Could Make or Break the Sale</h3><p>Here’s what the new owners wanted to know and how I needed to query the data:</p><ol><li>Monthly revenue trends for each location (past 6 months).</li></ol><p>2. Sales by category and menu item — bestsellers vs. underperformers.</p><p>3. Peak sales periods throughout the day (morning vs. afternoon)</p><p>4. Promotion effectiveness — which campaigns drove real results?</p><p>Straightforward on paper. But the available data was… <strong>messy</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uXNqUVZyPIsjuwUfki6iWA.png" /><figcaption>Image created by Steven Stine</figcaption></figure><h3>Where the Data Came From (and How Messy It Was)</h3><p>The café had switched to Toast POS in January 2025, so I was able to grab six months of sales data. Beyond that, I pieced together a few other sources via web scraping through chat-gpt:</p><p><strong>From the café</strong></p><p>-POS sales data</p><p>-Promotions &amp; offers</p><p>-Email marketing results (provided by a third party, since this was outsourced, who presented the campaigns to the owners).</p><p><strong>Me web scraping and prompting through chat-gpt to create these data sets to help with the analysis:</strong></p><p>-Berkshire County Demographics — found through an old public repo</p><p>-Local weather (hourly &amp; regional)</p><p>-Zip code mapping</p><p>-Fiscal calendar</p><h3>Step 1: Prepping Data in Alteryx</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KV2uyz74j4BPB_vyW6YuPA.png" /><figcaption>My Alteryx Workflow by Steven Stine</figcaption></figure><p>My first stop was <strong>Alteryx Designer Cloud</strong>. It excels at data prep and building workflows which is exactly what I needed. For the record, Alteryx is <strong>MUCH</strong> more than just a data prep and blend platform.</p><p>It’s a <strong>powerful AI + analytics platform</strong> that goes far beyond ETL. Some highlights from the platform would be:</p><ol><li><strong>Code-Free + Code-Friendly</strong> → Drag-and-drop workflows for analysts, plus Python, R, and SQL support for advanced users.</li><li><strong>Automated Machine Learning (AutoML)</strong> → Build and deploy predictive models (like customer churn or demand forecasting) without needing a dedicated data science team.</li><li><strong>AI-Powered Data Prep</strong> → Natural language prompts (e.g., “split this column by last name”) help accelerate wrangling, and generative AI assists in building workflows faster.</li><li><strong>Explainable AI</strong> → Transparency is built in, so business users can understand <em>why</em> models make predictions, key for trust and adoption.</li><li><strong>Spatial Analytics</strong> → Built-in geospatial capabilities for mapping, territory analysis, and location-based insights.</li><li><strong>Data Connectors Everywhere</strong> → Pre-built integrations with databases, SaaS apps, APIs, and even semi-structured sources like PDFs and spreadsheets.</li><li><strong>Reusable &amp; Governed Workflows</strong> → Build once, automate, and ensure repeatability with audit trails and governance, critical for scaling analytics across teams.</li></ol><p>That’s why I think of <strong>Alteryx</strong> as more than a prep tool — it’s a <strong>Swiss Army knife for analytics and AI</strong>, bridging the gap between messy real-world data and advanced analyses and/or workflows.</p><p>With that said, I downloaded the free version and I used it to:</p><ul><li>Join multiple sources into consolidated tables</li><li>Clean up messy fields (promo names, category labels)</li><li>Standardize timestamps and align to a fiscal calendar</li></ul><p>Overall, I wanted to have the workflow built out with a clear, concise pathway from the raw data to finished data and using <strong>Alteryx</strong> was the easiest way to do so. I now had a clean, structured foundation to hand off to <strong>Databricks</strong>.</p><h3>Step 2: Finding the Answers in the Sales Data (with Databricks)</h3><p>Once the data was prepped, I turned to <strong>Databricks</strong> for analysis. Could I have done all of this in <strong>Alteryx</strong>, absolutely. While working on this, I wanted to show that <strong>Alteryx </strong>and <strong>Databricks </strong>can be used together as a super platform instead of choosing one or the other.</p><p>Anyway, while I could’ve just written a few SQL queries and downloaded the data to hand off, I kept the audience in mind: the new owners weren’t technical.</p><p>So, I built a <strong>Databricks Notebook</strong> that:</p><ul><li>Answered each of their core questions</li><li>Included clear markdown notes</li><li>Organized results into digestible sections</li></ul><p>The result? The analysis wasn’t just <strong>useful</strong> — it was <strong>usable</strong>.</p><h3>Key insights:</h3><p><strong>Revenue Trends</strong><br>- The first piece shows Total Sales by Month. With the data I had, sales peaked in late spring and early summer — just as tourism season kicked in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*9-FSiPB-zke4hgiJ6bp0Kw.png" /></figure><p>-I then created another query, I completely rewrote it to test my skills, to show each location’s sales and gross profit for each month. I wanted an easy way for the new owners to see revenue by month. I also have another query commented out where they could just see the total across the six-month period.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*XoAetESJWfsQ7cm_f4Kr7g.png" /></figure><p><strong>Category Sales by Location</strong><br>-Coffee &amp; Tea were the top sellers everywhere, with Pittsfield leading in gross profit. The two lowest earning products would be the individual flavors offered at the counter as well as dirty soda. Interesting thing here, dirty soda was a test item the owners were trying out in which, looking at it like a pilot, it performed fairly well. More time and data would have made this a better performer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*17f52BunAVuB7ZT_L01ONw.png" /></figure><p><strong>Menu Surprises</strong><br>-Promotions tied to <strong>scones</strong> quietly drove incremental sales — small item, big impact. What wasn’t a surprise is that coffee and tea lead the charge in highest performing items.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*Dagk3BBD9BNrCoBcUhQCPA.png" /></figure><p><strong>Peak Hours</strong><br>-71% of transactions happened between <strong>7:00am and 11:00am</strong>. Afternoons = untapped growth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*2p4nc14mmmmhTVyoNB_jfQ.png" /></figure><p><strong>Marketing Wins</strong><br>-The “Welcome Email” was the MVP campaign; 46% of first-time customers returned with a 15% promo. The “Welcome” email campaign and social media were the biggest drivers for promo redemptions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*HwISXKwhBZZrIs0mF9Q69g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*HkxG0zxKBYCMyjJiT1cwQg.png" /></figure><p><strong>Customer Mix</strong><br>-I found an old demographics repo online and was able to pull some data from there. Even with 81% null demographic data, trends emerged. (Yes, I filtered out “customers born in 1893 and customers who would be 7 years old ha!”)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*6F7Tw6-V0xnVV8Hmj6iBlg.png" /></figure><p><strong>Weather Impact</strong><br>-As someone who’s consulted in Retail/CPG and Supply Chain, a major factor for Sales and Logistics would be the weather. Luckily, I was able to create a dataset to view how weather played a role with these coffee shops.</p><ul><li>Rainy days: hot coffee up <strong>24%</strong></li><li>Snowy days: hot drinks up <strong>36%</strong>, new customers up <strong>18%</strong></li><li>90°F+ days: overall sales dropped <strong>7%</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*79VYD7utGEXzIGV0ooMTqA.png" /></figure><h3>Taking it a Step Further — Turning Queries into Clarity</h3><p>To make insights more digestible, I built a <strong>lightweight app using Base44. I call it DataViz Pro.</strong></p><p>It takes Excel outputs from any platform and turns them into charts and dashboards: revenue by month, peak hours, promo performance, and more.</p><p>For non-technical users, this meant instant clarity — no SQL required. All they had to do was hit the play button in the notebook, export to excel, drag and drop into the app and boom, done!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VHV_xGZ0z0Pqk4BfcjKhJw.png" /><figcaption>DataViz Pro created by Steven Stine</figcaption></figure><h3>Reflections: Why Alteryx + Databricks Work So Well Together</h3><p>This project reminded me why these two platforms complement each other:</p><p><strong>Alteryx</strong> → user-friendly, powerful for wrangling messy sources, huge AI components, easy to use ML capabilities, easy automation (set it and forget it).</p><p><strong>Databricks</strong> → scalable, flexible, good for deeper analysis.</p><p><strong>Together</strong> → a seamless bridge from messy inputs → clean data → actionable insights.</p><p>And because the solution was designed for <strong>end users</strong>, it wasn’t just a data dump — it was a <strong>story told through numbers</strong>.</p><p>For me, it was proof that enterprise-grade tools like <strong>Alteryx and Databricks</strong> aren’t just for Fortune 500 companies. They can be just as transformative for a café with three locations in the Berkshires.</p><blockquote>Sometimes the most meaningful applications of technology don’t happen in a boardroom — they happen over a cup of coffee. And with the right tools, even a neighborhood café can see its business with enterprise-grade clarity.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2eb2ce7f25a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Magic of Data: Which Harry Potter Monopoly Properties Are Worth the Investment?”]]></title>
            <link>https://medium.com/@srs9539/the-magic-of-data-which-harry-potter-monopoly-properties-are-worth-the-investment-b915ea6eed28?source=rss-9e1caae9871d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b915ea6eed28</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[harry-potter-analysis]]></category>
            <category><![CDATA[harry-potter]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Steven Stine]]></dc:creator>
            <pubDate>Tue, 31 Dec 2024 17:16:13 GMT</pubDate>
            <atom:updated>2024-12-31T17:16:13.956Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*goie9wgTxWX4uBxW" /><figcaption>Photo by <a href="https://unsplash.com/@estersthetic?utm_source=medium&amp;utm_medium=referral">Ester Marie Doysabas</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>New England winters are cold and snowy, but for my family, they’re prime board game season. This year, our favorite addition was Harry Potter Monopoly — a magical twist on the classic game. What hooked my daughters, and I were the unique rules that set it apart from traditional Monopoly. At first, we stuck to the same old strategy: buy everything in sight and wait for the others to go bankrupt — a tactic I dubbed “The Common Strategy.”</p><p>After eight games, I thought to myself, can data predict a victory in this game? I decided to find out. As both a board game enthusiast and a data nerd, I set out to answer two questions: Which spots are landed on the most, and what are the top three property colors to own for the best odds of winning? What I discovered might just change the way you play.</p><h3><strong>House Rules: Our Unique Gameplay:</strong></h3><p>In Monopoly, every household has a different set of rules that they abide by. The way we play is:</p><p>1) You have to go pass GO once and receive your 20 house points before you can purchase any space.</p><p>2) If a player lands on a space and doesn’t want to purchase it, we hold auctions for that space and the highest bid wins the property.</p><p>3) We put twenty points into the middle for Free Parking to start and any penalties are also put in the middle.</p><p>4) You can trade properties or OWL cards between players as long as the Banker determines the trade is fair and yes, I am the Monopoly SEC.</p><p>5) The game doesn’t stop once the first person goes bankrupt. Instead, we play until the last player is standing. I know, very Hunger Gamesesque.</p><p>6) This game doesn’t use the traditional purchase four houses and then a hotel method. To upgrade your property, you will need to collect the color scheme of the properties (these are the houses in traditional Monopoly). The next and final upgrade to increase the property value is adding a House Crest to each property.</p><p>Also with Harry Potter, as you select a token to move around the board, you also select a House to be sorted into (Gryffindor, Hufflepuff, Slytherin, Ravenclaw). I’ll explain this a bit later under the OWL cards section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xY9yCyGnpBkWCmr2" /><figcaption>Photo by <a href="https://unsplash.com/@darshanp9?utm_source=medium&amp;utm_medium=referral">Darshan Patel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>Breaking Down the Board: Property Insights:</strong></h3><p>So, which information did I know? Well, I knew that our games lasted about 150 turns and I knew the most common number rolled between two dice was seven, since you could create this number 6 different ways (1+6, 2+5, 3+4, 4+3, 5+2, 6+1). I also cut the board into four sides to then rank each side by what I thought would be the most valuable to least valuable to side to own. I took into consideration that I can’t only use the number seven for my analysis, so I used the 6, 7, and 8 space of each side and forecasted that these would be the most common spaces that each of the players would land on. From here, I forecasted which properties would be landed on the most in one game.</p><p>Go To Jail to GO space = 1</p><p>Most Common Spaces would be: Owl Card, Dark Blue 1, Lose 10 House Points</p><p>Jail to Free Parking = 2</p><p>Most Common Spaces would be: Orange 1, Owl Card, Orange 2</p><p>Free Parking to Go To Jail = 3</p><p>Most Common Spaces would be: Yellow 1, Yellow 2 and Spell 2</p><p>Go space to Jail = 4</p><p>Most Common Spaces would be: Light Blue 1, Owl Card, Light Blue 2</p><h3>The Set Up:</h3><p>There are only ever three players willing to play board games in my house so the data I collected and will be sharing is based on three players. Each player receives 300 house points (five large tokens that are worth 50 each and five small tokens worth ten house points each). We each had our pieces on GO, the Firebolt broomstick, the Hippogriff, and the Thestral and we were off! Accio!</p><h3><strong>The Results:</strong></h3><p>I recorded each dice roll and then the outcome which was the spot that each player ended on. For example, if someone rolled a 7 and landed on the second light blue, I recorded the entry as 7, L Blu 2. As you can guess, due to probability, the number seven was the most common dice roll in our three player game. From there, it was six, then eight, etc. The best way to show this was to show the dice rolls in a tree.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*Uvbltzue5DHAYVRIcrP34A.png" /><figcaption>Deathly Hallows Dice Roll Probability by Steven Stine</figcaption></figure><p>Looking at my forecast compared to the top ten spaces that were landed on, I was somewhat surprised. Note, I omitted the Owl cards component to this since I wanted to focus on properties that would bring in an income. Don’t worry I analyzed the Owl cards as well.</p><p>1) Jail → Go to Jail</p><p>2) Orange 2</p><p>3) Green 3</p><p>4) Light Blue 1</p><p>5) Orange 3</p><p>6) Green 2</p><p>7) Light Blue 2</p><p>8) Yellow 2</p><p>9) Spells</p><p>10) Yellow 1/ Orange 1</p><h3><strong>OWL Cards: A Game-Changer?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GcmegpdzUqXrM3TV" /><figcaption>Photo by <a href="https://unsplash.com/@fridalannerstrom?utm_source=medium&amp;utm_medium=referral">Frida Lannerström</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The owl cards act as the chance cards in normal Monopoly. With these cards, there is the normal, go to Azkaban (Jail), Get out of Azkaban Free, Lose house points, Gain house points and move to a particular space on the board. These cards make up 25 out of the 32 total Owl cards or 79.12% of the total deck. The difference with these cards though, is that on the cards they designates a house where the gain/loss is doubled. Example, “You’re awarded 10 house points, if you’re a Ravenclaw, receive 20 house points.”</p><p>Also, if you pull the “Go to Jail” card or move to a particular space, the card will designate a house in which you could possibly force another player to that spot based on the designation. So If you pull the Jail card as a Hufflepuff and the card designates Slytherin, sorry Malfoy, you’re going to Azkaban.</p><p>The other interesting part of these cards is that you can trade properties with a player, steal a property from a player, add a crest to one of your properties as long as you have a set, or force a player to pay you the rent of one of their properties which made up the other 7 OWL cards or the other 21.88%. These special cards offer an advantage in the game but don’t get your hopes up though, out of the 150 turns in a game, you only have about a 12% chance of landing on these OWL spots.</p><h3><strong>Top Strategies for Winning:</strong></h3><p>After hours of gameplay, I answered my two questions accordingly:</p><p>1) Go to Jail space, Orange 2, and Green 3 were the spots landed on the most.</p><p>2) The best property colors to own to increase your chances of winning would be Orange, Green and Light Blue.</p><p>Also using the data that I collected, here are some other points that stood out in the data:</p><p>1) Buy the Orange, Light Blue, Green, or Yellow properties in the game. Just having the color schemes for these will give you a boost in collecting rent but having a crest on each property is huge since these properties were frequented the most. The Common Rooms are a good choice as well but these max out at 80 house points and chances are, you won’t be able to collect all four.</p><p>2) OWL cards are your friends. The chance that the card you receive is bad is minimal and most likely, the card is good for your game. You have better odds of gaining income/property than losing it so these are not a “real” chance.</p><p>3) Odds are, Free Parking will be landed on twice per game so with three players, your odds are slim to none.</p><p>4) As I was reviewing the data, another strategy you could try is owning the green and yellow corner, plus the four common rooms and then the two Spell spaces. These are high frequented spaces. The catch here though is the Common Rooms max out at 80 points and your probability of getting higher than 70 points on the Spells is marginal.</p><p><strong>Ready to conquer Harry Potter Monopoly? Grab your broomstick, analyze the board, and let the magic of data guide you!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b915ea6eed28" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>